I’m using a has_value template, below which works to provide a true / false value, to identify if a device is offline.
I then want to use this in an automation to provide TTS / Notifications when the device goes offline, but when using templates in an automation it only triggers on a false to true result, but I need a true to false trigger.