Use washing machine alerts to take out laundry
This commit is contained in:
parent
5c3ea009d2
commit
cedea7d7dc
9
configuration/alert.yaml
Normal file
9
configuration/alert.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
washing_machine:
|
||||
name: Washing machine is done
|
||||
done_message: Laundry taken out
|
||||
entity_id: input_boolean.washing_machine_done
|
||||
state: 'on'
|
||||
repeat: 30
|
||||
message: Washing machine is done, take out laundry
|
||||
notifiers:
|
||||
- mobile_app_iphone
|
@ -18,12 +18,9 @@
|
||||
entity_id: switch.washing_machine_on_off
|
||||
state: 'on'
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.washing_machine_on_off
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: 'Washing Machine'
|
||||
message: 'Washing has finished'
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.washing_machine_done
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
@ -37,3 +34,15 @@
|
||||
data:
|
||||
duration: 30
|
||||
color: black
|
||||
|
||||
- id: washing-machine-taken
|
||||
alias: '[Washing Machine] Laundry taken out'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- switch.washing_machine_on_off
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.washing_machine_done
|
||||
|
@ -1,4 +1,5 @@
|
||||
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||
alert: !include alert.yaml
|
||||
automation: !include automations.yaml
|
||||
#cloud:
|
||||
config:
|
||||
@ -61,6 +62,9 @@ input_boolean:
|
||||
vacuum_vacuumed_today:
|
||||
name: "Vacuumed today"
|
||||
icon: "mdi:robot-vacuum"
|
||||
washing_machine_done:
|
||||
name: "Washing machine done"
|
||||
icon: "mdi:washing-machine"
|
||||
input_datetime:
|
||||
alarm:
|
||||
name: "Alarm time"
|
||||
|
@ -49,6 +49,10 @@
|
||||
copy:
|
||||
src: configuration/configuration.yaml
|
||||
dest: '{{ pwd_config }}/configuration.yaml'
|
||||
- name: Copy alert
|
||||
copy:
|
||||
src: configuration/alert.yaml
|
||||
dest: '{{ pwd_config }}/alert.yaml'
|
||||
- name: Copy customize
|
||||
copy:
|
||||
src: configuration/customize.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user