From 30397fe9ef8159ae57bf9307d63f83db41ad1158 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 17 Apr 2026 13:45:50 +0200 Subject: [PATCH] splits the lights into a dedicated yaml --- apps/ad_toolbox | 2 +- apps/yaml/apps.yaml | 21 +++++++++++++++++++++ apps/{apps.yaml => yaml/lights.yaml} | 22 +--------------------- 3 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 apps/yaml/apps.yaml rename apps/{apps.yaml => yaml/lights.yaml} (64%) diff --git a/apps/ad_toolbox b/apps/ad_toolbox index 923cfd4..da28205 160000 --- a/apps/ad_toolbox +++ b/apps/ad_toolbox @@ -1 +1 @@ -Subproject commit 923cfd415266502ea0af267314be9c9e41ea4af2 +Subproject commit da282058d835ebd00e57f7e27c138918e906de4a diff --git a/apps/yaml/apps.yaml b/apps/yaml/apps.yaml new file mode 100644 index 0000000..df457d3 --- /dev/null +++ b/apps/yaml/apps.yaml @@ -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 + diff --git a/apps/apps.yaml b/apps/yaml/lights.yaml similarity index 64% rename from apps/apps.yaml rename to apps/yaml/lights.yaml index a56299e..9cd0b27 100644 --- a/apps/apps.yaml +++ b/apps/yaml/lights.yaml @@ -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: module: smartlight class: SmartLight @@ -42,5 +23,4 @@ light_restroom: smart_conditions: 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 \ No newline at end of file