Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Home Mode in Synology Surveillance Station #20124

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion homeassistant/components/camera/synology.py
Expand Up @@ -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__)

Expand Down Expand Up @@ -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):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this used?

"""Enable home mode."""
self._surveillance.set_home_mode(True)

def disable_home_mode(self):
"""Disable home mode."""
self._surveillance.set_home_mode(False)
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -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
Expand Down