Hello, Im Trying to add my deluge download to the config. But Im getting an error message that it can’t connect to the host.
Here’s my setup:
- platform: deluge
name: Home
host: !secret deluge_host
urlbase: /deluge
username: !secret delugeusername
password: !secret delugepassword
monitored_variables:
- 'current_status'
- 'download_speed'
- 'upload_speed
Here’s the Log:
2018-02-05 13:39:55 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform deluge
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, 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/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/deluge.py", line 58, in setup_platform
deluge_api.connect()
File "/srv/homeassistant/lib/python3.5/site-packages/deluge_client/client.py", line 50, in connect
self._socket.connect((self.host, self.port))
File "/usr/lib/python3.5/ssl.py", line 1027, in connect
self._real_connect(addr, False)
File "/usr/lib/python3.5/ssl.py", line 1014, in _real_connect
socket.connect(self, addr)
socket.gaierror: [Errno -2] Name or service not known
For the host name I’ve tried both the direct IP address 192.168.1.102 and the remote access URL https://(myhost).duckdns.org/deluge
I wasn’t sure if the urlbase line was needed, but It was required to setup my sonarr config, so I included it with the deluge config. I did try it without the “urlbase” and I get the same error.