splits the lights into a dedicated yaml

This commit is contained in:
2026-04-17 13:45:50 +02:00
parent a317b07c19
commit 30397fe9ef
3 changed files with 23 additions and 22 deletions

21
apps/yaml/apps.yaml Normal file
View File

@@ -0,0 +1,21 @@
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

@@ -1,22 +1,3 @@
debugger:
module: debugger
class: Debugger
port: 5678
motion_tracker:
module: motiontracker
class: MotionTracker
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
light_corridor: light_corridor:
module: smartlight module: smartlight
class: SmartLight class: SmartLight
@@ -43,4 +24,3 @@ light_restroom:
smart_conditions: smart_conditions:
trigger_conditions: sensor.restroom_last_motion < 5 trigger_conditions: sensor.restroom_last_motion < 5
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self blocking_conditions: sensor.restroom_motion_light_level > 10 and not self