|
@@ -78,7 +78,7 @@ class room_shelly_motion_sensor(room_shelly):
|
78
|
78
|
cyclic_task.run()
|
79
|
79
|
|
80
|
80
|
def set_motion_detected(self, device, key, data):
|
81
|
|
- if now() < sunrise_time(60) or now() > sunset_time(-60):
|
|
81
|
+ if now() < sunrise_time(60) or now() > sunset_time(-60) or data is False:
|
82
|
82
|
if device == self.motion_sensor_silvercrest_1:
|
83
|
83
|
self.motion_detected_1 = data
|
84
|
84
|
elif device == self.motion_sensor_silvercrest_2:
|