Hi,
I am in a need of assistance with one of my automations:
alias: "givEnergy - 0:30 Charge Battery"
description:
trigger:
- platform: time
at: "00:30:00"
enabled: true
condition: []
action:
- wait_template: >
{{ states.sensor.battery_percent.state | float(0) >=
states.number.battery_ac_charge_limit.state | float(0) }}
continue_on_timeout: true
- service: givenergy_local.set_charge_limit
data:
device_id: b1a9b37e8a130cee4fa0bbd9e0f363b8
power: 2600
enabled: true
- service: givenergy_local.set_discharge_limit
data:
device_id: b1a9b37e8a130cee4fa0bbd9e0f363b8
power: 0
enabled: true
mode: single
In its current form the automation will wait forever until the wait_template is true. However in certain conditions it might be a couple of days until the condition is true.
What I want is for the automation to stop regardless at 7:30.
Any suggestions how to achieve that?
Thanks