mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
nursery to girls room... finally
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
alias: "Nursery Not Occupied"
|
||||
id: automation_nursery_not_occupied
|
||||
alias: "Girls Room Not Occupied"
|
||||
id: automation_girls_room_not_occupied
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
@@ -11,7 +11,7 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.nursery_occupied
|
||||
- binary_sensor.girls_room_occupied
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
|
||||
@@ -31,7 +31,7 @@ condition:
|
||||
- "unavailable"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
|
||||
- condition: or
|
||||
@@ -42,12 +42,12 @@ condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_person_occupancy
|
||||
entity_id: binary_sensor.girls_room_person_occupancy
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_occupied
|
||||
entity_id: binary_sensor.girls_room_occupied
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
@@ -60,7 +60,7 @@ action:
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -69,4 +69,4 @@ action:
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
|
||||
Reference in New Issue
Block a user