Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################################################
- ## Washer/Dryer Automations
- #################################################################
- ######################################################################################################################################
- #description: Turn on washing machine running bool so we are sure its running
- #trigger(s): washing machine vibration sensor going for 2 minutes streight
- #condition(s):
- #action: tun on washing machine running bool
- ######################################################################################################################################
- - alias: "Washer/Dryer - Set washing machine running bool to on"
- trigger:
- - platform: state
- entity_id: binary_sensor.vibration_washing_machine
- to: 'on'
- for:
- minutes: 2
- action:
- - service: input_boolean.turn_on
- entity_id: input_boolean.washing_machine_running_switch
- ######################################################################################################################################
- #description: Turn on the washing machine needs to move switch
- #trigger(s): washing machine vibration sensor from on to off for 2 minutes
- #condition(s): washing machine running bool on, time after 10 and before 9
- #action: turn on washing machine needs to move switch
- ######################################################################################################################################
- - alias: "Washer/Dryer - Turn On Washing Machine Done Switch"
- trigger:
- - platform: state
- entity_id: binary_sensor.vibration_washing_machine
- from: 'on'
- to: 'off'
- for:
- minutes: 2
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.washing_machine_running_switch
- state: 'on'
- action:
- - service: input_boolean.turn_on
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- - service: input_boolean.turn_off
- entity_id: input_boolean.washing_machine_running_switch
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{0}}"
- #####################################################################################################################################
- #description: Announce the wash is complete when the washer is done
- #trigger(s): Washing machine needs to move switch turned on
- #condition(s): someone is home, dryer is not running, before 11 pm
- #action: Announce that the wash is ready to move to the dryer
- ######################################################################################################################################
- - alias: "Washer/Dryer - Announce Washing Machine Done"
- trigger:
- - platform: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- from: 'off'
- to: 'on'
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: sensor.anyone_home
- state: 'True'
- - condition: state
- entity_id: sensor.dryer
- state: 'Idle'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- action:
- - service: notify.alexa_media
- data_template:
- target: >
- {% set hr = now().hour %}
- {% if hr < 10 %} group.all_echos_but_the_bedroom
- {% elif hr < 21 %} group.all_echos
- {% else %} group.downstairs_echos
- {% endif %}
- data:
- type: announce
- message: "The washing machine is complete and ready to move to the dryer"
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{ states('input_number.washer_done_announce_counter')|int + 1}}"
- #####################################################################################################################################
- #description: Announce the wash is complete when the dryer is done
- #trigger(s): Dryer cheanged from Drying to Idle
- #condition(s): someone is home, Washing machine needs to move switch turned on, before 11 pm
- #action: Announce that the wash is ready to move to the dryer
- ######################################################################################################################################
- - alias: "Washer/Dryer - Announce Dryer Is Done So You Can Move The Wash"
- trigger:
- - platform: state
- entity_id: sensor.dryer
- from: 'Drying'
- to: 'Idle'
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: sensor.anyone_home
- state: 'True'
- - condition: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- state: 'on'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- action:
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{ states('input_number.washer_done_announce_counter')|int + 1}}"
- - service: notify.alexa_media
- data_template:
- target: >
- {% set hr = now().hour %}
- {% if hr < 10 %} group.all_echos_but_the_bedroom
- {% elif hr < 21 %} group.all_echos
- {% else %} group.downstairs_echos
- {% endif %}
- data:
- type: announce
- message: "The dryer is complete and there are clothes in the washing machine waiting to be moved over."
- #####################################################################################################################################
- #description: Reminder the wash is complete on the hour
- #trigger(s): on the hour
- #condition(s): someone is home, Washing machine needs to move switch turned on, before 11 pm, count is less then 5
- #action: Announce that the wash is ready to move to the dryer
- ######################################################################################################################################
- - alias: "Washer/Dryer - Announce Reminder That The Wash Is Done"
- trigger:
- platform: time_pattern
- minutes: 07
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: sensor.anyone_home
- state: 'True'
- - condition: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- state: 'on'
- - condition: state
- entity_id: sensor.dryer
- state: 'Idle'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- - condition: template
- value_template: "{{states('input_number.washer_done_announce_counter')|int > 0}}"
- action:
- - service: notify.alexa_media
- data_template:
- target: >
- {% set hr = now().hour %}
- {% if hr < 10 %} group.all_echos_but_the_bedroom
- {% elif hr < 21 %} group.all_echos
- {% else %} group.downstairs_echos
- {% endif %}
- data:
- type: announce
- message: "The washing machine has clothes waiting to be put in the dryer."
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{ states('input_number.washer_done_announce_counter')|int + 1}}"
- #####################################################################################################################################
- #description: Trigger Boolean To Let First Person Know That Gets Home That The Washer Has Completed
- #trigger(s): somone comes home
- #condition(s): Washing machine needs to move switch turned on, dryer is not running
- #action: Set the Announce Washing Machine Boolean
- ######################################################################################################################################
- - alias: "Washer/Dryer - Set Arrival Boolean"
- trigger:
- - platform: state
- entity_id: sensor.anyone_home
- from: 'False'
- to: 'True'
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- state: 'on'
- - condition: state
- entity_id: sensor.dryer
- state: 'Idle'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- - condition: state
- entity_id: sensor.dryer
- state: 'Idle'
- action:
- - service: input_boolean.turn_on
- entity_id: input_boolean.washing_machine_arrival_announcement_switch
- #####################################################################################################################################
- #description: Reminder the wash is complete on the hour
- #trigger(s): on the hour
- #condition(s): someone is home, Washing machine needs to move switch turned on, before 11 pm, count is less then 5
- #action: Announce that the wash is ready to move to the dryer
- ######################################################################################################################################
- - alias: "Washer/Dryer - Announce When Someone Gets Home That The Wash Is Done"
- trigger:
- - platform: state
- entity_id: binary_sensor.front_door_sensor
- from: 'on'
- to: 'off'
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.washing_machine_arrival_announcement_switch
- state: 'on'
- - condition: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- state: 'on'
- - condition: state
- entity_id: sensor.dryer
- state: 'Idle'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- action:
- - delay: 00:00:20
- - service: notify.alexa_media
- data_template:
- target: >
- {% set hr = now().hour %}
- {% if hr < 10 %} group.all_echos_but_the_bedroom
- {% elif hr < 21 %} group.all_echos
- {% else %} group.downstairs_echos
- {% endif %}
- data:
- type: announce
- message: "Welcome home. While you where away the washing machine completed it's cycle and is ready to be put in the dryer."
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{ states('input_number.washer_done_announce_counter')|int + 1}}"
- - service: input_boolean.turn_off
- entity_id: input_boolean.washing_machine_arrival_announcement_switch
- #####################################################################################################################################
- #description: Announce the dryer is complete
- #trigger(s): dryer set from drying to idle
- #condition(s): someone is home, washing machine needs to move switch is off, before 11 pm
- #action: Announce that the dryer is complete
- ######################################################################################################################################
- - alias: "Washer/Dryer - Announce Dryer Done"
- trigger:
- - platform: state
- entity_id: sensor.dryer
- from: 'Drying'
- to: 'Idle'
- condition:
- - condition: and
- conditions:
- - condition: state
- entity_id: sensor.anyone_home
- state: 'True'
- - condition: state
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- state: 'off'
- - condition: time
- after: '09:00:00'
- before: '23:00:00'
- action:
- - service: notify.alexa_media
- data_template:
- target: >
- {% set hr = now().hour %}
- {% if hr < 10 %} group.all_echos_but_the_bedroom
- {% elif hr < 21 %} group.all_echos
- {% else %} group.downstairs_echos
- {% endif %}
- data:
- type: announce
- message: "The dryer is complete and ready to be emptied"
- ######################################################################################################################################
- #description: Set the washing machine ready to move switch to off when the dryer is turned on.
- #trigger(s): dryer is turned on
- #condition(s): none
- #action: set whe washing machine ready to false.
- ######################################################################################################################################
- - alias: "Washer/Dryer - Reset Washing Machine Ready Switch With Dryer"
- trigger:
- - platform: state
- entity_id: sensor.dryer
- from: 'Idle'
- to: 'Drying'
- action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- ######################################################################################################################################
- #description: Reset Washing Machine Ready Switch With Counter
- #trigger(s): counter is set to 5
- #condition(s): none
- #action: set the washing machine ready to false
- ######################################################################################################################################
- - alias: "Washer/Dryer - Reset Washing Machine Ready Switch With Counter"
- trigger:
- - platform: template
- value_template: "{{states('input_number.washer_done_announce_counter')|int == 5}}"
- action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.washing_machine_needs_to_move_switch
- - service: input_number.set_value
- data_template:
- entity_id: input_number.washer_done_announce_counter
- value: "{{0}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement