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
|
entity_id: switch.washing_machine_on_off
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: input_boolean.turn_on
|
||||||
entity_id: switch.washing_machine_on_off
|
target:
|
||||||
- service: notify.notify
|
entity_id: input_boolean.washing_machine_done
|
||||||
data:
|
|
||||||
title: 'Washing Machine'
|
|
||||||
message: 'Washing has finished'
|
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -37,3 +34,15 @@
|
|||||||
data:
|
data:
|
||||||
duration: 30
|
duration: 30
|
||||||
color: black
|
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)
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||||
|
alert: !include alert.yaml
|
||||||
automation: !include automations.yaml
|
automation: !include automations.yaml
|
||||||
#cloud:
|
#cloud:
|
||||||
config:
|
config:
|
||||||
@ -61,6 +62,9 @@ input_boolean:
|
|||||||
vacuum_vacuumed_today:
|
vacuum_vacuumed_today:
|
||||||
name: "Vacuumed today"
|
name: "Vacuumed today"
|
||||||
icon: "mdi:robot-vacuum"
|
icon: "mdi:robot-vacuum"
|
||||||
|
washing_machine_done:
|
||||||
|
name: "Washing machine done"
|
||||||
|
icon: "mdi:washing-machine"
|
||||||
input_datetime:
|
input_datetime:
|
||||||
alarm:
|
alarm:
|
||||||
name: "Alarm time"
|
name: "Alarm time"
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
copy:
|
copy:
|
||||||
src: configuration/configuration.yaml
|
src: configuration/configuration.yaml
|
||||||
dest: '{{ pwd_config }}/configuration.yaml'
|
dest: '{{ pwd_config }}/configuration.yaml'
|
||||||
|
- name: Copy alert
|
||||||
|
copy:
|
||||||
|
src: configuration/alert.yaml
|
||||||
|
dest: '{{ pwd_config }}/alert.yaml'
|
||||||
- name: Copy customize
|
- name: Copy customize
|
||||||
copy:
|
copy:
|
||||||
src: configuration/customize.yaml
|
src: configuration/customize.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user