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!!