QNAP integration not working

And the user you try to connect with is in the admin group? Is your model in the supported list here?

Shouldn’t the port number be 3493?

1 Like

The default is 8080, it should be the port one uses to access the QNAP web interface.

It’s an admin user.
But the port number might be the issue. My QNAP web interface is running on 443, though.

I’m using a TS-213P with 4.4.3.1439
So, not listed there. But the version should be fine. Maybe that’s the problem then.

443 should be the right port. There is no plain text communication on my device and the SSL port is 443 here.

So, the only remaining obstacle that I can see is the hardware. The 213P is officially not tested. The software should not be the issue, I guess.

Interestingly, I do not see anything in the logs on the QNAP. Not even a failed connect. Weird. I would expect some login to work. That should be independent of the hardware itself.

Found the issue:

The problem was in fact the QNAP configuration.
Home Assistant was dumped into the blacklist because I needed a few tries until I got the configuration right.

So: Control Panel/Security and there was an entry for Home Assistant being blocked. Removed it and it works now.

Thank you for your help! Your questions ultimately pointed me in the right direction.

1 Like

Did you need to disable 2FA to make this work? I checked my blacklist and didnt notice any Home Assistant entries.

Yes. 2fa is not working for me

hello for multiple nas what is the correct configuration?

Just add another configuration block to your configuration.yaml, i.e. like the following:

# QNAP TS-xxx
    - platform: qnap
      host: !secret qnapts_host
      username: !secret qnapts_usr
      password: !secret qnapts_pwd
      monitored_conditions:
        - status
        - cpu_usage
        - system_temp
        - memory_percent_used
        - network_tx
        - volume_percentage_used
        - network_link_status
        - network_rx
        - drive_smart_status
        - drive_temp

# QNAP TVS-xxx
    - platform: qnap
      host: !secret qnaptvs_host
      username: !secret qnaptvs_usr
      password: !secret qnaptvs_pwd
      port: !secret qnaptvs_prt
      monitored_conditions:
        - status
        - cpu_usage
        - system_temp
        - memory_percent_used
        - network_tx
        - volume_percentage_used
        - network_link_status
        - network_rx
        - drive_smart_status
        - drive_temp
1 Like

the sencond nas not work…
not sensor available…

Have you configured the 2nd. NAS correctly to allow access from HA?

Also check compatibility here.

do I have to do some configuration on the nas?

Yup. Check the access control configuration on the NAS.

The QNAP integration was broken for a while (since QTS 4.5.4) and works again since HA 8.6. I eventually got it to work but it only works for me without 2FA. Has anyone managed to get it to work with 2FA? how?

and still not working under QTS 5.0

A question re this setup for QNAP…

I understand the 2FA has broken loads of things on QNAP, but what if a non-admin account is used? For example, if I created an account that was part of the admin group, and used that in the HA configuration file, is that likely to work?

HA core-2021.10.7, supervisor-2021.10.8

… but without 2FA.

For what it’s worth… I created an account for the monitoring and added it to the admins group. Placed all the details into HA and it’s working great. 2FA hasn’t been an issue.

1 Like

did what you suggested and its all back! Not sure why the other user wasn’t working but oh well, its working now, thanks!

1 Like