I had Deluge sensors working fine a while back (coming up on a year now), and then decided to reformat my computer, but forgot to back up my Deluge settings.
I reinstalled Deluge (in Windows) based on the official documentation, set up thin client mode and the daemon, forwarded ports 8112 and 58846, and set up deluged and deluge-web services with NSSM.
I’ve added the following to my sensors.yaml:
- platform: deluge
host: 192.168.1.240
port: 58846
username: "deluge"
password: "deluge"
monitored_variables:
- 'current_status'
- 'download_speed'
- 'upload_speed'
I’ve temporarily added the user/pass “deluge” to my auth
file for testing purposes and double-checked that “allow remote connections” was set to true
in the config file.
I can connect to the web client on 8112 without issues from within and outside of my local network, and the thin client says that the daemon is started on 58846 and I connect via the Windows GUI just fine, but Home Assistant just doesn’t seem to see it for some reason… I just end up with errors like this:
Logger: homeassistant.components.sensor
Source: components/deluge/sensor.py:60
Integration: Sensor (documentation, issues)
First occurred: 23:21:18 (1 occurrences)
Last logged: 23:21:18
Error while setting up deluge platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/deluge/sensor.py", line 60, in setup_platform
deluge_api.connect()
File "/usr/local/lib/python3.8/site-packages/deluge_client/client.py", line 78, in connect
self._connect()
File "/usr/local/lib/python3.8/site-packages/deluge_client/client.py", line 92, in _connect
self._socket.connect((self.host, self.port))
File "/usr/local/lib/python3.8/ssl.py", line 1342, in connect
self._real_connect(addr, False)
File "/usr/local/lib/python3.8/ssl.py", line 1329, in _real_connect
super().connect(addr)
socket.timeout: timed out
I know other people have had similar issues, and I believe I had a similar issue when I was originally trying to get this working, but I eventually figured it out. Since reformatting my computer it’s been almost a year and I still can’t seem to figure this out, and all of the other posts on the subject remain unresolved, so I’m hoping someone in here might be able to help out!
Thanks in advance