diff --git a/homeassistant/components/camera/synology.py b/homeassistant/components/camera/synology.py index 8bbb3e8c632ca6..7749c078043b2c 100644 --- a/homeassistant/components/camera/synology.py +++ b/homeassistant/components/camera/synology.py @@ -20,7 +20,7 @@ async_get_clientsession) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['py-synology==0.2.0'] +REQUIREMENTS = ['py-synology==0.3.0'] _LOGGER = logging.getLogger(__name__) @@ -130,3 +130,11 @@ def enable_motion_detection(self): def disable_motion_detection(self): """Disable motion detection in camera.""" self._surveillance.disable_motion_detection(self._camera_id) + + def enable_home_mode(self): + """Enable home mode.""" + self._surveillance.set_home_mode(True) + + def disable_home_mode(self): + """Disable home mode.""" + self._surveillance.set_home_mode(False) diff --git a/requirements_all.txt b/requirements_all.txt index 7483507705472c..bab394b88f106a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -667,7 +667,7 @@ py-cpuinfo==4.0.0 py-melissa-climate==1.0.6 # homeassistant.components.camera.synology -py-synology==0.2.0 +py-synology==0.3.0 # homeassistant.components.hdmi_cec pyCEC==0.4.13