When booting up, the travel time takes awhile to get an updated value and will return 'Unknown'. Perhaps fix with `{{ is_state('switch.source', 'on') }}` or something like: `{% if is_state('sun.sun', 'above_horizon') %} up {% else %} down {% endif %}`
When booting up, the travel time takes awhile to get an updated value and will return 'Unknown'.
Perhaps fix with
{{ is_state('switch.source', 'on') }}or something like:
{% if is_state('sun.sun', 'above_horizon') %} up {% else %} down {% endif %}