Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Battery Level of Ring Cameras no Longer Exposed since 11.4 #1109

Closed
Tom5640 opened this issue Nov 22, 2022 · 5 comments
Closed

Battery Level of Ring Cameras no Longer Exposed since 11.4 #1109

Tom5640 opened this issue Nov 22, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Tom5640
Copy link

Tom5640 commented Nov 22, 2022

Bug Report

Describe the Bug

Prior to this version, battery level of ring cameras and doorbells was exposed to HomeKit.

To Reproduce

Click on a battery operated Camera
Click on Settings
Review the information available for the Camera.

Expected behavior

Battery Information is shown in the Accessory Detail Bubble just below its name.

Screenshots/Logs

IMG_2848

Additional context

Add any other context about the problem here.

Homebridge Ring Config

"platform": "Ring",
"avoidSnapshotBatteryDrain": true,
"refreshToken": "REDACTED",
"hideInHomeDoorbellSwitch": true,
"hideAlarmSirenSwitch": true,
"hideUnsupportedServices": true,
"hideDeviceIds": [
"16d820c9-f80d-4fb9-84e6-f5de3b1eb379",
"5322b234-4447-4aa7-91b3-38e0b1b777fd",
"3892a4bd-a11a-4ff4-834e-dabcf4ba27ff"
],
"hideCameraSirenSwitch": true,
"hideDoorbellSwitch": true
}


### Environment

<img width="468" alt="Screenshot 2022-11-22 at 19 22 20" src="https://user-images.githubusercontent.com/73896025/203403284-41bcd003-2e6f-4850-9d86-1cea2d53cb42.png">




@Tom5640 Tom5640 added the bug Something isn't working label Nov 22, 2022
@Tom5640 Tom5640 changed the title Battery Level of Ring Cameras no Longer Exposed since 11.3.1 Battery Level of Ring Cameras no Longer Exposed since 11.4 Nov 22, 2022
@alexlewer
Copy link

Same here; battery level tiles have disappeared in Homebridge UI.
Running 11.6.0.

@sjonez
Copy link

sjonez commented Dec 10, 2022

@dgreif Latest commit still doesn't get the battery for one of my devices, discovery data below:

{
   				"description": "Garden",
   				"subscribed": true,
   				"subscribed_motions": true,
   				"battery_life": null,
   				"external_connection": false,
   		

   	"firmware_version": "Up to Date",
   				"kind": "stickup_cam_v4",
   				"settings": {
   					"cv_settings": {
   						"detection_types": {
   							"human": {
   								"enabled": true,
   								"mode": "cloud",
   								"record": null,
   								"notification": true
   							},
   							"loitering": {
   								"enabled": false,
   								"mode": "none",
   								"record": null,
   								"notification": false
   							},
   							"motion": {
   								"enabled": true,
   								"mode": "cloud",
   								"record": null,
   								"notification": false
   							},
   							"moving_vehicle": {
   								"enabled": false,
   								"mode": "none",
   								"record": null,
   								"notification": false
   							},
   							"other_motion": {
   								"enabled": true,
   								"mode": "cloud",
   								"record": null,
   								"notification": false
   							},
   							"package_delivery": {
   								"enabled": false,
   								"mode": "none",
   								"record": null,
   								"notification": false
   							},
   							"package_pickup": {
   								"enabled": false,
   								"mode": "none",
   								"record": null,
   								"notification": false
   							}
   						},
   						"threshold": {
   							"loitering": 10,
   							"package_delivery": 2
   						},
   						"triggers": []
   					},
   					"cv_paid_features": {
   						"baby_cry": true,
   						"car_alarm": true,
   						"co2_smoke_alarm": true,
   						"dog_bark": true,
   						"general_sound": true,
   						"glass_break": true,
   						"human": true,
   						"loitering": true,
   						"motion": true,
   						"other_motion": true,
   						"package_delivery": true,
   						"package_pickup": true,
   						"cv_triggers": true
   					},
   					"other_paid_features": {
   						"alexa_concierge": true,
   						"sheila_cv": true,
   						"sheila_recording": true
   					},
   					"sheila_settings": {
   						"cv_processing_enabled": false,
   						"local_storage_enabled": false
   					},
   					"server_settings": {
   						"ring_media_server_enabled": true,
   						"ring_media_server_host": "rms-eu-west-1.rapi.us-east-1.prod.client.cap.ring.devices.a2z.com"
   					},
   					"zone_settings": {
   						"motion": [
   							{
   								"name": "Default Zone",
   								"state": "enabled",
   								"properties": {
   									"detection_types": [
   										"motion"
   									],
   									"style": 1
   								},
   								"vertices": [
   									{
   										"x": 0.403337,
   										"y": 0.404864
   									},
   									{
   										"x": 0.493018,
   										"y": 0.25
   									},
   									{
   										"x": 0.695425,
   										"y": 0.25
   									},
   									{
   										"x": 0.727806,
   										"y": 0.367174
   									},
   									{
   										"x": 0.998585,
   										"y": 0.25
   									},
   									{
   										"x": 0.992606,
   										"y": 1
   									},
   									{
   										"x": 0.081107,
   										"y": 0.997888
   									},
   									{
   										"x": 0.007451,
   										"y": 0.478096
   									}
   								]
   							}
   						],
   						"privacy": [
   							{
   								"name": "Privacy Zone 1",
   								"state": "enabled",
   								"vertices": [
   									{
   										"x": 0.32,
   										"y": 0.19
   									},
   									{
   										"x": 0.45,
   										"y": 0.34
   									}
   								]
   							}
   						]
   					},
   					"offline_motion_event_settings": {
   						"subscribed": true,
   						"enabled": false,
   						"max_upload_kb": 5000,
   						"resolution_p": 360,
   						"frequency_after_secs": 2,
   						"period_after_secs": 30
   					},
   					"lite_24x7": {
   						"subscribed": true,
   						"enabled": true,
   						"frequency_secs": 840,
   						"resolution_p": 360
   					},
   					"enable_vod": 1,
   					"exposure_control": 2,
   					"motion_zones": [
   						1,
   						1,
   						1,
   						1,
   						1
   					],
   					"motion_snooze_preset_profile": "low",
   					"motion_snooze_presets": [
   						"none",
   						"low",
   						"medium",
   						"high"
   					],
   					"live_view_preset_profile": "middle",
   					"live_view_presets": [
   						"low",
   						"middle",
   						"high",
   						"highest"
   					],
   					"pir_sensitivity_1": 6,
   					"vod_suspended": 0,
   					"doorbell_volume": 8,
   					"vod_status": "enabled",
   					"video_settings": {
   						"encryption_enabled": false,
   						"encryption_method": 0
   					},
   					"advanced_motion_detection_enabled": true,
   					"advanced_motion_zones": {
   						"zone1": {
   							"name": "Default Zone",
   							"state": 2,
   							"vertex1": {
   								"x": 0.403337,
   								"y": 0.404864
   							},
   							"vertex2": {
   								"x": 0.493018,
   								"y": 0.25
   							},
   							"vertex3": {
   								"x": 0.695425,
   								"y": 0.25
   							},
   							"vertex4": {
   								"x": 0.727806,
   								"y": 0.367174
   							},
   							"vertex5": {
   								"x": 0.998585,
   								"y": 0.25
   							},
   							"vertex6": {
   								"x": 0.992606,
   								"y": 1
   							},
   							"vertex7": {
   								"x": 0.081107,
   								"y": 0.997888
   							},
   							"vertex8": {
   								"x": 0.007451,
   								"y": 0.478096
   							}
   						},
   						"zone2": {
   							"name": "Zone 2",
   							"state": 0,
   							"vertex1": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex2": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex3": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex4": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex5": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex6": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex7": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex8": {
   								"x": 0,
   								"y": 0
   							}
   						},
   						"zone3": {
   							"name": "Zone 3",
   							"state": 0,
   							"vertex1": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex2": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex3": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex4": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex5": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex6": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex7": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex8": {
   								"x": 0,
   								"y": 0
   							}
   						}
   					},
   					"advanced_motion_detection_human_only_mode": true,
   					"enable_audio_recording": true,
   					"people_detection_eligible": true,
   					"live_view_disabled": false,
   					"ignore_zones": {
   						"zone1": {
   							"name": "Privacy Zone 1",
   							"state": 2,
   							"vertex1": {
   								"x": 0.32,
   								"y": 0.19
   							},
   							"vertex2": {
   								"x": 0.45,
   								"y": 0.34
   							}
   						},
   						"zone2": {
   							"name": "Zone 2",
   							"state": 0,
   							"vertex1": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex2": {
   								"x": 0,
   								"y": 0
   							}
   						},
   						"zone3": {
   							"name": "Zone 3",
   							"state": 0,
   							"vertex1": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex2": {
   								"x": 0,
   								"y": 0
   							}
   						},
   						"zone4": {
   							"name": "Zone 4",
   							"state": 0,
   							"vertex1": {
   								"x": 0,
   								"y": 0
   							},
   							"vertex2": {
   								"x": 0,
   								"y": 0
   							}
   						}
   					},
   					"enable_rich_notifications": true,
   					"rich_notifications_billing_eligible": true,
   					"loitering_threshold": 10,
   					"advanced_motion_detection_types": [
   						"human"
   					],
   					"motion_detection_enabled": false,
   					"rich_notifications_scene_source": "cloud",
   					"advanced_motion_zones_enabled": true,
   					"advanced_motion_zones_type": "8vertices",
   					"advanced_pir_motion_zones": {
   						"zone1_sensitivity": 5,
   						"zone2_sensitivity": 5,
   						"zone3_sensitivity": 5,
   						"zone4_sensitivity": 5,
   						"zone5_sensitivity": 5,
   						"zone6_sensitivity": 5
   					},
   					"light_settings": {
   						"brightness": 10
   					},
   					"enable_white_leds": 1,
   					"rich_notifica-uuid": false
   				},
   				"features": {
   					"motion_zone_recommendation": false,
   					"motions_enabled": true,
   					"show_recordings": true,
   					"show_vod_settings": true,
   					"rich_notifications_eligible": true,
   					"show_24x7_lite": true,
   					"show_offline_motion_events": false,
   					"cfes_eligible": true,
   					"sheila_camera_eligible": true,
   					"sheila_camera_processing_eligible": true
   				},
   				"owned": true,
   				"alerts": {
   					"connection": "online",
   					"rssi": "low",
   					"ota_status": "timeout"
   				},
   				"motion_snooze": {
   					"scheduled": true
   				},
   				"stolen": false,
   				"is_sidewalk_gateway": false,
   				"created_at": "2022-07-29T13:49:36Z",
   				"shared_at": null,
   				"active_schedule_uuid": null,
   				"health": {
   					"device_type": "stickup_cam_v4",
   					"last_update_time": 1670640129,
   					"connected": true,
   					"rss_connected": true,
   					"vod_enabled": true,
   					"sidewalk_connection": false,
   					"floodlight_on": false,
   					"white_led_on": false,
   					"night_mode_on": false,
   					"hatch_open": false,
   					"packet_loss": 0,
   					"packet_loss_category": "good",
   					"rssi": -74,
   					"wifi_is_ring_network": false,
   					"ota_status": "timeout",
   					"ext_power_state": 0,
   					"network_connection_value": "wifi",
   					"ac_power": 0,
   					"external_connection": false,
   					"battery_percentage_category": "unknown",
   					"battery_voltage_category": "unknown",
   					"firmware_version": "cam-10.0.27",
   					"active_battery": 2,
   					"rssi_category": "poor",
   					"rssi_risk_level": "low",
   					"second_battery_percentage": 78,
   					"second_battery_percentage_category": "good",
   					"second_battery_voltage": 3878,
   					"second_battery_voltage_category": "good",
   					"battery_save": false,
   					"firmware_version_status": "Up to Date",
   					"stream_resolution": 100,
   					"bandwidth_last_time": 1665708755,
   					"bandwidth": 4800,
   					"status_time": 54743535305904,
   					"firmware_avg_bitrate": "0",
   					"video_packets_total": "3064"
   				},
   				"deactivated_at": null,
   				"battery_life_2": "78",
   				"battery_voltage": null,
   				"battery_voltage_2": 3878,
   				"led_status": {
   					"seconds_remaining": 0
   				},
   				"siren_status": {
   					"seconds_remaining": 0
   				},
   				"night_mode": 0,
   				"ext_power_state": 0
   			}

Looks like you may need to also check for the presence of health.active_battery as well as battery_percentage and battery_present

@Tom5640
Copy link
Author

Tom5640 commented Dec 11, 2022

Thanks to others for additional information @dgreif is this being resolved?

dgreif added a commit that referenced this issue Dec 12, 2022
@dgreif
Copy link
Owner

dgreif commented Dec 12, 2022

Please give 11.7.0 a try. There was a bug with detecting whether cameras had a battery or not, which lead to a lot of similar issues.

@Tom5640
Copy link
Author

Tom5640 commented Dec 12, 2022

Hey @dgreif, just upgraded now to version 11.7 and battery information has been restored for all devices. Thank you very much, item resolved.

@dgreif dgreif closed this as completed Dec 12, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants