I am trying to set a routine so it will only water the garden if there is no rain forecasted for the day.
I am using open weather map one day call and it provides me with an entity of: sensor.openweathermap_forecast_condition Looking at the Developers Tools I can see that the current state is cloudy.
However when I manually run this automation, not matter what i put the state as, the action always runs.
- id: '1647850116736'
alias: Morning Water
description: ''
trigger:
- platform: time
at: 06:00:00
condition:
- condition: state
entity_id: sensor.openweathermap_forecast_condition
state: rain
action:
- type: turn_on
device_id: 673882bd533d8f7187e39de46d43fec6
entity_id: switch.garden_watering
domain: switch
mode: single
What am I missing? Any help would be greatly appreciated.