QNAP Sensor - Not working?

Hi,

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

Further recurring log entries below…

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’

Does anyone know what might be up ?

did you ever get it to work… I had to reinstall HA now it doesn’t work…real bummer. same probs as you

I had an older QNAP NAS that it works on with QTS 4.2, but it doesn’t work on the newer firmwares using QTS 4.4.1

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.

Hi @jimmyz51501

Where did you customise the port ?
Can you share you configuration?

Hey Chris,
I have a yaml file in my sensor dir folder… config/sensor/QNAP_sensor.yaml
config is as follows

- platform: qnap
  host: !secret 
  port: 8082
  username: !secret 
  password: !secret 
  verify_ssl: false
  monitored_conditions:
    - status
    - cpu_usage
    - cpu_temp
    - system_temp
    - drive_temp
    - memory_percent_used
    - volume_percentage_used

next time you log in to qnap server note the port in the address bar on browser

hope it helps!!

1 Like

I know this topic is a bit old, but I’m having difficulties getting the QNAP sensor to work, if anyone can assist, I’d be most grateful

I have a TS-453A with the latest firmware 4.4.3 build 20200817, and I’m running Hassio in a VM on the Qnap I’m trying to monitor

I have this in configuration.yaml:
sensor:

  • platform: qnap
    host: 192.168.1.20
    port: 8080
    username:
    password:
    verify_ssl: false
    monitored_conditions:
    • status
    • cpu_usage
    • memory_percent_used
    • network_tx
    • volume_percentage_used

I get this in the logs:

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.

Hi,

I’m using the QNAP Sensor for a while but today, after upgrading my QNAP TS-563 to version 4.4.3.1421, the sensor stopped working…

This is my config:

# QNAP
- platform: qnap
  host: !secret qnap_ip
  port: !secret qnap_port
  username: !secret qnap_user
  password: !secret qnap_pass
  monitored_conditions:
    - status
    - system_temp
    - cpu_temp
    - cpu_usage
    - memory_free
    - memory_used
    - memory_percent_used
    - network_link_status
    - network_tx
    - network_rx
    - drive_smart_status
    - drive_temp
    - volume_size_free
    - volume_size_used
    - volume_percentage_used

And this is log output:

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

I know this is an older post, but in case somebody gets here like I did looking for a solution. I had the same issue and the solution was simple.

Make sure the user you connect to the qnap is a member of the ‘administrators’ group.

That’s it, it should work now.

1 Like

Thanks Didier, You just saved me a whole lot of searching … :grinning:

2 Likes