Deluge Integration with Home Assisstant

General support for problems installing or using Deluge
Post Reply
instantdreams
New User
New User
Posts: 7
Joined: Fri Sep 10, 2021 5:11 pm

Deluge Integration with Home Assisstant

Post 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 6087 times
I've tried usernames of deluge, admin, abc, root.

What should I be using?
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge Integration with Home Assisstant

Post 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
instantdreams
New User
New User
Posts: 7
Joined: Fri Sep 10, 2021 5:11 pm

Re: Deluge Integration with Home Assisstant

Post 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!
Thenorr
New User
New User
Posts: 1
Joined: Sun Nov 17, 2024 10:33 am

Re: Deluge Integration with Home Assisstant

Post 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...
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge Integration with Home Assisstant

Post 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.
Post Reply