Hi, i have created a automation that turns on a plug when the energy surplus is over 1000. I now want to combine it with the Airco, if its on or not. This i my code for now:
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.overschot_nummeriek
above: 1000
conditions:
- condition: time
weekday:
- sun
- mon
- tue
- thu
- fri
- sat
- condition: device
device_id: 8ba411c570759885313019ae3f825513
domain: climate
entity_id: bddc47c8ce64d782aef2da848516b60e
type: is_hvac_mode
hvac_mode: cool
actions:
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- choose:
- conditions:
- condition: not
conditions:
- condition: numeric_state
entity_id: sensor.overschot_nummeriek
above: 1000
sequence:
- type: turn_off
device_id: 0c0d9e8e20189a1b6ae386197de9ba47
entity_id: 5bac4f32b80ef6604e517e10b4a19554
domain: light
- type: turn_on
device_id: 0c0d9e8e20189a1b6ae386197de9ba47
entity_id: 5bac4f32b80ef6604e517e10b4a19554
domain: light
mode: single
If the airco is on, and the energy surplus is 1000+, then i want to add an extra delay of 3 mins, so that the airco is not in start up mode and 'draining' all the surplus, so the pump goes on-off-on-off etc.
After the delay i want to re-check the trigger, is the energy over 1000 yes or no. If yes, then turn plug on. If no, turn off (or do nothing).
The does not meet condition is correct; if the energy surplus is not over 1000 then turn off is correct. Will this work, when the plug is off already?