First smart lights :)

This commit is contained in:
2026-04-16 19:23:59 +02:00
parent 645190c1be
commit 8910749eb8
15 changed files with 1374 additions and 20 deletions

View File

@@ -1,3 +1,41 @@
hello_world:
module: hello
class: HelloWorld
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
entity: light.corridor
smart_conditions:
trigger_conditions: sensor.corridor_last_motion < 5
blocking_conditions: sensor.corridor_motion_light_level > 10 and not self
light_hallway:
module: smartlight
class: SmartLight
entity: light.hallway
smart_conditions:
trigger_conditions: sensor.hallway_last_motion < 5
blocking_conditions: sensor.hallway_motion_light_level > 10 and not self
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