I wonder if someone knows a way of doing this:
trigger:
- platform: numeric_state
entity_id: sensor.energy_acloads_ev_power
above: 100
condition:
- condition: and
conditions:
- condition: state
entity_id: sensor.openevse_divert_mode
state: eco
- condition: state
entity_id: sensor.energy_pvsources_excess
state: "0"
- condition: numeric_state
entity_id: sensor.energy_battery_power
below: -1000
for:
minutes: 2 <------
Or that the whole condition block tests true for 2 minutes.