Qnap sensor multiple NAS

How can I configure multiple NAS using this sensor?

I tried:

  - platform: qnap
    host: !secret qnap1_host
    username: !secret qnap1_username
    password: !secret qnap1_password
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used

  - platform: qnap
    host: !secret qnap2_host
    username: !secret qnap2_username
    password: !secret qnap2_password
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used

and also

  - platform: qnap
    host: !secret qnap1_host
    username: !secret qnap1_username
    password: !secret qnap1_password
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used
  
    host: !secret qnap2_host
    username: !secret qnap2_username
    password: !secret qnap2_password
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used

Even this, but this doesn’t work…

  - platform: qnap
    Sensors:
      nas1:
        friendly_name: Qnap1
        host: !secret qnap1_host
        username: !secret qnap1_username
        password: !secret qnap1_password
        monitored_conditions:
          - status
          - cpu_usage
          - memory_percent_used
          - volume_percentage_used

      nas2:
        friendly_name: Qnap2
        host: !secret qnap2_host
        username: !secret qnap2_username
        password: !secret qnap2_password
        monitored_conditions:
          - status
          - cpu_usage
          - memory_percent_used
          - volume_percentage_used

The first two blocks only show the last NAS (The third one doesn’t work at al) … and I have 3 of them :frowning:

Thanks,

J

@colinodell @scop @balloob @fabaff @OttoWinter a little help please?

Thank you!

i dont think you will make any friends by placing a question in a place where it doesnt belong (this section is about Dashboard and your question not) and then calling out to devs that are not dedicated to it.

thats about the same as standing around in the playground, and crying out loud for the headmaster when you want to create a sandcastle and dont succeed.

think about when you ask for help and how, or you get the opposite from what you want.

1 Like

My guess was that these guys should know the answer and I don’t know any other way to contact them. According to this link they are the contributors for this sensor.
https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/sensor/qnap.py

I apologize if my comment was rude. I didn’t want to offend anyone.
Sorry guys, I love HomeAssistant so much I was a little bit carried away. I already created 16 dashboards in two weeks.

i understand you love dashboards, but this question has nothing to do with HADashboard.
its about a sensor.
so the place to ask your question is in the configuration section.
and then the best thing to do is just have some patience to see who comes up with an answer.
if you ask the question on the right place, then in most cases there are people there that can help you and then you dont need to call out for people.

but this question has nothing to do with HADashboard.
its about a sensor.

I see what you mean now. I moved the question to Configuration.

Thanks

1 Like

No idea what happened but today I could see both NAS sensors.
I still had the first config in configuration.yaml
So it works after all.
Thanks.