2018-10-06 21:25:32 +00:00
|
|
|
###################################
|
|
|
|
## ZWave Section -
|
2020-07-02 18:50:39 +00:00
|
|
|
## Home Assistant runs on my [Raspberry Pi 3](https://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](https://amzn.to/2eAiAP0).
|
2018-10-06 21:25:32 +00:00
|
|
|
###################################
|
|
|
|
|
|
|
|
##############################################################
|
|
|
|
- alias: Garage Light Hallway Helper OPEN
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 5ea2a2b5-e3de-4acd-823c-dac3eeaa6118
|
2020-08-09 18:39:16 +00:00
|
|
|
|
2018-10-06 21:25:32 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
2018-12-04 15:34:41 +00:00
|
|
|
entity_id: binary_sensor.kitchen_door
|
2018-10-06 21:25:32 +00:00
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.mcu1_gpio12
|
|
|
|
to: 'on'
|
|
|
|
|
2018-10-06 21:57:58 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.garage_hallway
|
|
|
|
state: 'off'
|
|
|
|
|
2018-10-06 21:25:32 +00:00
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.garage_hallway
|
|
|
|
|
|
|
|
##############################################################
|
|
|
|
- alias: Garage Light Hallway Helper Closed
|
2020-07-20 18:33:03 +00:00
|
|
|
id: f6060cd7-add7-487f-9b2b-f7849db3b36d
|
2020-08-09 18:39:16 +00:00
|
|
|
mode: restart
|
|
|
|
|
2018-10-06 21:25:32 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.mcu1_gpio12
|
|
|
|
to: 'off'
|
2018-10-06 21:57:58 +00:00
|
|
|
for:
|
|
|
|
seconds: 15
|
2018-10-06 21:25:32 +00:00
|
|
|
- platform: state
|
2018-12-04 15:34:41 +00:00
|
|
|
entity_id: binary_sensor.kitchen_door
|
2018-10-06 21:25:32 +00:00
|
|
|
to: 'off'
|
2018-10-06 21:57:58 +00:00
|
|
|
for:
|
|
|
|
seconds: 15
|
2018-10-06 21:25:32 +00:00
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.mcu1_gpio12
|
2018-10-06 21:47:54 +00:00
|
|
|
state: 'off'
|
|
|
|
- condition: state
|
2018-12-04 15:34:41 +00:00
|
|
|
entity_id: binary_sensor.kitchen_door
|
2018-10-06 21:47:54 +00:00
|
|
|
state: 'off'
|
2018-10-06 21:57:58 +00:00
|
|
|
- condition: state
|
|
|
|
entity_id: light.garage_hallway
|
|
|
|
state: 'on'
|
2018-10-06 21:25:32 +00:00
|
|
|
|
|
|
|
action:
|
2020-08-09 18:39:16 +00:00
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.garage_hallway
|
|
|
|
|
|
|
|
- delay:
|
|
|
|
minutes: 30
|
|
|
|
|
|
|
|
- service: script.garage_lights_off # C by GE Lights (https://amzn.to/30w3UWy)
|
2018-10-06 21:25:32 +00:00
|
|
|
|
|
|
|
##############################################################
|
|
|
|
- alias: Shutdown Helper light
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 124f95f6-78ca-4c22-9348-1f3a1da2d803
|
2020-08-09 18:39:16 +00:00
|
|
|
|
2018-10-06 21:25:32 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: light.k4
|
|
|
|
to: 'on'
|
|
|
|
for: '00:20:00'
|
|
|
|
- platform: state
|
2018-12-04 15:34:41 +00:00
|
|
|
entity_id: binary_sensor.hallway_pantry
|
2018-10-06 21:25:32 +00:00
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
2018-12-04 15:34:41 +00:00
|
|
|
entity_id: binary_sensor.hallway_linen
|
2018-10-06 21:25:32 +00:00
|
|
|
to: 'off'
|
|
|
|
|
|
|
|
condition:
|
|
|
|
condition: state
|
|
|
|
entity_id: light.k1
|
|
|
|
state: 'off'
|
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.k4
|