ha-nest-protect: Battery level sensor shows `unknown`

The problem

I noticed all my battery-powered nest protects seem to show unknown for their battery level sensor. The battery health sensor seems to be working but not the level one. Battery level only shows up for the temperature sensor.

I copied diagnostic information for one of them with this issue below. If other diagnostic info is needed let me know.

What version of this integration (ha-nest-protect) has the issue?

0.3.4

What version of Home Assistant Core has the issue?

core-2022.3.7

Device / Model

Topaz-2.7

Diagnostics information

Diagnostic data
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.3.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "5.10.103",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.5",
    "docker_version": "20.10.9",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "peloton": {
      "version": "0.6.1",
      "requirements": [
        "pylotoncycle==0.5.2"
      ]
    },
    "nodered": {
      "version": "1.0.6",
      "requirements": []
    },
    "variable": {
      "version": "2.2.1",
      "requirements": []
    },
    "weatherflow": {
      "version": "1.0.4",
      "requirements": [
        "pyweatherflowrest==1.0.8"
      ]
    },
    "google_home": {
      "version": "1.9.9",
      "requirements": [
        "glocaltokens==0.6.3",
        "google-api-python-client==2.38.0"
      ]
    },
    "nest_protect": {
      "version": "0.3.4",
      "requirements": []
    },
    "watchman": {
      "version": "0.5.0",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "bhyve": {
      "version": "2.2.1",
      "requirements": []
    },
    "hacs": {
      "version": "1.23.0",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "spotcast": {
      "version": "v3.6.27",
      "requirements": [
        "spotify_token==1.0.0"
      ]
    },
    "anniversaries": {
      "version": "4.5.0",
      "requirements": [
        "python-dateutil>=2.8.1",
        "integrationhelper>=0.2.2",
        "voluptuous>=0.12.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "nest_protect",
    "name": "Nest Protect",
    "config_flow": true,
    "documentation": "https://github.com/imicknl/ha-nest-protect",
    "issue_tracker": "https://github.com/imicknl/ha-nest-protect/issues",
    "requirements": [],
    "codeowners": [
      "@imicknl"
    ],
    "iot_class": "cloud_polling",
    "version": "0.3.4",
    "dhcp": [
      {
        "macaddress": "CCA7C1*"
      }
    ],
    "is_built_in": false
  },
  "data": {
    "device": {
      "controllable_name": "Battery",
      "firmware": "3.4rc6",
      "model": "Topaz-2.7"
    },
    "app_launch": {
      "updated_buckets": [
        {
          "object_key": "topaz.18B4300000B12876",
          "object_revision": 10769,
          "object_timestamp": 1648157190334,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-000100000001",
            "creation_time": 1546147129000,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.34",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464670,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1849564800,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464667,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 1,
            "device_external_color": "white",
            "latest_manual_test_end_utc_secs": 1534989424,
            "smoke_status": 0,
            "latest_manual_test_start_utc_secs": 1534989423,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 0,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-000100000001",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": true,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1533945600,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5142
          }
        },
        {
          "object_key": "topaz.18B4300000AD4280",
          "object_revision": 31443,
          "object_timestamp": 1648159848954,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-000100000008",
            "creation_time": 1560721380180,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.30",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464674,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1844035200,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464671,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "latest_manual_test_end_utc_secs": 1585609065,
            "smoke_status": 0,
            "latest_manual_test_start_utc_secs": 1585609042,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 0,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-000100000008",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1528416000,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5208
          }
        },
        {
          "object_key": "topaz.18B4300000AD3D19",
          "object_revision": 1456,
          "object_timestamp": 1648158219503,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-00010000000e",
            "creation_time": 1560721295840,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.29",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464671,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1844035200,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464668,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "smoke_status": 0,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 3,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-00010000001a",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1528416000,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5202
          }
        },
        {
          "object_key": "structure.4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
          "object_revision": -20181,
          "object_timestamp": 1648178983907,
          "value": {
            "swarm": [
              "quartz.a02290ac748d4b0a89033fc914261800",
              "topaz.18B4300000B13FF9",
              "topaz.18B4300000AD4511",
              "quartz.384b28458c7d49bc9bdebd6bd1227419",
              "kryptonite.18B430C3D344C497",
              "topaz.18B4300000AD4280",
              "topaz.18B4300000AD3D19",
              "topaz.6416660000C74AB6",
              "topaz.18B4300000B13925",
              "quartz.091e392fbb614194b64ad3e90ae664b8",
              "topaz.18B4300000B12876"
            ],
            "last_action_by": "PHX",
            "manual_away_timestamp": 1647799370,
            "last_action": "RTS_SYNC",
            "emergency_contact_phone": "**REDACTED**",
            "geofence_enhanced_autoaway": {
              "enabled": true,
              "is_set": true
            },
            "city": "**REDACTED**",
            "name": "**REDACTED**",
            "eta_preconditioning_active": false,
            "creation_time": 1534539085829,
            "location": "**REDACTED**",
            "touched_by": {
              "touched_by": 3,
              "touched_id": "Home automation - degam",
              "touched_user_id": "client.522aafa5-003a-49d3-b9f6-e143bd2b5146"
            },
            "latitude": "**REDACTED**",
            "ifj_primary_fabric_id": "**REDACTED**",
            "measurement_scale": "imperial",
            "state": "**REDACTED**",
            "away_timestamp": 1647799371,
            "eta_unique_id": "Home automation - degam1609661092754",
            "structure_area": 167.22563,
            "topaz_hush_key": "**REDACTED**",
            "enable_goose": false,
            "away_setter": 1,
            "phone_hush_enable": true,
            "hvac_safety_shutoff_enabled": true,
            "house_type": "family",
            "demand_charge_enabled": true,
            "rcs_sensor_swarm": [
              "kryptonite.18B430C3D344C497"
            ],
            "eta_last_active_unique_id": "Home automation - degam1595125852894_copy_of_active_trip",
            "longitude": "**REDACTED**",
            "aux_primary_fabric_id": "**REDACTED**",
            "topaz_enhanced_auto_away_enabled": false,
            "address_lines": "**REDACTED**",
            "country_code": "US",
            "hvac_smoke_safety_shutoff_enabled": true,
            "topaz_away": false,
            "tou_enabled": true,
            "renovation_date": "2010",
            "vacation_mode": false,
            "fabric_ids": [
              "10BE622091EE931F"
            ],
            "postal_code": "**REDACTED**",
            "num_thermostats": "1",
            "entitlements": {},
            "dr_reminder_enabled": true,
            "members": [
              {
                "user": "**REDACTED**",
                "roles": [
                  "owner"
                ]
              },
              {
                "user": "**REDACTED**",
                "roles": [
                  "member"
                ]
              }
            ],
            "manual_eco_all": false,
            "emergency_contact_type": 3,
            "goose_sensor_events_enabled": true,
            "campaign_id": "8b1621c4-b339-4d83-8268-de57d9e30db9",
            "time_zone": "**REDACTED**",
            "user": "**REDACTED**",
            "clutches": [],
            "away": false,
            "devices": []
          }
        },
        {
          "object_key": "where.4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
          "object_revision": 8715,
          "object_timestamp": 1610645239833,
          "value": {
            "wheres": [
              {
                "where_id": "00000000-0000-0000-0000-00010000000c",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000005",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000013",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000001",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000010",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000001d",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000017",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000000b",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000002",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000006",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000012",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000009",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000001c",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000000f",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000016",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000007",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000000a",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000011",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000001b",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000015",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000008",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000003",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000000e",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000004",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000014",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000000",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000000d",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-000100000018",
                "name": "**REDACTED**"
              },
              {
                "where_id": "00000000-0000-0000-0000-00010000001a",
                "name": "**REDACTED**"
              }
            ]
          }
        },
        {
          "object_key": "topaz.6416660000C74AB6",
          "object_revision": -19841,
          "object_timestamp": 1648155004088,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-000100000002",
            "creation_time": 1584895306209,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.28",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464677,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1859587200,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464674,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "latest_manual_test_end_utc_secs": 1585609068,
            "smoke_status": 0,
            "latest_manual_test_start_utc_secs": 1585609042,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 0,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-000100000002",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16392,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1543968000,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5208
          }
        },
        {
          "object_key": "topaz.18B4300000B13925",
          "object_revision": -25121,
          "object_timestamp": 1648155893931,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-000100000010",
            "creation_time": 1546146209000,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.32",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464676,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1849564800,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464673,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "smoke_status": 0,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 0,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-000100000010",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1533945600,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5156
          }
        },
        {
          "object_key": "kryptonite.18B430C3D344C497",
          "object_revision": -121,
          "object_timestamp": 1648182977691,
          "value": {
            "model": "KR1",
            "last_updated_at": 1648182977,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "current_temperature": 20.199997,
            "where_id": "00000000-0000-0000-0000-00010000000d",
            "serial_number": "**REDACTED**",
            "battery_level": 88
          }
        },
        {
          "object_key": "topaz.18B4300000AD4511",
          "object_revision": 25549,
          "object_timestamp": 1648157100106,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-00010000000b",
            "creation_time": 1560721027696,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.31",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464673,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1844035200,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464670,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "smoke_status": 0,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 3,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-00010000000b",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1528416000,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5189
          }
        },
        {
          "object_key": "topaz.18B4300000B13FF9",
          "object_revision": -26844,
          "object_timestamp": 1648157307803,
          "value": {
            "spoken_where_id": "00000000-0000-0000-0000-00010000000d",
            "creation_time": 1546146775000,
            "installed_locale": "en_US",
            "ntp_green_led_brightness": 2,
            "component_buzzer_test_passed": true,
            "wifi_ip_address": "192.168.1.33",
            "wired_led_enable": true,
            "wifi_regulatory_domain": "A2",
            "co_blame_duration": 0,
            "is_rcs_capable": false,
            "fabric_id": "10BE622091EE931F",
            "battery_health_state": 0,
            "steam_detection_enable": true,
            "hushed_state": false,
            "capability_level": 2.0,
            "home_alarm_link_type": 0,
            "model": "Topaz-2.7",
            "component_smoke_test_passed": true,
            "component_speaker_test_passed": true,
            "removed_from_base": false,
            "smoke_sequence_number": 0,
            "last_audio_self_test_end_utc_secs": 1645464679,
            "home_away_input": false,
            "device_locale": "en_US",
            "co_blame_threshold": 0,
            "kl_software_version": "3.0.16",
            "component_us_test_passed": false,
            "auto_away": true,
            "night_light_enable": false,
            "component_als_test_passed": true,
            "speaker_test_results": 16384,
            "wired_or_battery": 1,
            "is_rcs_used": false,
            "replace_by_date_utc_secs": 1849564800,
            "certification_body": 1,
            "last_audio_self_test_start_utc_secs": 1645464676,
            "component_pir_test_passed": true,
            "structure_id": "4e8d3530-a25f-11e8-885e-0a60ba0b0d1c",
            "software_version": "3.4rc6",
            "component_hum_test_passed": true,
            "home_alarm_link_capable": false,
            "night_light_brightness": 2,
            "device_external_color": "white",
            "smoke_status": 0,
            "component_temp_test_passed": true,
            "home_alarm_link_connected": false,
            "co_status": 0,
            "heat_status": 0,
            "product_id": 9,
            "night_light_continuous": false,
            "co_previous_peak": 1,
            "auto_away_decision_time_secs": 600,
            "component_co_test_passed": true,
            "where_id": "00000000-0000-0000-0000-00010000000d",
            "serial_number": "**REDACTED**",
            "component_heat_test_passed": false,
            "latest_manual_test_cancelled": false,
            "thread_mac_address": "**REDACTED**",
            "resource_id": "topaz_resource.5",
            "buzzer_test_results": 16384,
            "wifi_mac_address": "**REDACTED**",
            "line_power_present": false,
            "gesture_hush_enable": false,
            "device_born_on_date_utc_secs": 1533945600,
            "ntp_green_led_enable": true,
            "component_led_test_passed": true,
            "co_sequence_number": 0,
            "thread_ip_address": "**REDACTED**",
            "component_wifi_test_passed": true,
            "heads_up_enable": true,
            "battery_level": 5185
          }
        }
      ],
      "service_urls": {
        "urls": {
          "rubyapi_url": "https://home.nest.com/",
          "czfe_url": "https://czfe75-front01-iad01.transport.home.nest.com",
          "log_upload_url": "https://logsink.home.nest.com/upload/user",
          "transport_url": "https://czfe75-front01-iad01.transport.home.nest.com",
          "weather_url": "https://apps-weather.nest.com/weather/v1?query=",
          "support_url": "https://nest.secure.force.com/support/webapp?",
          "direct_transport_url": "https://transport04-rts34-iad01.transport.home.nest.com:443"
        },
        "limits": {
          "thermostats_per_structure": 20,
          "structures": 5,
          "smoke_detectors_per_structure": 18,
          "smoke_detectors": 54,
          "thermostats": 60
        },
        "weave": {
          "service_config": "**REDACTED**",
          "pairing_token": "**REDACTED**",
          "access_token": "**REDACTED**"
        }
      },
      "weather_for_structures": {
        "structure.4e8d3530-a25f-11e8-885e-0a60ba0b0d1c": {
          "current": {
            "icon": "rain",
            "temp_c": "**REDACTED**",
            "sunrise": "**REDACTED**",
            "sunset": "**REDACTED**"
          },
          "location": "**REDACTED**"
        }
      },
      "2fa_enabled": true
    }
  }
}

Home Assistant log

I enabled debug logging but didn’t see anything. Tried force updating one of the entities but still nothing.

Logs ``` Copy/paste any log here, between the starting and ending backticks (`) ```

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks to @rmcginty and @DigiLive, a fix has been added in the beta branch. In the future, I plan to add the voltage sensor as well.

How to test:

  • Remove your custom_components/nest_protect folder.
  • Download the latest beta version.
  • Copy the nest_protect folder to your custom_components folder.

Battery level for me, if reported voltage I would in any case want to re-calculate the percentage level somehow

Thanks all! I will need some time to look at the PR, mainly the CI/CD why it is failing. If that is because of the check-in, or because of this project being too old, and needing some updates…

I did not realise that this integration supports thermostat sensors. I assume that is why you have the following in your pull request?

    if state <= 100:
        result = state

Maybe for the sake of rolling out a fix to this issue we merge #276 while @iMicknl has the opportunity to review? Can always add a battery_voltage sensor later.

Thanks a lot for supporting my theory and for testing it. My devices are as good as new, so I couldn’t relate.

👍🏻👍🏻

I have another theory as explained in #273. Hopefully the owner will find it plausible enough to merge the PR.

I agree with the logic on this. I had modified the code in my install and pulled the data sheets for the Energizer lithiums. The only thing I did differently was accommodate the two slopes in voltage (in other words it wasn’t completely linear) but in hindsight I think that was overkill. I was about to submit my changes when I accidentally updated it in HACS and blew away my changes lol. Anyway, point is, I think you nailed it and I tested the calculations against my 14 detectors, 3 which are wired and rest are battery. After two years the high traffic battery ones were good tests as the voltage was starting to dip and the app was saying to replace one. All tests matched values in the Nest app… Hope the PR can get merged.

Diagnostics of my wired device reports a battery-level of 5291. Protect (Wired) requires 3 AA as backup batteries.