QNAP can't setup integration, nothing in the logs

I’m trying to setup the integration with my QNAP.
When I use the correct password I get an immediate “Invalid authentication” at the top of the integration page. But when I use an incorrect password it takes about 5 seconds and then I get the same “Invalid authentication” message, but I also get alerts on my QNAP that my user has and auth failure (two actually, about 4 seconds apart).
I’ve tried to tail -f homeassistant.log and get nothing (except when there is a configuration error) from correct or incorrect password attempts.
I’ve added this to my configuration.yaml but it didn’t make any difference:

logger:
  default: warning
  logs:
    homeassistant.components.qnap.config_flow: debug

Which QTS firmware version on what Qnap model?

As the HA integration page and also the GitHub page for Qnap have pointed it out:

If your QNAP device is running QTS 5, make sure you log into the device’s web interface (with the same account you’ve configured in Home Assistant) and complete any agreements, warnings, wizards, setup, etc. as the QNAP API may block requests until those are completed.

model: TS-233
fw: QTS 5.2.2.2950 Build 20241114 (just updated)

should be working according to the compatibility list.

is working just fine here on a TVS-473e.

Did you take care about the same account you’ve configured in Home Assistant for your TS-233 and have loged-in into the Qnap UI to complete all of the above?

Also make sure the user you connect with through HA is in the admin group of your NAS.

@Tamsy - I just realized that I setup 2FA on this account… I will try to create a new account without 2FA (unless there is a way to get that to work?)

@Tamsy - yeah, that was it… the 2FA … I had totally forgot about it since I had checked the “remember this device” and don’t ask for the 2FA again. I created a new service account on the TS-233 with proper permissions etc and all is good now.

1 Like