SeanPM5 / homeassistant-config

14 stars 0 forks source link

Error Monitoring #33

Closed SeanPM5 closed 5 years ago

SeanPM5 commented 5 years ago

Want to add better error monitoring to my stuff.

I should be notified when the Hue bridge goes offline / fails to connect, same for my several Harmony Hubs. So there'd be an automation that would check if the state goes to unavailable or unknown for 60 seconds, and then sends a push notification to my phone and a persistent_notification to Home Assistant as well.

Fixing Errors

With Harmony I could include an iOS actionable notification to attempt to reconnect (using the remote.harmony_sync service call). I'm not sure if something like that is possible with Hue, at the very least I should be able to call the homeassistant.restart service.

Folder Structure

These would be separate packages inside /system/monitoring/ folder or something. Then I could move the other existing system related alerts there too (such as high disk use alerts, external ip change alerts, etc).

Alert Component

I could probably use the alert component for this as it offers repeat functionality, the message could send every ten minutes. Have never used this yet so test it out and see how it works. Tinkerer shared a working example here and here.