Commit 3875abd6 authored by Rob Connolly's avatar Rob Connolly
Browse files

Configure shed motion light.

parent e30be480
......@@ -11,6 +11,15 @@ toilet_motion_lights:
other_doors:
- binary_sensor.kitchen_hall_door_contact
shed_motion_light:
module: motion_lights
class: MotionLight
motion_sensor: binary_sensor.motion_sensor_5_1
light: light.shed_lights
timeout: 120
constrain_start_time: sunset
constrain_end_time: sunrise
hall_night_light:
module: door_trigger_light
class: DoorTriggeredLight
......
......@@ -28,7 +28,7 @@ class MotionLight(hass.Hass):
def motion_callback(self, entity, attribute, old, new, kwargs):
"""Motion event callback"""
if self.is_light_times():
self.turn_on(self.light)
self.turn_on(self.light, brightness_pct=100)
self.set_timer()
def timeout_callback(self, kwargs):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment