I use this:
a input select helper:
automation for the state:
alias: Wasdroger
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.qubino_wasdroger_electric_consumption_w
for:
hours: 0
minutes: 0
seconds: 10
id: washing_was
above: '5'
- platform: numeric_state
entity_id: sensor.qubino_wasdroger_electric_consumption_w
for:
hours: 0
minutes: 2
seconds: 0
id: finished_was
above: '0.5'
below: '5'
- platform: numeric_state
entity_id: sensor.qubino_wasdroger_electric_consumption_w
for:
hours: 0
minutes: 2
seconds: 0
id: offstate_was
below: '0.5'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: washing_was
sequence:
- service: input_select.select_option
target:
entity_id: input_select.wasdroger
data:
option: Wassen
- conditions:
- condition: trigger
id: finished_was
sequence:
- service: input_select.select_option
target:
entity_id: input_select.wasdroger
data:
option: Klaar
- conditions:
- condition: trigger
id: offstate_was
sequence:
- service: input_select.select_option
target:
entity_id: input_select.wasdroger
data:
option: Uit
default: []
mode: single
automation for message:
alias: Was klaar
description: ''
trigger:
- platform: state
entity_id: input_select.wasdroger
to: Klaar
condition: []
action:
- service: notify.mobile_app_in2013
data:
message: Hallo, hier je wasmeisje. Ik ben klaar met mijn zware klus ;-)
- service: notify.mobile_app_zerkoefs_iphone
data:
message: Wasdroger is klaar
mode: single
This works even after a HA restart during the laundry
