Hi everyone, I am trying to automate status change of a machine. With the current automation, the power varies a lot between 3 W and 2300W when running, or between 1 and 1.5 W while idle. Is there a way to run the automation once? Thanks Here is the code:
alias: Status washing machine
description: ""
trigger:
- type: power
platform: device
device_id: b6fbd732c6d3c64b299b6350a8592721
entity_id: sensor.washing_machine_power
domain: sensor
below: 1.5
id: idle
- type: power
platform: device
device_id: b6fbd732c6d3c64b299b6350a8592721
entity_id: sensor.washing_machine_power
domain: sensor
above: 5
id: running
- type: power
platform: device
device_id: b6fbd732c6d3c64b299b6350a8592721
entity_id: sensor.washing_machine_power
domain: sensor
below: 0.1
id: washingmachineoff
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: idle
sequence:
- service: input_select.select_option
data:
option: Idle
target:
entity_id: input_select.washing_machine
- service: notify.mobile_app_mip4one
data:
message: Washing machine idle
- conditions:
- condition: trigger
id: running
sequence:
- service: input_select.select_option
data:
option: Running
target:
entity_id: input_select.washing_machine
- service: notify.mobile_app_mip4one
data:
message: Washing machine running
- conditions:
- condition: trigger
id: washingmachineoff
sequence:
- service: input_select.select_option
data:
option: "Off"
target:
entity_id: input_select.washing_machine
- service: notify.mobile_app_mip4one
data:
message: Washing Machine OFF
mode: single