I would like to set a routine to notify me when a device goes offline. Seems pretty simple. I do not see how to do it in routines
Not directly. There was a discussion about offline notifications last year in this topic.
It is certainly easy enough to subscribe to the online/offline status of devices in an installed app, and a Routine/Rule is a type of installed app, but for whatever reason the functionality hasn’t been implemented. There may perhaps be sound arguments against it.
It is kind of a shame really as a device being marked offline isn’t that interesting in itself. I had three smart plugs marked offline today, but two were offline for fifteen seconds or so and one for half a minute. Mildly interesting but not something I need to be alerted about. Had they stayed offline for a longer period it would have been worth knowing about. So arguably Routines/Rules would be the most useful method of communicating the offline status.
Home Insights is badly broken for me so I haven’t seen an Offline tile for months. However they are pretty useless if you don’t use the mobile app from one day to the next. Being able to choose the response would be far more interesting and, ridiculously, Routines are more capable at that than the full Rules API.
I still believe that online/offline needs to differentiate between enabled/disabled and working/not working.
I’m using Sharptools by @joshua_lyon for that issue.
Take a look here:
Thanks for the mention, @dotan_shai - I suspect the community link you were looking for was this one which is the SharpTools Labs feature for Health and Battery… where Health includes the offline status of a bulk of devices.