Created
November 19, 2020 11:45
-
-
Save lellky/2c563cc68aebe549b7d41fea3e4fef37 to your computer and use it in GitHub Desktop.
Home assistant washing machine automation
This file contains 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_washing | |
alias: Tvättmaskinen - tvättar | |
trigger: | |
- above: 100 | |
entity_id: sensor.tvattmaskinen_power | |
for: 00:00:10 | |
platform: numeric_state | |
action: | |
- service: input_select.select_option | |
data: | |
entity_id: input_select.state_tvattmaskinen | |
option: Tvättar | |
- id: washingmachine_ready | |
alias: Tvättmaskinen - klar | |
trigger: | |
- below: 10 | |
entity_id: sensor.tvattmaskinen_power | |
for: 00:02:00 | |
platform: numeric_state | |
action: | |
- service: input_select.select_option | |
data: | |
entity_id: input_select.state_tvattmaskinen | |
option: Klar | |
- id: '1579881449453' | |
alias: Notifiera att tvätten är klar | |
description: '' | |
trigger: | |
- entity_id: input_select.state_tvattmaskinen | |
from: Tvättar | |
platform: state | |
to: Klar | |
condition: [] | |
action: | |
- data: | |
entity_id: media_player.google_home_mini | |
message: jalla jalla tvätten är klar | |
service: tts.google_say | |
- data: | |
entity_id: media_player.hogtalaren_i_koket | |
message: jalla jalla tvätten är klar | |
service: tts.google_say | |
- data: | |
message: Tvätten är klar nu! | |
title: Tvätten | |
service: notify.mobile_app |
This file contains 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_tvattmaskinen: | |
name: Status tvättmaskin | |
options: | |
- Klar | |
- Tvättar | |
icon: mdi:tumble-dryer | |
initial: Klar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment