Open JoeAstor opened 2 years ago
Something like this will fix it:
{% set state = states('sensor.buienalarm_next_rain_forecast') %}
{% if state == "unknown" %}
unknown
{% elif as_timestamp(state) %}
{{ ( ( as_timestamp(state) - as_timestamp(now()) ) / 60 ) | round }}
{% else %}
unknown
{% endif %}
After update october/november i have logbook error.
Error
Thanks for checking 🙂