mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
alias: 'Garage Not Occupied'
|
||||
id: automation_garage_not_occupied
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.garage_occupied
|
||||
- binary_sensor.walkway_person_occupancy
|
||||
- binary_sensor.workshop_person_occupancy
|
||||
to: 'off'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.lights_off_manually
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
state: 'off'
|
||||
for: '00:01:00'
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Bachelor'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_asleep
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.garage_occupied
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
state: 'off'
|
||||
for: '00:05:00'
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Auto'
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Dad'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.garage_occupied
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_naturally_lit
|
||||
state: 'on'
|
||||
for: '00:00:10'
|
||||
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.garage_occupied
|
||||
|
||||
- delay:
|
||||
minutes: 5
|
||||
|
||||
until:
|
||||
- condition: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
state: 'off'
|
||||
Reference in New Issue
Block a user