Пример #1
0
 def arm(self, value):
     """Set camera arm status."""
     if value:
         return api.request_motion_detection_enable(self.sync.blink,
                                                    self.network_id,
                                                    self.camera_id)
     return api.request_motion_detection_disable(self.sync.blink,
                                                 self.network_id,
                                                 self.camera_id)
Пример #2
0
 def set_motion_detect(self, enable):
     """Set motion detection."""
     if enable:
         return api.request_motion_detection_enable(self.sync.blink,
                                                    self.network_id,
                                                    self.camera_id)
     return api.request_motion_detection_disable(self.sync.blink,
                                                 self.network_id,
                                                 self.camera_id)
Пример #3
0
 def set_motion_detect(self, enable):
     """Set motion detection."""
     _LOGGER.warning(
         "Method is deprecated as of v0.16.0 and will be removed in a future version. Please use the BlinkCamera.arm property instead."
     )
     if enable:
         return api.request_motion_detection_enable(self.sync.blink,
                                                    self.network_id,
                                                    self.camera_id)
     return api.request_motion_detection_disable(self.sync.blink,
                                                 self.network_id,
                                                 self.camera_id)