Synology Surveillance Station IP Camera

running what? :slight_smile:

Sorry ;\ Support for Home Mode in Synology Surveillance Station
Thanks

if you really want it, load it as a custom component

i’m still running py_synology-0.2.0.
do have any clue how can this be updated to 0.3.0 in HASSIO?
Thanks

As a custom component

Thanks! now it’s ok :slight_smile: was missing “init.py”
how can i call now the function to enable and disable home mode?
thanks @pergola.fabio

If I remember correctly, it was an Boolean to set, not sure anymore, check your state page , you will see there a home mode

i just updated to the 8.2.3-5289 version hoping that this would solve my issues adding cameras. but it still not setting up at all.

Error when initializing SurveillanceStation
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/synology/camera.py", line 53, in async_setup_platform
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/synology/surveillance_station.py", line 12, in __init__
    self._api = Api(url, username, password, timeout, verify_ssl)
  File "/usr/local/lib/python3.7/site-packages/synology/api.py", line 59, in __init__
    self._initialize_api_info()
  File "/usr/local/lib/python3.7/site-packages/synology/api.py", line 70, in _initialize_api_info
    payload)
  File "/usr/local/lib/python3.7/site-packages/synology/api.py", line 192, in _get_json_with_retry
    return self._get_json(url, payload)
  File "/usr/local/lib/python3.7/site-packages/synology/api.py", line 198, in _get_json
    response = self._get(url, payload)
  File "/usr/local/lib/python3.7/site-packages/synology/api.py", line 185, in _get
    verify=self._verify_ssl)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 387, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '192.168.1.211/webapi/query.cgi': No schema supplied. Perhaps you meant http://192.168.1.211/webapi/query.cgi?

- platform: synology
  url: 192.168.1.211
  username: !secret synology_usr
  password: !secret synology_pass
  verify_ssl: false

Add the port 5000 or 5001 to your url

- platform: synology
  url: https://192.168.1.211:5001
  username: !secret synology_usr
  password: !secret synology_pass
  verify_ssl: false

edit: 5001 for https, thnx @pergola.fabio

1 Like

For https use 5001

Component is working ok now (status = streaming) but the picture in the frontend is broken. Any ideas ?

broken or slow update?

im connected thanks! now just to figure out how to trigger home and away mode. and snapshot for picure card

Home and away mode is possible in new PR, you can launch it as custom already

im looking at that but have never done that… ive added custom components but idk what this pr stuff is

Then you need to read some stuff, or just wait untill new component update gets merged :wink:

Have a link or what to read?

Depends, maybe start how custom component work…

I thought someone already made the PR that works and i just needed to implement it?