2fa has been disabled without making any difference.
The device is located in the local network. I can reach it from the hassio terminal with IP and name (tested with curl).
Error message:
Logger: homeassistant.components.qnap.sensor
Source: components/qnap/sensor.py:194
Integration: qnap (documentation, issues)
First occurred: 11:45:15 (7 occurrences)
Last logged: 11:55:47
Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 69, in _get_url
result = self._execute_get_url(url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 82, in _execute_get_url
self._debuglog("Appending access_token (SID: " + self._sid + ") to url")
TypeError: can only concatenate str (not "NoneType") to str
Error with same config but IP address instead of hostname:
Logger: homeassistant.components.qnap.sensor
Source: components/qnap/sensor.py:194
Integration: qnap (documentation, issues)
First occurred: 12:08:06 (1 occurrences)
Last logged: 12:08:06
Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 69, in _get_url
result = self._execute_get_url(url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 82, in _execute_get_url
self._debuglog("Appending access_token (SID: " + self._sid + ") to url")
TypeError: can only concatenate str (not "NoneType") to str
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.
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.
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?