Created
February 18, 2020 17:38
-
-
Save fastjack/cd0d863347f4d9d39bb2977b34546a6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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