I´m having trouble creating this automation. What I want is to run this automation only when it´s Wednesday and adjusting manually the hour from the frontend. This is the script I have rn:
- id: '1621967683697'
alias: Check hour and day
description: ''
trigger:
- platform: time_pattern
minutes: '1'
condition:
- condition: template
value_template: ' ''{{ (now().strftime("%a") == "Wed") and (now().strftime("%H:%M") == states.input_datetime.hour_wed.state)}}'' '
action:
- service: switch.turn_on
target:
entity_id: switch.relay_1
mode: single
Even it seems fine to me the automation won´t trigger.