I would like to turn on an input boolean when a power plug detects that my dishwasher is above 5 watts for 1 minute and turn off when it's below 1 watt for 5 minutes. (or maybe with different values in the future)
The UI doesn't allow this but seems like I also can't save the automations like this. is there are correct way of doing this?
Message malformed: extra keys not allowed @ data['actions'][0]['choose'][0]['conditions'][0]['for']
alias: Vaatwasser in gebruik dectectie
description: ""
triggers:
- trigger: state
entity_id:
- sensor.meter_vaatwasser_vermogen
conditions: []
actions:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.meter_vaatwasser_vermogen
above: 5
for:
minutes: 1
sequence:
- action: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.vaatwasser_in_gebruik
- conditions:
- condition: numeric_state
entity_id: sensor.meter_vaatwasser_vermogen
below: 1
for:
minutes: 5
sequence:
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.vaatwasser_in_gebruik
mode: restart