sadly no, if i change any of that to a wrong value i get an error that it’s not correct, for example if the password is incorrect i get:
2023-06-23 09:50:14.498 ERROR (SyncWorker_0) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
right now i do not get anything whatsoever. i also do not see a successful connection on the NAS if any of this is wrong, so i am pretty sure that host, username and password are all correct.
also i don’t know what the network ups tools has to do with this? i do not have that installed.
More important: I am not sure if a firmware update changed this or I did, but there are two things to check for 2FA enforcement:
a. Make sure the enforce 2SV is disabled for the user in question
b. Make sure the 2SV enforcement is disabled for the “everyone” and “administrators” group (under local groups dropdown) (As well as any other groups the user might be a member of)
Thanks for your post. I can confirm all my settings about 2FA were correct.
I was using the default Qnap integration that comes with HA. I just switched to the custom HACS integration and problem solved. I can now see the status on the NAS on HA.
I tried to install my QNAP in HA and always got an “Unknown Error”. Nothing in the logs of the QNAP.
I didn’t setup the user for home assistant without admin privileges for obvious security reasons. That was obviously the issue. However, the admin user can delegate administrative tasks to other users in the control panel. I have activated the “System Monitoring” there for the home assistant user and now everything works.
Maybe that helps someone stumbling across this thread