Added motion detection for garage and kitchen

This commit is contained in:
2026-04-23 22:57:33 +02:00
parent f8c50c6e63
commit 76b550d3df
3 changed files with 33 additions and 0 deletions

View File

@@ -21,4 +21,8 @@ motion_tracker:
motion_sensors: binary_sensor.hallway_motion motion_sensors: binary_sensor.hallway_motion
restroom: restroom:
motion_sensors: binary_sensor.restroom_motion motion_sensors: binary_sensor.restroom_motion
garage:
motion_sensors: binary_sensor.garage_motion
kitchen:
motion_sensors: binary_sensor.kitchen_motion

7
apps/rooms/garage.yaml Normal file
View File

@@ -0,0 +1,7 @@
light_garage:
module: smartlight
class: SmartLight
entity: switch.garage_01
smart_conditions: sensor.garage_last_motion < 3
blocking_conditions: sensor.garage_motion_light_level > 10 and not self

22
apps/rooms/kitchen.yaml Normal file
View File

@@ -0,0 +1,22 @@
light_kitchen_sink:
module: smartlight
class: SmartLight
entity: light.kitchen_sink
smart_conditions:
- light.kitchen_sink_switch
- sensor.kitchen_last_motion < 3 and (sensor.garage_motion_light_level < 10 or self)
light_brightness_pct:
100: light.kitchen_sink_switch
1: binary_sensor.day_interval_night or input_boolean.sleeping
15: True
light_kitchen_sink_switch:
module: smartswitch
class: SmartSwitch
entity: light.kitchen_sink_switch
off_events:
- turn_off_all_lights