Skip to content

Instantly share code, notes, and snippets.

@fastjack
Created February 18, 2020 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastjack/cd0d863347f4d9d39bb2977b34546a6f to your computer and use it in GitHub Desktop.
Save fastjack/cd0d863347f4d9d39bb2977b34546a6f to your computer and use it in GitHub Desktop.
- id: washingmachine_switchedoff
alias: 'Waschmaschine - Zustandswechsel zu Ausgeschaltet'
trigger:
- platform: state
entity_id: switch.espurna_2b13ca
to: 'off'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washingmachine
option: 'Ausgeschaltet'
- id: washingmachine_standby
alias: 'Waschmaschine - Zustandswechsel zu Bereit'
trigger:
- platform: state
entity_id: switch.espurna_2b13ca
to: 'on'
- platform: numeric_state
entity_id: sensor.espurna_2b13ca_power
below: 2
for: '00:01:00'
condition:
- condition: state
entity_id: switch.espurna_2b13ca
state: 'on'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washingmachine
option: 'Bereit'
- service: notify.pushover
data_template:
title: 'Waschmaschine fertig'
message: 'Du kannst die Wäsche herausnehmen'
- id: washingmachine_wash
alias: 'Waschmaschine - Zustandswechsel zu Waschen'
trigger:
- platform: numeric_state
entity_id: sensor.espurna_2b13ca_power
above: 10
for: '00:01:00'
condition:
- condition: state
entity_id: switch.espurna_2b13ca
state: 'on'
- condition: state
entity_id: input_select.state_washingmachine
state: 'Bereit'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washingmachine
option: 'Waschen'
input_select:
state_washingmachine:
name: Waschmaschine
options:
- Ausgeschaltet
- Bereit
- Waschen
icon: mdi:tumble-dryer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment