Skip to content

Commit 3ab07e0

Browse files
committed
Update basement presence
Update for repositioned mmWave FP1. Change timer and sequences. Use PIR sensors also.
1 parent 843327d commit 3ab07e0

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

packages/basement.yaml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
timer:
22
basement_lights_off:
33
name: Turn off basement lights
4-
duration: 00:25:00
4+
duration: 00:10:00
55
restore: true
66

77
automation:
8+
- alias: Basement Light on pir entrance
9+
id: basement_light_on_pir_entrance
10+
triggers:
11+
- platform: state
12+
entity_id: binary_sensor.basement_stairs_motion_occupancy
13+
from: "off"
14+
to: "on"
15+
conditions:
16+
- condition: state
17+
entity_id: alarm_control_panel.alarmo
18+
state: "disarmed"
19+
actions:
20+
- wait_for_trigger:
21+
- platform: state
22+
entity_id: binary_sensor.basement_hall_motion_occupancy
23+
to: "on"
24+
timeout:
25+
minutes: 5
26+
continue_on_timeout: false
27+
- service: light.turn_on
28+
entity_id: light.basement_lights
29+
830
- alias: Basement Light Presence Control On
931
id: basement_light_presence_controls_on
1032
mode: restart
@@ -68,10 +90,6 @@ automation:
6890
entity_id: binary_sensor.basement_presence
6991
state: "off"
7092
sequence:
71-
- wait_template: "{{ (states('sensor.michael_s_iphone_ble_estimated_distance') |float(0) > 0.59) or is_state('device_tracker.mike_apple_watch_ble', 'not_home') }}"
72-
timeout:
73-
minutes: 15
74-
continue_on_timeout: true
7593
- service: light.turn_off
7694
entity_id:
7795
- light.basement_lights
@@ -185,17 +203,12 @@ automation:
185203
id: basement_space_heater_control
186204
triggers:
187205
- platform: state
188-
entity_id:
189-
- binary_sensor.basement_presence
190-
to:
191-
- "on"
206+
entity_id: binary_sensor.basement_presence
207+
to: "on"
192208
id: turn_on
193209
- platform: state
194-
entity_id:
195-
- binary_sensor.basement_presence
210+
entity_id: binary_sensor.basement_presence
196211
to: "off"
197-
for:
198-
minutes: 10
199212
id: turn_off
200213
- platform: template
201214
value_template: "{{ 'armed_' in states('alarm_control_panel.alarmo') }}"
@@ -230,7 +243,7 @@ automation:
230243
entity_id: binary_sensor.basement_stairs_motion_occupancy
231244
to: "off"
232245
for:
233-
minutes: 15
246+
minutes: 10
234247
id: turn_off
235248
actions:
236249
- choose:

0 commit comments

Comments
 (0)