|
3 | 3 | ## Home Assistant runs on my [Raspberry Pi 3](https://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](https://amzn.to/2eAiAP0). |
4 | 4 | ################################### |
5 | 5 |
|
6 | | -############################################################## |
7 | | -- alias: Hallway ZWave Enerwave Door Sensors Open |
8 | | - id: 1dbd1ba4-6718-4510-b5ab-2a6edd540be4 |
9 | | - |
10 | | - trigger: |
11 | | - - platform: state |
12 | | - entity_id: binary_sensor.hallway_pantry |
13 | | - to: 'on' |
14 | | - - platform: state |
15 | | - entity_id: binary_sensor.hallway_linen |
16 | | - to: 'on' |
17 | | - |
18 | | - condition: |
19 | | - condition: or |
20 | | - conditions: |
21 | | - - condition: sun |
22 | | - after: sunset |
23 | | - after_offset: '-03:00:00' |
24 | | - - condition: numeric_state |
25 | | - entity_id: sensor.pirateweather_cloud_coverage |
26 | | - above: 50 |
27 | | - |
28 | | - action: |
29 | | - - service: light.turn_on |
30 | | - entity_id: |
31 | | - - light.kids_hallway |
32 | | - - light.k4 |
33 | | - - delay: 00:20:00 |
34 | | - - service: light.turn_off |
35 | | - entity_id: light.kids_hallway |
36 | | - |
37 | | -############################################################## |
38 | | -- alias: ZWave Enerwave Door Sensors Closed |
39 | | - id: ceaeca80-e6dc-4b18-9d77-02cc4b09d272 |
40 | | - |
41 | | - trigger: |
42 | | - - platform: state |
43 | | - entity_id: binary_sensor.hallway_pantry |
44 | | - to: 'off' |
45 | | - - platform: state |
46 | | - entity_id: binary_sensor.hallway_linen |
47 | | - to: 'off' |
48 | | - |
49 | | - action: |
50 | | - service: light.turn_off |
51 | | - entity_id: light.kids_hallway |
52 | | - |
53 | 6 | ############################################################## |
54 | 7 | - alias: Shutdown Helper light |
55 | 8 | id: e3f4beff-4fa8-42e3-be5a-32b45106ac8a |
|
59 | 12 | entity_id: light.k4 |
60 | 13 | to: 'on' |
61 | 14 | for: '00:20:00' |
62 | | - - platform: state |
63 | | - entity_id: binary_sensor.hallway_pantry |
64 | | - to: 'off' |
65 | | - - platform: state |
66 | | - entity_id: binary_sensor.hallway_linen |
67 | | - to: 'off' |
68 | 15 |
|
69 | 16 | condition: |
70 | 17 | condition: state |
|
0 commit comments