Core: Multiple Synology NAS devices not supported?

Created on 2 Mar 2019  路  6Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
0.88.2

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):
HASS.IO

Component/platform:
Synologydsm sensor
https://www.home-assistant.io/components/sensor.synologydsm/

Description of problem:
When add more than one Synology NAS device only the first one is shown (I have states I can use). For other devices I wont see the the expected states...

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

sensor DS02:
  platform: synologydsm
  host: 192.168.2.xx1
  port: 5000
  username: !secret nas_username
  password: !secret nas_password
  monitored_conditions:
    - cpu_total_load
    - memory_real_usage
    - network_up
    - network_down
    - disk_smart_status
    - disk_temp
    - volume_status
    - volume_percentage_used

sensor DS01:
  platform: synologydsm
  host: 192.168.2.xx2
  port: 5000
  username: !secret nas_username
  password: !secret nas_password
  monitored_conditions:
    - cpu_total_load
    - memory_real_usage
    - network_up
    - network_down
    - disk_smart_status
    - disk_temp
    - volume_status
    - volume_percentage_used

Traceback (if applicable):


Additional information:

synologydsm

All 6 comments

I've got two Synology NAS stations added successfully. Here's my config:
Bare in mind that the "name"-field will be unsupported in the next version. I haven't got a clue what will happen then. Think it's up to the maintainer of the component to adjust it.

The entry in the configuration.yaml file

sensor: !include sensors.yaml

the contents of my sensor.yaml file

- platform: synologydsm
  name: NAS1
  host: !secret synologydsm_host
  username: !secret synologydsm_username
  password: !secret synologydsm_password
  monitored_conditions:
      - cpu_total_load
      - memory_real_usage
      - network_up
      - network_down
      - volume_status
      - volume_percentage_used
      - volume_size_used
      - disk_temp
- platform: synologydsm
  name: NAS2
  host: !secret synologydsm_host2
  username: !secret synologydsm_username
  password: !secret synologydsm_password
  monitored_conditions:
      - cpu_total_load
      - memory_real_usage
      - network_up
      - network_down
      - volume_status
      - volume_percentage_used
      - volume_size_used
      - disk_temp

Thanks rpi3ha! I indeed added the name's for the Synology's and it worked.

Nice, does it still work after upgrading to 0.89.x? Because I got a warning in 0.88.1 that it would be a breaking change/unsupported key in the next version.

Yep, running 0.89.1 without any (visible) issues. Seems the name key is still supported ...

Alas, with 0.90.1 I get [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support. and my sensors have the stock names with _2 appended for the second NAS.

+1 same problem here with 0.93.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moskovskiy82 picture moskovskiy82  路  3Comments

piitaya picture piitaya  路  3Comments

coolriku picture coolriku  路  3Comments

TheZoker picture TheZoker  路  3Comments

arangates picture arangates  路  3Comments