home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.45k stars 30.69k forks source link

Can't connect to synology Surveillance Station #4054

Closed raccettura closed 7 years ago

raccettura commented 8 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.31.1

Python release (python3 --version): 3.5.2

Component/platform: camera.synology

Description of problem: Running SS 7.2. Getting an error on load due to inability to connect to the synology platform.

Expected: Successful connection

Problem-relevant configuration.yaml entries and steps to reproduce:

  - platform: synology
    url: https://nas.mydomain.com:5001
    username: homeassistant
    password: password123
    verify_ssl: False # doesn't seem to work despite docs
    valid_cert: false # real config

Traceback (if applicable):

The following errors have been logged this session:
16-10-26 01:48:21 homeassistant.components.camera: Error while setting up platform synology Traceback (most recent call last): File "/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform entity_platform.add_entities, discovery_info File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/camera/synology.py", line 81, in setup_platform config.get(CONF_VALID_CERT)) File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/camera/synology.py", line 125, in get_session_id return auth_resp['data']['sid'] KeyError: 'data' 
16-10-26 01:48:33 homeassistant.components.sensor.template: UndefinedError: 'None' has no attribute 'state' 
16-10-26 01:48:33 homeassistant.components.sensor.template: UndefinedError: 'None' has no attribute 'attributes' 
16-10-26 01:48:33 homeassistant.components.sensor.template: UndefinedError: 'None' has no attribute 'attributes'

Additional info:

kellerza commented 8 years ago

Are you connecting to the correct address? I would expect nas.mydomain.com resolves to the public IP and hass is on your local network. 5001 is also the port for Diskstation manager and not Surveillance Station.

If this is not the case, can you see if you can make the log line wrap please..cant seem to read the complete line

raccettura commented 8 years ago

Yup, it's copy paste workable in my browser. I have DNS setup to point to my local IP. I also tried using the IP itself.

pvizeli commented 8 years ago

line 125, in get_session_id return auth_resp['data']['sid'] KeyError: 'data'

I think that is a auth Trouble. Possible a to old synology station?

raccettura commented 8 years ago

It's a DS412+ and running latest OS and SS (non beta).

pvizeli commented 8 years ago

I rewrite this platform. that could fix that

CoalaJoe commented 7 years ago

@pvizeli How is tha status on that?

balloobbot commented 7 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

CoalaJoe commented 7 years ago

Works for me.

balloobbot commented 7 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

balloobbot commented 7 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍