this post was submitted on 30 Nov 2023
17 points (100.0% liked)

homeassistant

11891 readers
63 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

So long story short, Google Nest thermostat just disconnects from HA every once in a while. It used to be when I did a reboot I'd get a notification in HA telling me an integration needs setting up again, always Nest and Google Calendar.

But now it seems to disconnect and not tell me. I realise when it's fucking freezing and my heating hasn't kicked on (I control it with HA rather than Nest because I get better results.)

So what I've done is have Node Red reload the integration every 4 hours, because when I manually do this it'll come up that the integration needs reconfiguring.

So now all I need is to be notified when the integration needs reconfiguring. A Google just brings me up threads on how to send a notification. I can do this already, I just want a notification when I get a notification...

See, the problem is that it's called "Notifications" in HA.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 10 months ago (1 children)

Why not set up an automation for when it disconnects (goes into unavailable or unknown state probably) and send a notification? That’s relying on the actual problem (Nest goes offline) rather than a side effect of the problem (notification that the integration is broken).

[–] [email protected] 2 points 10 months ago (1 children)

First thing I thought of, but it remains "connected" in HA as in it just reads as the same temperature and has API errors when It sends commands. It's actually disconnected but not registering as such.

I haven't had a disconnect since I started refreshing the integration in Node Red a couple of days ago, so to be fair I don't know if it will become "Disconnected" when it refreshes and isn't connected.

Basically what I'm saying is this may actually be the way to do it, I just don't know yet if it will become "Disconnected" yet

[–] [email protected] 3 points 10 months ago (1 children)

Maybe look at something like a template trigger that checks the last_updated property of the state object? If it’s older than n hours ago it’s triggered?

[–] [email protected] 1 points 10 months ago

Nice, I'd have to see how often the temperature changes during a normal day but I could make it work. Great idea thabks

[–] [email protected] 5 points 10 months ago (1 children)

If it's disconnecting every week or so set the Google cloud oauth app you set up to production. If it's left in testing mode it will de-authenticate every so often

[–] [email protected] 3 points 10 months ago

Huh, you see this is why I posted, I was hoping someone would have an insight into fixing the actual issue.

Thanks, I'll look into this

[–] [email protected] 2 points 10 months ago (1 children)

I've played around some with the events node feeding into a debug node and trying to find "Notifications", but no luck so far.

[–] [email protected] 1 points 10 months ago

Yeah I've had a look around myself and not found anything. Honestly just refreshing the integration required a little digging.