@imick first of all, thank you so much for this plugin, I’ve been wanting to get this into HA for ages!
One thing that is confusing me slightly is that a “heat sensor” is exposed as part of the data. My understanding was that Nest Protect did not contain a heat sensor and therefore weren’t permitted in new builds in Wales, but obviously that data is coming from somewhere. Do you happen to know where?
If I can prove to the electricians and builders that the heat sensor is available, then I can continue to slot Nest Protect devices in around the house without issue, otherwise I’ll have to go to my current plan of using a different brand.
Thanks! Could you create an issue on GitHub? If this happens, you will need to reload the integration or restart Home Assistant for updates to come back in.
Just installed the Nest Protect integration, authorized my account, copied the token but after pasting it, it says “Unexpected Error”
Logs show “Invalid Grant”
2022-03-11 13:23:47 ERROR (MainThread) [custom_components.nest_protect] invalid_grant
Traceback (most recent call last):
File "/config/custom_components/nest_protect/config_flow.py", line 41, in async_step_user
refresh_token = await self.async_validate_input(user_input)
File "/config/custom_components/nest_protect/config_flow.py", line 26, in async_validate_input
refresh_token = await client.get_refresh_token(token)
File "/config/custom_components/nest_protect/pynest/client.py", line 89, in get_refresh_token
raise Exception(result["error"])
Exception: invalid_grant
Could you create an issue on GitHub? This will make it easier to have a look at your issue. The error handling still should be better though, that is on the todo list, however invalid grant I haven’t seen yet.
I assume you have a Google account? (and not a legacy Nest account).
Feel free to ask again, I didn’t mean to be this blunt . Just wanted to point out that there is a changelog, in case you were not familiar with it. No hard feelings.
Great to hear! In next update it will also reflect this better when the authentication is not correct. Good to understand that with a legacy Nest account, this experience can be confusing.
Really great to see the development here! I have been silently watching the updates. I have (3) Nest Protects that are around 5 years old - and still currently using the Legacy Nest API.
Looking forward to what appears to be added entities, based on what I see today on my Nest Protects with the legacy API.
Below is an example of one of my current Nest Protects.
Currently (almost) everything they expose in the API is also exposed in Home Assistant. In future version, I will disable some entities by default perhaps, if they are not used by many users.
See below screenshoto for the current state.
Great! Personally, I would like to have the ability to add all the entities. People can always choose to not display them in their lovelace entity listing.
Are the “Heat Test” and “Humidity Test” for the Nest Protects? Maybe the new models have extra items or my older one has sensors I didn’t realize existed.
I have been holding off upgrading HA for now (even though I could copy the old integration into custom components for now) since I would like to use your Nest Protect custom component once you feel it is ready.
I understand that once you migrate your devices from the legacy Nest Protect API to Google, you can’t go back - so just being cautious since all still works as is right now.
Exactly, it is developed for the latest release only. With HA being such a fast moving project, it is almost impossible to have backwards compatibility.
If you would use HACS, it will only let you upgrade the integration if your HA version meets the criteria.
Hi imick, first off, thanks for a great integration! I noticed in your screenshot that your Heat Test is showing Problem. I also have this status running your Nest Protect integration v0.3.2. I’ve done a test in the Nest iOS app and it is showing “Everything is ok”. Restarting HA has no effect on the Heat Test status.
Is there a known issue with Heat Test, or is it worth me raising an issue over on Github?
My device spec:
Topaz-2.9
Firmware: 3.4rc6
Hardware: Battery