I have an automation that kills power to the dishwasher and waits for cheaper electricity pricing before letting the dishwasher run. I have been running into an issue very frequently where the automation just does not kill power to the dishwasher at all.
alias: "Dishwasher: Queue Eco Cycle"
description: >-
Briefly provides the dishwasher with power so it can be started, then kills
power, and waits for the Cheapest Window sensor to turn on.
triggers:
- entity_id:
- switch.kitchen_switch_right
to: "on"
trigger: state
conditions: []
actions:
- if:
- condition: state
entity_id: switch.dishwasher_plug
state: "off"
then:
- action: switch.turn_on
target:
entity_id: switch.dishwasher_plug
data: {}
alias: Switch on Dishwasher Plug
- wait_for_trigger:
- entity_id:
- sensor.dishwasher_plug_power
above: 2
trigger: numeric_state
continue_on_timeout: false
#This is the step that fails most often, and I'm not sure why.
- alias: Turn off Dishwasher Plug & Kitchen Switch Right
data: {}
action: switch.turn_off
target:
entity_id:
- switch.dishwasher_plug
- switch.kitchen_switch_right
- wait_for_trigger:
- entity_id:
- binary_sensor.dishwasher_cheapest_window
to: "on"
trigger: state
- if:
- condition: state
entity_id: switch.dishwasher_plug
state: "off"
then:
- alias: Turn on Dishwasher Plug
data: {}
action: switch.turn_on
target:
entity_id: switch.dishwasher_plug
- wait_for_trigger:
- entity_id:
- binary_sensor.dishwasher_cheapest_window
to: "off"
trigger: state
continue_on_timeout: false
- alias: Turn off Dishwasher Plug
data: {}
action: switch.turn_off
target:
entity_id: switch.dishwasher_plug
mode: single