Added motion detection for garage and kitchen
This commit is contained in:
7
apps/rooms/garage.yaml
Normal file
7
apps/rooms/garage.yaml
Normal 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
22
apps/rooms/kitchen.yaml
Normal 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
|
||||
Reference in New Issue
Block a user