mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Adding button for master bed occupied
This commit is contained in:
@@ -4,7 +4,7 @@ id: automation_master_bedroom_status
|
||||
trigger:
|
||||
- id: master_bed_not_occupied
|
||||
platform: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
to: 'off'
|
||||
for: '00:10:00'
|
||||
|
||||
@@ -19,9 +19,9 @@ trigger:
|
||||
to: 'on'
|
||||
for: '00:00:30'
|
||||
|
||||
- id: master_bed_occupied
|
||||
- id: master_bed_right_occupied
|
||||
platform: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
to: 'on'
|
||||
for: '00:00:05'
|
||||
|
||||
@@ -54,7 +54,7 @@ condition:
|
||||
|
||||
- alias: "No one on master bed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
state: 'off'
|
||||
|
||||
- alias: "Is the room asleep?"
|
||||
@@ -77,12 +77,12 @@ condition:
|
||||
|
||||
- alias: "After 10:00PM and before 4:00AM"
|
||||
condition: time
|
||||
after: '22:00:00'
|
||||
after: '21:00:00'
|
||||
before: '04:00:00'
|
||||
|
||||
- alias: "Someone on master bed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
@@ -105,12 +105,12 @@ action:
|
||||
|
||||
- alias: "It is before 10:00PM and after 4:00AM"
|
||||
condition: time
|
||||
before: '22:00:00'
|
||||
before: '21:00:00'
|
||||
after: '04:00:00'
|
||||
|
||||
- alias: "No one on master bed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
@@ -134,12 +134,12 @@ action:
|
||||
|
||||
- alias: "After 10:00PM and before 4:00AM"
|
||||
condition: time
|
||||
after: '22:00:00'
|
||||
after: '21:00:00'
|
||||
before: '04:00:00'
|
||||
|
||||
- alias: "Someone on master bed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
state: 'on'
|
||||
sequence:
|
||||
- choose:
|
||||
|
||||
Reference in New Issue
Block a user