Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Occupancy not updated / triggered #125

Open
GentleGiantSoftware opened this issue Dec 30, 2022 · 17 comments
Open

Occupancy not updated / triggered #125

GentleGiantSoftware opened this issue Dec 30, 2022 · 17 comments
Labels
beta (cookie-method) Using the cookie method branch bug Something isn't working

Comments

@GentleGiantSoftware
Copy link

The problem

Occupancy is not updated / triggered. On the nest I see the white light coming on, so all is working fine. The occupancy value seems to be read correctly from the (powered) Nests when HA is started, but does not seem to change after that anymore. Sometimes the values are updated assuming this happens when other sensor values get updated, I hoped to use the occupancy as a direct trigger but seems not to be working. Nothing shows up in the logs, not even with debugging enabled (also not after a restart of HA).

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

0.3.10 (in Hacs) 0.3.8 (in logs)

What version of Home Assistant Core has the issue?

2022.12.7

Device / Model

Nest Protect (3 on power, 1 on battery)

Diagnostics information

No response

Home Assistant log

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

Additional information

No response

@GentleGiantSoftware GentleGiantSoftware added the bug Something isn't working label Dec 30, 2022
@Tatey53
Copy link

Tatey53 commented Jan 16, 2023

I can confirm that I am seeing the same issue. Like you, when HA is first started or restarted to the occupancy updates, and works and updates for a short time afterwards. However at some point after circa 30 minutes, HA fails to update, and will remain at the same status until HA is restarted. An example of the history log since the last HA restart is attached.
image

@iMicknl
Copy link
Owner

iMicknl commented Jan 16, 2023

@Tatey53 can you share your log file and diagnostics file as well? Are you running the main branch or the cookie method?

@Tatey53
Copy link

Tatey53 commented Jan 18, 2023

Hi @iMicknl,

Thanks for getting back to me. I am using the cookie method. Logs are attached. Reading them myself it would appear there is something it doesn't like. Maybe someone else would be able to decipher the error.

config_entry-nest_protect-ad8fbad14bcaeec16d5019457400c446.json.txt
home-assistant_2023-01-18T13-14-51.526Z.log

@Tatey53
Copy link

Tatey53 commented Jan 19, 2023

To add to the above, I am using the cookie method

@B-double-U
Copy link

Same issue here, using the cookie method.
Reloading the integration solves it but is obviously not ideal...

@iMicknl iMicknl added the beta (cookie-method) Using the cookie method branch label Mar 14, 2023
@Cruguah
Copy link

Cruguah commented Mar 28, 2023

I do see the sensor being updated in HA, but not because the sensor is triggering an update. The occupancy sensor is updated irregularly and is not reliable to use in HA

image

@cooltings
Copy link

Same problem here

@iMicknl
Copy link
Owner

iMicknl commented Dec 17, 2023

Can you all test the latest beta version, and let me know if you still face issues? I will be working on this integration again and good to understand the issues with the cookie method.

@B-double-U
Copy link

Can you all test the latest beta version, and let me know if you still face issues? I will be working on this integration again and good to understand the issues with the cookie method.

I’ve installed v0.4.0b4 a few days ago and everything seems to work OK.

@cooltings
Copy link

Seems to be working on new beta

@Pixel-Gavin
Copy link

Pixel-Gavin commented Dec 20, 2023

I'm on v0.4.0b4 (never been on any other) and the occupancy sensor is very ropey for me, almost always detecting somebody there.
The white light works as expected, and doesn't have any "ghost" triggers, but the API seems to be all over the place.
Today there is nobody in the house...

image

EDIT: Will leave these here for clarity, but I cannot read and I'm running v0.4.0b2 - am upgrading now and will let you know.

UPDATE: v.0.4.0b4 seems to be as unreliable for me, still says presence detected when nobody is in the house.

@cooltings
Copy link

Actually been a couple of days and it is getting stuck again:
Screenshot 2023-12-22 at 17 01 19

@iMicknl
Copy link
Owner

iMicknl commented Dec 22, 2023

@Pixel-Gavin please turn on debug mode and create a new issue for your 'ghost issues'.

@cooltings I will work on creating better debug logging, but I have seen these issues as well when the connectivity is lost.

@Pixel-Gavin
Copy link

@iMicknl I will do that. I'm pretty convinced that it's not connectivity in my case as I can update the settings and see them updating in realtime on the Nest app.

@B-double-U
Copy link

Indeed now looking back after a couple of days the occupancy detections are way off.
In the previous version I was on, these worked fine. I think it was the b1 or b2.

@kahancock
Copy link

Following this. I'm also on b4 and have the same mix of wired and wireless with the exact same behavior as above.

@stormshaker
Copy link

Same for me - I'm on 0.4.0b4 (cookie method) and my occupancy sensor gets stuck after every couple of days. I can fix it by reloading the integration config in HA - no need to restart HA and no need to do anything in HACS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta (cookie-method) Using the cookie method branch bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants