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