I've already added a LED strip below the kitchen to give some ambient and status lighting (ESP32 with WS2812B). And I also already had a power plug that measured the power (Athom smart plug V2). I've now also a simple door sensor (aqara zigbee). I drilled a hole in the neighbourinf cabinet and embedded some magnet, and placed the door sensor on the dishwasher door. Our dishwasher has the feature to auto open the door when it's done to air dry it.
This all I now have put into a automation to calculate when the dishwasher is; Planned, Running, Finisched, and now emthied too!
No more asking if the dishwasher is going to run tonight, or if its clean. It will tell you with the LED strip!
description: ""
triggers:
- type: power
device_id: c1ec0c6f63d1ecd5d3db78555bcdc1b0
entity_id: ff1351d92d6d4c744974dfbe0a5ad055
domain: sensor
trigger: device
above: 1
id: sence
- type: power
device_id: c1ec0c6f63d1ecd5d3db78555bcdc1b0
entity_id: ff1351d92d6d4c744974dfbe0a5ad055
domain: sensor
trigger: device
above: 10
for:
hours: 0
minutes: 1
seconds: 0
id: running
- type: power
device_id: c1ec0c6f63d1ecd5d3db78555bcdc1b0
entity_id: ff1351d92d6d4c744974dfbe0a5ad055
domain: sensor
trigger: device
below: 1
for:
hours: 0
minutes: 1
seconds: 0
enabled: true
id: done
- type: not_opened
device_id: 7e88b779bd6eb8ca35bf872479867fca
entity_id: 4dbe83576f52026e60073aea8ea105b0
domain: binary_sensor
trigger: device
for:
hours: 0
minutes: 0
seconds: 10
conditions:
- alias: from_state != unavailable
condition: template
value_template: "{{ trigger.from_state.state != 'unavailable' }}"
actions:
- alias: Change state
choose:
- conditions:
- condition: state
entity_id: input_text.vaatwasser_state
state: "off"
- condition: numeric_state
entity_id: sensor.smart_plug_23_power
below: 10
above: 1
sequence:
- data:
value: sensing
action: input_text.set_value
target:
entity_id: input_text.vaatwasser_state
- conditions:
- condition: numeric_state
entity_id: sensor.smart_plug_23_power
above: 10
sequence:
- data:
value: running
action: input_text.set_value
target:
entity_id: input_text.vaatwasser_state
- conditions:
- condition: state
entity_id: input_text.vaatwasser_state
state: running
- condition: numeric_state
entity_id: sensor.smart_plug_23_power
below: 1
sequence:
- data:
entity_id: input_text.vaatwasser_state
value: done
action: input_text.set_value
default:
- data:
entity_id: input_text.vaatwasser_state
value: "off"
action: input_text.set_value
- action: script.update_and_shown_led_strip_status
metadata: {}
data: {}
mode: queued
max: 3
vaatwasser