mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -5,7 +5,7 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
to: 'off'
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
entity_id:
|
||||
@@ -14,22 +14,22 @@ trigger:
|
||||
- binary_sensor.garage_door
|
||||
- binary_sensor.outer_garage_door_contact
|
||||
- binary_sensor.inner_garage_door_contact
|
||||
to: 'off'
|
||||
for: '00:10:00'
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garage_naturally_lit
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.garage_overhead
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
- condition: state
|
||||
entity_id:
|
||||
@@ -38,9 +38,9 @@ condition:
|
||||
# - binary_sensor.outer_garage_door
|
||||
#- binary_sensor.garage_door
|
||||
- input_boolean.garage_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
- action: light.turn_off
|
||||
data:
|
||||
entity_id: light.garage_overhead
|
||||
entity_id: light.garage_overhead
|
||||
|
||||
@@ -72,7 +72,6 @@ condition:
|
||||
- alias: Check if the light should turn on when the home is occupied
|
||||
condition: and
|
||||
conditions:
|
||||
|
||||
- alias: "Home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
@@ -81,7 +80,6 @@ condition:
|
||||
- alias: "Check if light should turn on"
|
||||
condition: or
|
||||
conditions:
|
||||
|
||||
- alias: "Guest mode is on"
|
||||
condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
@@ -90,15 +88,13 @@ condition:
|
||||
- alias: "Motion in dark garage, or workshop regardless of light level"
|
||||
condition: or
|
||||
conditions:
|
||||
|
||||
- alias: "Motion or occupancy were detected in a dim room"
|
||||
condition: and
|
||||
conditions:
|
||||
|
||||
- alias: "Room not naturally lit"
|
||||
condition: state
|
||||
entity_id: binary_sensor.garage_naturally_lit
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
- alias: "Motion, occupancy, or door opening were detected"
|
||||
condition: or
|
||||
@@ -129,8 +125,8 @@ condition:
|
||||
|
||||
action:
|
||||
- alias: "Make sure Z-Wave switch is turned on"
|
||||
service: homeassistant.turn_on
|
||||
action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: switch.garage_switch
|
||||
|
||||
- delay: 1
|
||||
- delay: 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
alias: 'Garage Not Occupied'
|
||||
alias: "Garage Not Occupied"
|
||||
id: automation_garage_not_occupied
|
||||
mode: restart
|
||||
|
||||
@@ -8,66 +8,65 @@ trigger:
|
||||
- binary_sensor.garage_occupied
|
||||
- binary_sensor.walkway_person_occupancy
|
||||
- binary_sensor.workshop_person_occupancy
|
||||
to: 'off'
|
||||
for: '00:05:00'
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
|
||||
condition:
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.lights_off_manually
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
state: 'off'
|
||||
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'
|
||||
- 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:
|
||||
- action: 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:
|
||||
- action: 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
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.garage_occupied
|
||||
|
||||
- delay:
|
||||
minutes: 5
|
||||
@@ -75,4 +74,4 @@ action:
|
||||
until:
|
||||
- condition: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
alias: 'Garage Occupied'
|
||||
alias: "Garage Occupied"
|
||||
id: automation_garage_occupied
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
to: 'on'
|
||||
to: "on"
|
||||
condition:
|
||||
# Computer area was not already occupied
|
||||
- condition: state
|
||||
entity_id: input_boolean.garage_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.garage_occupied
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
alias: 'Garage open nobody home'
|
||||
alias: "Garage open nobody home"
|
||||
id: automation_garage_open_nobody_home
|
||||
initial_state: 'on'
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garage_open_nobody_home
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: cover.garage_door
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: cover.garage_door
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The garage is open, but nobody is home
|
||||
message: The garage is open, but nobody is home
|
||||
|
||||
Reference in New Issue
Block a user