Add sleep sensor configurations and update conditions for light controls
This commit is contained in:
21
apps/global/sleep.yaml
Normal file
21
apps/global/sleep.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
sleep_sensors:
|
||||
module: virtualsensors
|
||||
class: VirtualSensorsApp
|
||||
priority: 5 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first
|
||||
|
||||
sensors:
|
||||
binary_sensor.is_bedroom_sleeping: input_boolean.bedroom_sleeping
|
||||
binary_sensor.is_living_room_sleeping: input_boolean.living_room_sleeping
|
||||
binary_sensor.is_desk_sleeping: input_boolean.desk_sleeping
|
||||
binary_sensor.is_guestroom_sleeping: input_boolean.guestroom_sleeping
|
||||
|
||||
binary_sensor.is_everybody_sleeping:
|
||||
- binary_sensor.is_bedroom_sleeping
|
||||
#- binary_sensor.is_living_room_sleeping and ...
|
||||
#- binary_sensor.is_desk_sleeping and ...
|
||||
#- binary_sensor.is_guestroom_sleeping and ...
|
||||
binary_sensor.is_anybody_sleeping:
|
||||
- binary_sensor.is_bedroom_sleeping
|
||||
- binary_sensor.is_living_room_sleeping
|
||||
- binary_sensor.is_desk_sleeping
|
||||
- binary_sensor.is_guestroom_sleeping
|
||||
Reference in New Issue
Block a user