home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.72k stars 28.88k forks source link

Synology integration returns error when adding DSM with VLAN network config #107288

Open agios opened 5 months ago

agios commented 5 months ago

The problem

When trying to add a Synology DSM with a multiple VLAN network configuration the following error eccurs:

image

The problem seems to be that when you have a custom network setup on Synolgy, then the SYNO.DSM.Network call returns an empty interfaces list:

{
  "data": {
    "dns": [
      "192.168.98.1"
    ],
    "gateway": "192.168.98.1",
    "hostname": "nvr",
    "interfaces": [],
    "workgroup": "WORKGROUP"
  },
  "success": true
}

What version of Home Assistant Core has the issue?

core-2023.12.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Synology DSM

Link to integration documentation on our website

https://www.home-assistant.io/integrations/synology_dsm

Diagnostics information

home-assistant_synology_dsm_2024-01-05T19-29-13.312Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

moritzvomberg commented 4 months ago

Confirming this behavior...since days trying to add synology rackstation without success...

in syno log i see a successfull login... in HA logs also ... almost... but thats it...

have the same "missing data error" ... at the end the integration dont integrate :-/

same empty interface list in API query...like the thread creator...any hints regarding syno api?

mib1185 commented 3 months ago

unfortunately, this is a bug in the DSM itself. we need the list of interfaces - especial their mac addresses - to identify and ignore already configured nas in HA during automatic discovery (ssdp)

issue-triage-workflows[bot] commented 1 day ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.