|
1 | 1 | timer:
|
2 | 2 | basement_lights_off:
|
3 | 3 | name: Turn off basement lights
|
4 |
| - duration: 00:25:00 |
| 4 | + duration: 00:10:00 |
5 | 5 | restore: true
|
6 | 6 |
|
7 | 7 | 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 | + |
8 | 30 | - alias: Basement Light Presence Control On
|
9 | 31 | id: basement_light_presence_controls_on
|
10 | 32 | mode: restart
|
@@ -68,10 +90,6 @@ automation:
|
68 | 90 | entity_id: binary_sensor.basement_presence
|
69 | 91 | state: "off"
|
70 | 92 | 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 |
75 | 93 | - service: light.turn_off
|
76 | 94 | entity_id:
|
77 | 95 | - light.basement_lights
|
@@ -185,17 +203,12 @@ automation:
|
185 | 203 | id: basement_space_heater_control
|
186 | 204 | triggers:
|
187 | 205 | - platform: state
|
188 |
| - entity_id: |
189 |
| - - binary_sensor.basement_presence |
190 |
| - to: |
191 |
| - - "on" |
| 206 | + entity_id: binary_sensor.basement_presence |
| 207 | + to: "on" |
192 | 208 | id: turn_on
|
193 | 209 | - platform: state
|
194 |
| - entity_id: |
195 |
| - - binary_sensor.basement_presence |
| 210 | + entity_id: binary_sensor.basement_presence |
196 | 211 | to: "off"
|
197 |
| - for: |
198 |
| - minutes: 10 |
199 | 212 | id: turn_off
|
200 | 213 | - platform: template
|
201 | 214 | value_template: "{{ 'armed_' in states('alarm_control_panel.alarmo') }}"
|
@@ -230,7 +243,7 @@ automation:
|
230 | 243 | entity_id: binary_sensor.basement_stairs_motion_occupancy
|
231 | 244 | to: "off"
|
232 | 245 | for:
|
233 |
| - minutes: 15 |
| 246 | + minutes: 10 |
234 | 247 | id: turn_off
|
235 | 248 | actions:
|
236 | 249 | - choose:
|
|
0 commit comments