I’m not sure of this answers your question correctly, please let me know… I wasn’t happy that this Template retina the Sensors, and not the Device that contains the Sensor(s).
For example, if a Device contains multiple Sensors, I don’t want the multiple Sensors being reported as being offline, I just want the single Device to be reported, as that is cleaner and simpler.
I’ve written a new version of this blueprint that does this. Also tested it for ZHA and Z2M. Also wanted it to report offline switchs (smart plugs) as well as all battery devices.
I’m been testing it, it works great, I’ll post it soon after a little more testing.
Does that answer your question?