Please could someone let me know if their qnap sensor is working ?
I’ve tried to set it, in multiple ways, (current way is below)
platform: qnap
host: 192.168.2.35
username: myadminusername
password: my password
monitored_conditions:
status
cpu_usage
memory_percent_used
network_tx
volume_percentage_used
drive_smart_status
drive_temp
… but I continue to see the following error in the logs ?
Platform qnap not ready yet. Retrying in 180 seconds.
9:32 AM helpers/entity_platform.py (WARNING) - message first occured at March 26, 2019, 11:07 PM and shows up 678 times
Failed to fetch QNAP stats from the NAS
9:32 AM components/sensor/qnap.py (ERROR) - message first occured at March 26, 2019, 11:00 PM and shows up 638 times
2019-03-30 10:06:10 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 180 seconds.
2019-03-30 10:09:13 ERROR (SyncWorker_9) [homeassistant.components.sensor.qnap] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/sensor/qnap.py”, line 186, in update
self.data[“system_stats”] = self._api.get_system_stats()
File “/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py”, line 254, in get_system_stats
status = root[“eth_status” + i]
KeyError: ‘eth_status2’
2019-03-30 10:09:13 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 180 seconds.
2019-03-30 10:12:16 ERROR (SyncWorker_5) [homeassistant.components.sensor.qnap] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/sensor/qnap.py”, line 186, in update
self.data[“system_stats”] = self._api.get_system_stats()
File “/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py”, line 254, in get_system_stats
status = root[“eth_status” + i]
KeyError: ‘eth_status2’
Last month I was logging in to my NAS and it just clicked when I looked at the address bar… damn it’s not the default 8080 port… SMH… plugged in corrected and BAM!.. sometimes it’s staring at you.
2020-08-23 17:57:22 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 180 seconds.
2020-08-23 18:03:34 ERROR (SyncWorker_8) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1332, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 264, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
I wondered if it might be because I had 2FA for the qnap - but I have turned this off, and it makes no difference. I also tried putting the wrong password in the config - this shows up as invalid login attempts in the qnap log.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 184, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 136, in setup_platform
for nic in config.get(CONF_NICS, api.data["system_stats"]["nics"]):
TypeError: 'NoneType' object is not subscriptable