Synology Camera / Surveillance Station ERROR

Tags: #<Tag:0x00007f32859c0090>

I’m trying to config my Synology Surveillance Station cameras to show in Home Assistant, but log shows “Error when initializing SurveillanceStation” and no camera entity is created.
Can someone help me out with this issue, please?

Here’s my config:

  - platform: synology
    url: !secret synology_ip_port
    username: !secret synology_user
    password: !secret synology_pass
    timeout: 15
    verify_ssl: false

Here’s the log output:

Log Details (ERROR)
Logger: homeassistant.components.synology.camera
Source: components/synology/camera.py:56 
Integration: synology (documentation, issues) 
First occurred: 2:35:27 PM (1 occurrences) 
Last logged: 2:35:27 PM

Error when initializing SurveillanceStation
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/synology/camera.py", line 56, in async_setup_platform
    timeout=timeout,
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  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 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 637, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 728, in get_adapter
    raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for '192.168.0.100:3011/webapi/query.cgi'

DSM version is 6.2.2-24922 Update 4
Surveillance Station version is 8.2.7-6222
Home Assistance version is 0.110.1

Thanks!!!

Did you manage to fix this @andrepia ?
One of the problems I see could be wrong URL -

In name you specify that it’s IP with port and actually it has to be full URL (https://xx.xx.xx.xx:5001 for ex). Just to be sure you didn’t configure integration wrong.

Great guess, @BeardedConti!!!
I was missing the “https://”!!!
Thanks!!
Now I have one entity for my Synology camera, but can’t watch it’s streaming… On lovelace, I get a still frame each 10 seconds… :sob: :joy:

Captura de Tela 2020-06-06 às 09.06.07

Captura de Tela 2020-06-06 às 09.05.38

Would you be able to point me in the right direction once again??

(BTW, I’m a YouTube follower and your videos are great!! Congrats!!)

1 Like

Thank you @andrepia very much!!
OK, if you are talking about static image at lovelace, that’s what I got too.
You can change it to live if you change setting for it here:

Just make sure you have enabled stream in your configuration.