Sure!
I used this as a great inspiration for the overall setup (points & cash).
For the diswasher specificaly:
- I have a input_select
dishingmachine_turn:
name: Dishing Machine
options:
- MySonName
- MyDoughterName
initial: MySonName
- A input_boolean
dishwasher_is_empty:
name: DishwasherIsEmpty
icon: mdi:dishwasher
- The automation from this template
alias: Dishwasher has finished
description: ''
use_blueprint:
path: >-
sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
input:
power_sensor: sensor.kitchen_dishwasher_plug_power
actions:
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.dishwasher_is_empty
- service: notify.mobile_app_my_iphone
data:
message: >-
The dishwasher has finished!
{{states('input_select.dishingmachine_turn')}} has to empty today!
data:
persistent: true
tag: persistent
- service: notify.mobile_app_wife_iphone
data:
message: >-
The dishwasher has finished!
{{states('input_select.dishingmachine_turn')}} has to empty today!
data:
persistent: true
tag: persistent
- service: notify.mobile_app_doughter_iphone
data:
message: >-
The dishwasher has finished!
{{states('input_select.dishingmachine_turn')}} has to empty today!
data:
persistent: true
tag: persistent
- service: notify.mobile_app_son_iphone
data:
message: >-
The dishwasher has finished!
{{states('input_select.dishingmachine_turn')}} has to empty today!
data:
persistent: true
tag: persistent
- data:
volume_level: 0.1
entity_id: media_player.living_echo
service: media_player.volume_set
- service: notify.alexa_media
data:
data:
type: tts
message: >-
The dishwasher has finished!
{{states('input_select.dishingmachine_turn')}} has to emtpy today!
target:
- media_player.living_echo
- service: media_player.volume_set
data:
volume_level: 0.4
entity_id: media_player.living_echo
starting_hysteresis: '5'
starting_threshold: '2'
finishing_threshold: '2'
finishing_hysteresis: '5'
- Each kid has his own dashboard with a conditional card (only show him the button is is his/her turn and if the dishwhasher is not empty) … here is my son’s … similar fo rmy doughter
type: conditional
conditions:
- entity: input_select.dishingmachine_turn
state: MySonName
- entity: input_boolean.dishwasher_is_empty
state: 'off'
- entity: sensor.daytime
state: 'True'
card:
type: entities
entities:
- entity: input_boolean.dishwasher_is_empty
name: Empty Dishwasher
- When they “check” it on their dahsboard (changing the input boolean to true) I have another automation (for each) that is:
- giving them 10 points (each point is 5 euro cents)
- sned notification to me and my wife
- changing the input select to the other kid
- in this way the button disapeares as well from their dashboard (see conditional card above)
alias: MySon Points Management ADD - Dishwasher
description: ''
trigger:
- platform: state
entity_id: input_boolean.dishwasher_is_empty
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_select.dishingmachine_turn
state: MySonName
action:
- service: input_number.set_value
data:
value: '{{ states(''input_number.points_MySonName'') | int + 10 | int }}'
entity_id: input_number.points_david
- service: notify.mobile_app_wife_iphone
data:
message: '{{states(''input_select.dishingmachine_turn'')}} emptied the dishwasher!'
data:
persistent: true
tag: persistent
- service: notify.mobile_app_my_iphone
data:
message: '{{states(''input_select.dishingmachine_turn'')}} emptied the dishwasher!'
data:
persistent: true
tag: persistent
- service: input_select.select_next
data: {}
entity_id: input_select.dishingmachine_turn
- service: input_datetime.set_datetime
data:
datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'
entity_id: input_datetime.dishwasher_last_empty
mode: single
max: 10
PS:
- I could probably avoid 2 automations on point 5 with 1 script, but I did not have time to make it … maybe later on
- When HA restarts my son gets the turn … I need to see if the “recorder” HA integration makes this persistent
- A script will be as weel great to make sure Alexa does not announce the dishwasher finished during the night ( I could not make a condition into the blueprint for that …)