iMicknl / ha-nest-protect

Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.
MIT License
338 stars 64 forks source link

connects OK but does not find any sensors #304

Closed oscarhemberg closed 4 months ago

oscarhemberg commented 9 months ago

The problem

Hi, I have installed through HACS and followed the instructions and everything seems to work fine. No error messages or similar during installation or setup or later. Only problem is that none of my 8 Nest Protect units shows up. But I see them find in the Nest app or web interface.

I have removed and reinstalled a few times and get the same result every time.

I wonder if this is because I have two homes in Nest and the other home has no Nest Protects, only cameras. And I can not find a way to choose default home or similar and I get no choice of home during installation so I wonder if the current integration supports multipole homes or if that could be the root cause?

Any help much appreciated

Oscar

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

v0.4.0b4

What version of Home Assistant Core has the issue?

2024.1.5

Device / Model

Nest Protect 2nd Gen (Battery)

Diagnostics information

No response

Home Assistant log

Logs [home-assistant_nest_protect_2024-01-21T14-51-38.788Z.log](https://github.com/iMicknl/ha-nest-protect/files/14001716/home-assistant_nest_protect_2024-01-21T14-51-38.788Z.log) [config_entry-nest_protect-37a618344601ae00ae872e9fb85642e3.json.txt](https://github.com/iMicknl/ha-nest-protect/files/14001717/config_entry-nest_protect-37a618344601ae00ae872e9fb85642e3.json.txt)

Additional information

No response

iMicknl commented 9 months ago

Your issue is related to #239. I will see if I can fix this soon.

    self.area = areas[self.bucket.value["where_id"]]
                ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '00000000-0000-0000-acd4-efdb56eef958'
jamesmny commented 5 months ago

Seems like i am having the same situation whereby the install goes well, but i can not find any sensors. Running the latest beta. Any help greatly appreciated.
The key error im getting is : KeyError: '3f2f64f5-0916-4e65-b7d0-21bb9b38f298'

iMicknl commented 4 months ago

@jamesmny you can try using https://github.com/iMicknl/ha-nest-protect/tree/improve_cookie_method_code, which should have this fix: https://github.com/iMicknl/ha-nest-protect/archive/refs/heads/improve_cookie_method_code.zip.

iMicknl commented 4 months ago

Please update to latest beta (now v0.4.0b5) and create a new issue if you face issues.