My Washing heater cupboard setup

First Thanks to

he did the Hard Work I just Change it meet my needs

where he set it back to “Idle” i added
Hide the Group as i dont want to see when All Done

  - service: group.set_visibility
    entity_id: group.washing_group
    data:
      visible: false
  - service: automation.turn_on
    entity_id: automation.cupboard_timer_onoff

when he set the washing Status to Running i added this

  - service: group.set_visibility
    entity_id: group.washing_group
    data:
      visible: true

also turn_on a automation that turn on the Heater cupboard at 18:30:00 as
I only want it on that day when washing is done that automation also turn its else off

- action:
  - data:
      entity_id: switch.cupboard_heater
    service: switch.turn_on
  - delay: '10:00:00'
  - data:
      entity_id: switch.cupboard_heater
    service: switch.turn_off
  - data:
      entity_id: automation.cupboard_timer_onoff
    service: automation.turn_off
  alias: Cupboard Timer ON/OFF
  condition:
  - condition: state
    entity_id: sensor.cupboard_door
    state: Closed
  id: '1518037996205'
  trigger:
  - at: '18:30:00'
    platform: time

now the heater cupboard

If the Heater is on and I open the Door Heater off until the door closed again

- action:
  - data:
      entity_id: switch.cupboard_heater
    service: switch.turn_off
  - data:
      entity_id: input_boolean.notify_heater
    service: input_boolean.turn_on
  alias: Heater Off If Cupboard Open
  condition:
  - condition: state
    entity_id: switch.cupboard_heater
    state: 'on'
  id: '1513917625861'
  trigger:
  - entity_id: sensor.cupboard_door
    from: Closed
    platform: state
    to: Open

when it closed

- action:
  - data:
      entity_id: switch.cupboard_heater
    service: switch.turn_on
  - data:
      entity_id: input_boolean.notify_heater
    service: input_boolean.turn_off
  alias: 'Heater On If Cupboard Closed '
  condition:
  - condition: state
    entity_id: switch.cupboard_heater
    state: 'off'
  - condition: state
    entity_id: input_boolean.notify_heater
    state: 'on'
  id: '1513920534371'
  trigger:
  - entity_id: sensor.cupboard_door
    from: Open
    platform: state
    to: Closed

that got me thinking at nite time if i open the Cupboard door Turn hall light on

 action:
  - data:
      entity_id: switch.hall_light
    service: switch.turn_on
  - data:
      entity_id: input_boolean.hall_light
    service: input_boolean.turn_on
  alias: Turn Hall Light On When Cupboard Open
  condition:
  - condition: state
    entity_id: sensor.day_night
    state: Night
  - condition: state
    entity_id: switch.hall_light
    state: 'off'
  id: '1517392667306'
  trigger:
  - entity_id: sensor.cupboard_door
    from: Closed
    platform: state
    to: Open

now I Close the Cupboard door Hall light should go off

- action:
  - delay: 00:00:04
  - data:
      entity_id: switch.hall_light
    service: switch.turn_off
  - data:
      entity_id: input_boolean.hall_light
    service: input_boolean.turn_off
  alias: Turn Hall Light Off When Cupboard Closed
  condition:
  - condition: state
    entity_id: sensor.day_night
    state: Night
  - condition: state
    entity_id: input_boolean.hall_light
    state: 'on'
  id: '1517393032192'

but wait 4 sec so I get to where im going in the Light.

hope this turn on some LIGHT for you guys

2 Likes