Hi, I'm a relatively new Home Assistant user, but as a computer science student I have experience with programming various systems.
I wanted to figure out a nice, scalable method to make my HA notify me when a device turns unavailable. I'd like to share what I came up with here so that others could use it as a base or maybe share some feedback on it.
Some requirements I had:
- I would like to receive notifications per device, not per entity. This should make sense - a device is a physical item, and it's likely that when there is a problem with the device, all or most of its entities will become unavailable, so I don't want to be spammed with messages, and I want it to be clear from the notification which device is malfunctioning.
- It should be scalable and flexible: I would like this to work for any device, such that I don't have to create a different automation for some device which doesn't quite fit the system.
- It should be easy to manage: I don't want to have to dig into yaml to add a device to some inclusion or exclusion list.