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

homeassistant

12152 readers
54 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 2 years 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
[–] CondorWonder@lemmy.ca 6 points 1 year 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).

[–] Lifebandit666 2 points 1 year 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

[–] CondorWonder@lemmy.ca 3 points 1 year 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?

[–] Lifebandit666 1 points 1 year 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

[–] ntzm@lemmy.ml 5 points 1 year 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

[–] Lifebandit666 3 points 1 year 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

[–] walden@sub.wetshaving.social 2 points 1 year 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.

[–] Lifebandit666 1 points 1 year ago

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