|
@@ -301,7 +301,7 @@ class motion_sensor_light(common_base):
|
301
|
301
|
break
|
302
|
302
|
self.set(self.KEY_MOTION_SENSOR % sensor_index, data)
|
303
|
303
|
# auto light on with state sunset -> time_offset_sunrise=60 (longer sunset) and time_offset_sunset=-60 (longer sunset)
|
304
|
|
- if day_state(None, None, 60, -60).get_state() == self.day_status.KEY_SUNSET:
|
|
304
|
+ if day_state(None, None, 60, -60).get_state() == day_state.KEY_SUNSET:
|
305
|
305
|
if data is True:
|
306
|
306
|
logger.info("%s: Motion detected - Switching on main light %s", device.topic, self.sw_device.topic)
|
307
|
307
|
self.sw_method(True)
|