Hello all, I am trying to push a Morning Flash notification to my ios device via an automation that triggers on the Focus state of my phone changing. Within this notification a couple of the message elements I am sending are not formatted as I see them in Lovelace UI, but they are as they appear in the Dev/Tools>States section.
For example:
UPS Runtime {{states.sensor.myups_battery_runtime.state}}.
returns a value of 5430. I know that this is the number of seconds the UPS runtime state shows, but in my Lovelace UI this sensor shows up as 1:33:30 etc…
I have a similar issue if trying to use the sensor.hassio_uptime. The sensor comes back with a date/time stamp, but Lovelace UI shows this to me as “Yesterday” or “4 days” etc…
How do I format these into my data template in the notify.mobile_app_example service so that they are more useful?
Thank you!