first sleep switch implementation

This commit is contained in:
2026-04-17 19:41:16 +02:00
parent 30397fe9ef
commit 61c115be37
7 changed files with 492 additions and 65 deletions

View File

@@ -1,21 +0,0 @@
debugger:
module: debugger
class: Debugger
port: 5678
motion_tracker:
module: motiontracker
class: MotionTracker
priority: 5 # this need to be initialized before app using motion tracker
mqtt_device_name: AD Motion Tracker
areas:
corridor:
motion_sensors: binary_sensor.corridor_motion
hallway:
motion_sensors: binary_sensor.hallway_motion
restroom:
motion_sensors: binary_sensor.restroom_motion

View File

@@ -4,23 +4,38 @@ light_corridor:
entity: light.corridor
smart_conditions:
trigger_conditions: sensor.corridor_last_motion < 5
trigger_conditions: sensor.corridor_last_motion < 3
blocking_conditions: sensor.corridor_motion_light_level > 10 and not self
light_brightness_pct:
1: input_boolean.sleeping
#25: sensor.day_interval == 'Nuit'
100: True
light_hallway:
module: smartlight
class: SmartLight
entity: light.hallway
smart_conditions:
trigger_conditions: sensor.hallway_last_motion < 5
trigger_conditions: sensor.hallway_last_motion < 3
blocking_conditions: sensor.hallway_motion_light_level > 10 and not self
light_brightness_pct:
1: input_boolean.sleeping
#25: sensor.day_interval == 'Nuit'
100: True
light_restroom:
module: smartlight
class: SmartLight
entity: light.restroom
smart_conditions:
trigger_conditions: sensor.restroom_last_motion < 5
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self
trigger_conditions: sensor.restroom_last_motion < 3
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self
light_brightness_pct:
1: input_boolean.sleeping
#25: sensor.day_interval == 'Nuit'
100: True