Hello Everyone,
i am facing a situation in a automation where i need some idea how to solve this.
I have to sensors:
pv-inverter-input (Watt)
wallbox-charging (true/false)
I’d like to trigger an event if:
if [pv-inverter-input is > 5000W for 5min] AND [wallbox-charging = true]
then
[turn on switch xyz]
I can set
pv-inverter-input is > 5000W for 5min as the trigger
and
wallbox-charging = true as the condition
but from my understanding the automation is only triggered at the point the “pv-inverter-input is > 5000W for 5min”. If wallbox-charging is false in this moment the action is not activated. If wallbox-charging is true later, the action is also not activated because the automation is not triggered…
What i can do is
Trigger:
“pv-inverter-input” changes
Condition:
[wallbox-charging = true] AND [pv-inverter-input is > 5000W]
then…
But this only takes the current state of “pv-inverter-input” and does not check the last 5 min