Closed sermayoral closed 9 months ago
You are correct, it is not working. I really thought it was working previously. I'm either mistaken or something in HA changed. Either way, I'll work to get this fixed. Thanks for letting us know.
It's a pleasure. Thank you for your time maintaining this component. I love it 😊
After settings a date of a timestamp variable in the date window dialog:
homeassistant show the following error:
The format is not right. Documentation says the following:
If your template is returning a timestamp that should be displayed in the frontend (e.g., as a sensor entity with device_class: timestamp), you have to ensure that it is the ISO 8601 format (meaning it has the “T” separator between the date and time portion). Otherwise, frontend rendering on macOS and iOS devices will show an error. The following value template would result in such an error:
{{ states.sun.sun.last_changed }} => 2023-07-30 20:03:49.253717+00:00 (missing “T” separator)
To fix it, enforce the ISO conversion via isoformat():
{{ states.sun.sun.last_changed.isoformat() }} => 2023-07-30T20:03:49.253717+00:00 (contains “T” separator)
Source: https://www.home-assistant.io/docs/configuration/templating/
Thank you very much 😊