Not sure what’s wrong with this automation:
alias: Quick Charge
description: ""
trigger:
- platform: state
entity_id:
- input_button.quick_charge
condition: []
action:
- service: number.set_value
data:
value: "100"
target:
entity_id: number.lux_ac_battery_charge_level
- wait_for_trigger:
- platform: time
at: input_datetime.quick_charge_time_start
- service: switch.turn_on
data: {}
target:
entity_id: switch.lux_ac_charge_enable
- wait_for_trigger:
- platform: time
at: input_datetime.quick_charge_time_end
- service: switch.turn_off
data: {}
target:
entity_id: switch.lux_ac_charge_enable
mode: single
Basically, it should work like this: I set “quick_charge_time_start” and “quick_charge_time_end”, then hit the “quick_charge” button. Traces show that the automation stalls when it gets to
- wait_for_trigger:
- platform: time
at: input_datetime.quick_charge_time_start
trace:
wait:
remaining: null
trigger: null
Checking the helper entity, the time is set correctly. Should the code be written differently there? Using quotes or brackets? Have tried various combinations of quotes and brackets without any luck.