v1.9
Breaking change:
Your sensors default name will be `sensor.buienalarm_{monitored_condition}`.
The buienalarm_next_rain_forecast
sensor returns a date/time of the next rain forecast. To get the time-in-minutes to the next rain forecast a template sensor can be used. Add this template sensor to your configuration:
template:
- sensor:
- name: "Buienalarm Next rain forecast (min)"
unit_of_measurement: "min"
state: >
{% if as_timestamp(states('sensor.buienalarm_next_rain_forecast')) %}
{{ ( ( as_timestamp(states('sensor.buienalarm_next_rain_forecast')) - as_timestamp(now()) ) / 60 ) | round }}
{% else %}
{{ states('nonexistent') }}
{% endif %}