-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Nest Presence shows unavailable #635
Comments
I would add, the Nest Protect devices function fine. |
In actual fact the device does update to show current status after a while (probably a polling thing), but it still shows as unavailable. Presence log is Nst Manager log is If it is worth me enabling other options on Long page, I'm happy to do so. |
you might try turning off the presence device in nst manager, and done/save your way out. wait 1-2 mins then re-enable the presence device, again done/save your way out It might be good to have the logging window open on another window. |
I went through that process, and now it is showing as available, so maybe it got stuck somehow. I now need to check it is showing status properly. This may take a couple of days.... |
I've updated the steps above after completely uninstalling and re-installing. Everything updates fine, but the Presence devices doesn't show and status and is marked as unavailable. The problem is when trying to capture logs, that it seems to change to unavailable after a variable length of time, by which time the logs may have stopped capturing to the screen. |
I've just gone through and configured up for a different location I have Nest at. This has a Thermostat. I've added the Thermostat, let that settle, then added the Presence device. After a short while the Presence device changed to unavailable. Logs are: NST Manager Thermostat Presence Watchdog |
I notice there is no Watchdog when you have a Nest Protect only location (or at least I didn't notice before). You will notice in the logs that I changed the location from Home to Away via the native Nest app, so the device is being updated in Smartthings fine, but the Presence device shows as unavailable. |
watchdog I think on ST installs for a thermostat. I can check the code if we should do it for all devices. Likely need you for the location having trouble to enable remote diagnostics (this URL should be shared in a private message in the forums). I don't see any obvious error so far. |
@imnotbob thanks for advice. I've got to admit, I can't see how to send a private message. I can see advice from years ago on how to find out someones email address, but not sure if that is the right way to go about it. Used plenty of forums in my day, but this is the first time I've wanted to PM on GitHub. |
I made a couple of code changes to try and identify the issue to add more logging, so there will be some 'new' items in the Presence log. Seems to come down to 'def res = device?.getStatus()' returning OFFLINE. I'm afraid I don't know where device status gets set, I think by Nest, but not sure. |
Found the bug. Presence DH refers to 'lastStrucDataUpd' but NST Manager is sending 'lastStrDataUpd', so it never does the routine to set the status as Online. Lines 219 and 220 in the DH. Fixed it in my local copy, and all working fine. |
thx for finding this, pushing a fix now |
Verify the following before opening an issue:
About Your Setup:
Expected Behavior
Nest Presence should show nest home/away status in line with changes in Nest app
Current Behavior
Nest Presence after initial update shows as ‘Unavailable’. Events show as api status True, device is present nest Presence is home. No changes since first discovery.
Steps to Reproduce (for bugs)
Note _ don't have a thermostat at this location, not sure if that is relevant.
Context
I’m trying to access Nest Home/Away status in a webcore automation.
Please include a copy of your log under the IDE if possible
The text was updated successfully, but these errors were encountered: