Closed fzambroni closed 1 year ago
Did you restart the addon? You are showing significant numbers of timeouts which would indicate network related issues, but, in general, first step is always to restart the addon. Please note that restarting Home Assistant using the UI does not restart the addon.
The add-on was just restarted before collecting this log. See below the diagnostic data collected from one of the sensors. Note that the battery information is available.
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.8.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.4", "docker": true, "arch": "aarch64", "timezone": "America/New_York", "os_name": "Linux", "os_version": "6.1.21-v8", "supervisor": "2023.08.1", "host_os": "Home Assistant OS 10.4", "docker_version": "23.0.6", "chassis": "embedded", "run_as_root": true }, "custom_components": { "ui_lovelace_minimalist": { "version": "v1.3.6", "requirements": [ "aiofiles==0.8.0", "aiogithubapi>=22.2.4" ] }, "alexa_media": { "version": "4.6.5", "requirements": [ "alexapy==1.26.8", "packaging>=20.3", "wrapt>=1.12.1" ] }, "localtuya": { "version": "5.2.1", "requirements": [] }, "sonoff": { "version": "3.5.2", "requirements": [ "pycryptodome>=3.6.6" ] }, "nest_protect": { "version": "0.3.12", "requirements": [] }, "watchman": { "version": "0.5.1", "requirements": [ "prettytable==3.0.0" ] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "nodered": { "version": "2.2.0", "requirements": [] } }, "integration_manifest": { "domain": "mqtt", "name": "MQTT", "codeowners": [ "@emontnemery", "@jbouwh" ], "config_flow": true, "dependencies": [ "file_upload", "http" ], "documentation": "https://www.home-assistant.io/integrations/mqtt", "iot_class": "local_push", "quality_scale": "gold", "requirements": [ "paho-mqtt==1.6.1" ], "is_built_in": true }, "data": { "connected": true, "mqtt_config": { "broker": "core-mosquitto", "port": 1883, "username": "REDACTED", "password": "REDACTED", "keepalive": 60, "tls_insecure": false, "protocol": "5", "transport": "tcp", "discovery": true, "discovery_prefix": "homeassistant", "birth_message": { "topic": "homeassistant/status", "payload": "online", "qos": 0, "retain": false }, "will_message": { "topic": "homeassistant/status", "payload": "offline", "qos": 0, "retain": false } }, "device": { "id": "21bb7df0b64dc2605ef51a475331c659", "name": "Ring Office CO Alarm", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "device_class": null, "disabled_by": null, "disabled": false, "entity_category": null, "entity_id": "sensor.office_co_alarm_info", "icon": null, "original_device_class": null, "original_icon": "mdi:information-outline", "state": { "entity_id": "sensor.office_co_alarm_info", "state": "ok", "attributes": { "batteryLevel": 92, "batteryStatus": "full", "commStatus": "ok", "lastCommTime": "1970-01-01T00:00:00Z", "lastUpdate": "2023-08-18T12:28:57Z", "linkQuality": "ok", "tamperStatus": "ok", "icon": "mdi:information-outline", "friendly_name": "Ring Office CO Alarm Info" }, "last_changed": "2023-08-18T15:19:20.850816+00:00", "last_updated": "2023-08-18T15:19:20.850816+00:00" }, "unit_of_measurement": null }, { "device_class": null, "disabled_by": null, "disabled": false, "entity_category": null, "entity_id": "sensor.office_co_alarm_battery", "icon": null, "original_device_class": "battery", "original_icon": null, "state": { "entity_id": "sensor.office_co_alarm_battery", "state": "unavailable", "attributes": { "restored": true, "state_class": "measurement", "device_class": "battery", "friendly_name": "Battery", "supported_features": 0, "unit_of_measurement": "%" }, "last_changed": "2023-08-18T12:45:29.374832+00:00", "last_updated": "2023-08-18T12:45:29.374832+00:00" }, "unit_of_measurement": "%" }, { "device_class": null, "disabled_by": null, "disabled": false, "entity_category": null, "entity_id": "binary_sensor.office_co_alarm_tamper", "icon": null, "original_device_class": "tamper", "original_icon": null, "state": { "entity_id": "binary_sensor.office_co_alarm_tamper", "state": "off", "attributes": { "device_class": "tamper", "friendly_name": "Ring Office CO Alarm Tamper" }, "last_changed": "2023-08-18T15:19:20.847633+00:00", "last_updated": "2023-08-18T15:19:20.847633+00:00" }, "unit_of_measurement": null }, { "device_class": null, "disabled_by": null, "disabled": false, "entity_category": null, "entity_id": "binary_sensor.office_co_alarm", "icon": null, "original_device_class": "gas", "original_icon": null, "state": { "entity_id": "binary_sensor.office_co_alarm", "state": "off", "attributes": { "device_class": "gas", "friendly_name": "Ring Office CO Alarm" }, "last_changed": "2023-08-18T15:19:20.842883+00:00", "last_updated": "2023-08-18T15:19:20.842883+00:00" }, "unit_of_measurement": null } ] }, "mqtt_debug_info": { "entities": [ { "entity_id": "sensor.office_co_alarm_info", "subscriptions": [ { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "messages": [ { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:10.524281+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:40.829833+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:02:11.132467+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "offline", "qos": 0, "retain": 0, "time": "2023-08-18T15:18:33.890232+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:20.842589+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:50.525863+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:20.882461+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:51.265311+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:21.557687+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:51.950018+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" } ] }, { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state", "messages": [ { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:09:29.472873+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:14:29.457289+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:22.452645+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:52.626731+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:22.949879+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:53.360433+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:23.661924+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:54.356594+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:24:10.340453+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:29:10.353775+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" } ] } ], "discovery_data": { "topic": "homeassistant/sensor/d283995e-4324-4daf-8452-13ea5a8d4859/04725673-0c82-48c6-b8ef-b884a24b90b1_info/config", "payload": { "name": "Ring Office CO Alarm Info", "unique_id": "04725673-0c82-48c6-b8ef-b884a24b90b1_info", "state_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state", "value_template": "{{ value_json[\"commStatus\"] | default(\"\") }}", "json_attributes_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state", "icon": "mdi:information-outline", "availability_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "payload_available": "online", "payload_not_available": "offline", "device": { "identifiers": [ "04725673-0c82-48c6-b8ef-b884a24b90b1" ], "name": "Ring Office CO Alarm", "manufacturer": "First Alert", "model": "CO Alarm" }, "platform": "mqtt" } }, "transmitted": [] }, { "entity_id": "binary_sensor.office_co_alarm_tamper", "subscriptions": [ { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "messages": [ { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:10.524281+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:40.829833+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:02:11.132467+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "offline", "qos": 0, "retain": 0, "time": "2023-08-18T15:18:33.890232+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:20.842589+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:50.525863+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:20.882461+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:51.265311+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:21.557687+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:51.950018+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" } ] }, { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state", "messages": [ { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:09:29.472873+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:14:29.457289+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:22.452645+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:52.626731+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:22.949879+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:53.360433+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:23.661924+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:54.356594+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:24:10.340453+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" }, { "payload": "{\"batteryLevel\":92,\"batteryStatus\":\"full\",\"commStatus\":\"ok\",\"lastCommTime\":\"1970-01-01T00:00:00Z\",\"lastUpdate\":\"2023-08-18T12:28:57Z\",\"linkQuality\":\"ok\",\"tamperStatus\":\"ok\"}", "qos": 0, "retain": 0, "time": "2023-08-18T15:29:10.353775+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state" } ] } ], "discovery_data": { "topic": "homeassistant/binary_sensor/d283995e-4324-4daf-8452-13ea5a8d4859/04725673-0c82-48c6-b8ef-b884a24b90b1_tamper/config", "payload": { "name": "Ring Office CO Alarm Tamper", "unique_id": "04725673-0c82-48c6-b8ef-b884a24b90b1_tamper", "state_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/info/state", "device_class": "tamper", "value_template": "{% if value_json[\"tamperStatus\"] is equalto \"tamper\" %} ON {% else %} OFF {% endif %}", "availability_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "payload_available": "online", "payload_not_available": "offline", "device": { "identifiers": [ "04725673-0c82-48c6-b8ef-b884a24b90b1" ], "name": "Ring Office CO Alarm", "manufacturer": "First Alert", "model": "CO Alarm" }, "platform": "mqtt" } }, "transmitted": [] }, { "entity_id": "binary_sensor.office_co_alarm", "subscriptions": [ { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "messages": [ { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:10.524281+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:40.829833+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:02:11.132467+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "offline", "qos": 0, "retain": 0, "time": "2023-08-18T15:18:33.890232+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:20.842589+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:50.525863+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:20.882461+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:51.265311+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:21.557687+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" }, { "payload": "online", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:51.950018+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status" } ] }, { "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state", "messages": [ { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:00:42.297252+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:12.606786+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:01:42.894822+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:02:13.262843+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:22.447424+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:19:52.623269+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:22.943985+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:20:53.359140+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:23.661704+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" }, { "payload": "OFF", "qos": 0, "retain": 0, "time": "2023-08-18T15:21:54.355469+00:00", "topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state" } ] } ], "discovery_data": { "topic": "homeassistant/binary_sensor/d283995e-4324-4daf-8452-13ea5a8d4859/04725673-0c82-48c6-b8ef-b884a24b90b1_co/config", "payload": { "name": "Ring Office CO Alarm", "unique_id": "04725673-0c82-48c6-b8ef-b884a24b90b1", "state_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/co/state", "device_class": "gas", "availability_topic": "ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/04725673-0c82-48c6-b8ef-b884a24b90b1/status", "payload_available": "online", "payload_not_available": "offline", "device": { "identifiers": [ "04725673-0c82-48c6-b8ef-b884a24b90b1" ], "name": "Ring Office CO Alarm", "manufacturer": "First Alert", "model": "CO Alarm" }, "platform": "mqtt" } }, "transmitted": [] } ], "triggers": [] } } }
A new log few minutes after rebooting the entire OS.
2023-08-18T15:46:47.035Z ring-mqtt [Ring Garage Camera] Failed to retrieve updated snapshot, retrying in one second...
2023-08-18T15:46:48.037Z ring-mqtt [Ring Garage Camera] Requesting an updated interval snapshot
2023-08-18T15:46:57.004Z ring-mqtt [Ring Doorbell camera] Requesting an updated interval snapshot
2023-08-18T15:46:57.021Z ring-mqtt [Ring Garage Camera] Requesting an updated interval snapshot
2023-08-18T15:46:57.535Z ring-mqtt [Ring Doorbell camera] Successfully retrieved updated snapshot
2023-08-18T15:46:57.535Z ring-mqtt [Ring Doorbell camera] ring/d283995e-4324-4daf-8452-13ea5a8d4859/camera/90486cec8e66/snapshot/image
Hi, thank you for the logs, I'm going to hide your last two comments as they make the thread difficult to read. I'd ask that you attach large log bundles as files vs copy/paste in text area. Thanks!
You posted a screenshot of a device that appears to be named "Ring Front Door Contact Sensor", however, this sensor does not exist in the logs you have provided.
I'd ask that you please provide a full log bundle. The 100 lines of logs shows from the HA UI are not enough to be able to troubleshoot this issue.
I've attached the HA Full log for you to look over. I`m a newbie in HA, so let me know if there's a more thoughtful way to share the specific logs. All my Ring Devices start with "Ring" in the logs. home-assistant.log
I`m also attaching two screenshots: 1 - A Dashboard with all my Ring device's batteries (and other batteries to compare)
2 - One of my device (as an example) with logs (Ring Front Door Keypad) with 70% of battery. mqtt-f9c19bc718ad5937dc35371daf4120e2-Ring Front Door Keypad-4f9612a6a18d3094f500b04c424a0256.json.txt
Hi, mostly I was referring to ring-mqtt logs, not HA logs. I don't really care much about HA logs in general as I just need to validate that ring-mqtt is working and sending the correct discovery and state data for all devices. If it is, then the problem is with Home Assistant, which is the most likely. Unfortunately, I can't help much with HA issues.
That being said, in your case there is something very interesting in those logs, so I'm glad you provided them. You have tons of errors indicating errors adding sensor entities to your HA instance, not just from ring-mqtt, but from other plugins. If you look at the log you sent, you see very early:
2023-08-18 14:43:38.488 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform hassio
Then more from other integrations:
2023-08-18 14:44:05.988 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up brother platform for sensor
2023-08-18 14:44:06.028 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform ipp
2023-08-18 14:44:06.078 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform blink
2023-08-18 14:44:06.685 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform esphome
There are dozens of these so it is clear that, for some reason, your HA instance is unable to add sensor entities for pretty much any platform. In ring-mqtt, the battery is also a sensor entity so you can see later see where ring-mqtt sends the discovery info for the battery sensor:
2023-08-18 14:45:20.182 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'Ring Kitchen Motion Sensor Battery', 'unique_id': 'a667dd1e-dbbe-47d3-8ca9-33e24800f742_battery', 'state_topic': 'ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/a667dd1e-dbbe-47d3-8ca9-33e24800f742/info/state', 'device_class': <SensorDeviceClass.BATTERY: 'battery'>, 'unit_of_measurement': '%', 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'value_template': Template<template=({{ value_json["batteryLevel"] | default("") }}) renders=0>, 'json_attributes_topic': 'ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/a667dd1e-dbbe-47d3-8ca9-33e24800f742/battery/attributes', 'availability_topic': 'ring/d283995e-4324-4daf-8452-13ea5a8d4859/alarm/a667dd1e-dbbe-47d3-8ca9-33e24800f742/status', 'payload_available': 'online', 'payload_not_available': 'offline', 'device': {'identifiers': ['a667dd1e-dbbe-47d3-8ca9-33e24800f742'], 'name': 'Ring Kitchen Motion Sensor', 'manufacturer': 'Ring', 'model': 'Motion Sensor', 'connections': []}, 'qos': 0, 'force_update': False, 'encoding': 'utf-8', 'availability_mode': 'latest', 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Battery'
And then you get the same error from mqtt platform as from the other platforms above:
2023-08-18 14:45:20.186 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mqtt
This is why the batter sensor is not working. This is not a problem with ring-mqtt, this is a problem with HA imacting all platforms. Actually you have many, many other errors as well. To me it looks like your entity registry has been corrupted in some way as the errors are all from entity_registry.py helper function.
Ideally I would suggest restoring from a backup, perhaps before the errors occurred. Otherwise, I'm not sure what else to recommend and you'll need to pursue on the HA forums/Github project. Some possible suggestions, make sure your RPi4 has a very reliable microSD card, not all are suitable for running HA as it is very demanding on the device.
As this is not a ring-mqtt issue, I'm going to close this. I'm not sure if anyone on HA forums will be able to help you, as I see this corrupted core.entity_registry issue show up from time to time in the HA forums with not much resolution, especially if there are no backups. If most of your devices are auto-discovered, you could theoretically just delete the file and restart, but I'm far from an HA expert so you are probably best able to get help from the HA forums.
Also, if you do seek help there, don't try to tie it to the ring-mqtt specifically, as your problem is generic with the sensors.
Describe the Bug
Battery informartion are not available
Steps to Reproduce
Settings -> Devices & Services -> Mqtt -> Open anyring device that use battery and check the sensor page. Battery will be Unavailable
Expected Behavior
Show battery status
Log Output
Screenshots
Config File
Install Type
HASSIO - RPi4
Version
Home Assistant 2023.8.2
Operating System
Home Assistant OS
Architecture
RPi4
Machine Details
RPi4