I want to change the date of the input_datetime.led_on entity. The automation activates as it should, but the input_datetime.led_on entity does not change the value.
Im new to Home Assistant and could not figure out my mistake.
- alias: "test"
trigger:
- platform: state
entity_id: switch.vegetationsphase
- platform: state
entity_id: switch.blutephase
- platform: state
entity_id: switch.trocknungsphase
- platform: state
entity_id: input_datetime.led_on_veg
- platform: state
entity_id: input_datetime.led_on_blu
- platform: state
entity_id: input_datetime.led_on_tro
action:
- choose:
- conditions: >
{{is_state('switch.vegetationsphase', 'on')}}
sequence:
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.led_on
data:
datetime: "{{input_datetime.led_on_veg.strftime('%H:%M')}}"