Page 1 of 1

Deluge Integration with Home Assisstant

Posted: Fri Dec 02, 2022 7:09 pm
by instantdreams
I am trying to add the Deluge integration to Home Assistant. Allow remote connections is enabled.

When I fill in the details for the integration and use username deluge I receive the following error:
Home Assistant Deluge Integration Modal
Home Assistant Deluge Integration Modal
Deluge-Integration.PNG (26.05 KiB) Viewed 6090 times
I've tried usernames of deluge, admin, abc, root.

What should I be using?

Re: Deluge Integration with Home Assisstant

Posted: Fri Dec 02, 2022 7:30 pm
by mhertz
I believe it's deluge's core RPC API, not web, for authenticating here, or looks like that atleast, so meaning use or make new user in 'auth' file of deluge profile, usually in '/var/lib/deluge/.config/deluge', '/srv/deluge/.config/deluge' or '~/.config/deluge'.

Thinclient guide: https://dev.deluge-torrent.org/wiki/Use ... ThinClient

Re: Deluge Integration with Home Assisstant

Posted: Fri Dec 02, 2022 8:43 pm
by instantdreams
Thank you for pointing me at that excellent guide!

I checked my auth file and it had a single entry for "localclient". I added a new value:

Code: Select all

echo 'homeassistant:MyC0mpl3xP4ssW0rd:10' >> /srv/deluge/config/auth
I then checked the /srv/deluge/config/deluged.log file:

Code: Select all

13:28:03 [INFO    ][deluge.core.authmanager       :90  ] Auth file changed, reloading it!
13:28:03 [INFO    ][deluge.core.authmanager       :228 ] Opening auth for load: /config/auth
13:28:03 [INFO    ][deluge.core.authmanager       :236 ] Successfully loaded auth: /config/auth
However, using these details:
  • Host: 192.168.1.95
  • Username: homeassistant
  • Password: MyC0mpl3xP4ssW0rd (to be clear, NOT my actual password)
  • Port: 58846
  • Web Port: 8112
Still gives me a "Failed to connect" error message. There's nothing in the Home Assistant logs that seems to help this.

Now that I know how to create and manage thin client users, I will find the creator of the Deluge integration for Home Assistant and check with them. Thanks again!

Re: Deluge Integration with Home Assisstant

Posted: Sun Nov 17, 2024 10:37 am
by Thenorr
@instantdreams did you manage to get this solved? I have the same issue as you.
I've added my credentials and level to the auth-file and rebooted both Deluge and Home Assistant, and still get failed to connect.
I've double and triple checked the ports and the credentials and still can't find the issue...

Re: Deluge Integration with Home Assisstant

Posted: Sun Nov 17, 2024 11:01 am
by mhertz
If edited auth and home-assistant whatever thing correctly, restarted deluged/home-assistant, and having allow_remote true in core.conf and edited the right place for deluged e.g often /var/lib/deluge* something(changes based on version of deb package) or /srv/deluge/.config/deluge for arch-based, then it's not a deluge issue so please take it up with home-assistant devs/maintainers thanks.