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.86k stars 28.96k forks source link

Synology Security Status shows unsafe with Version: 7.1-42661 Update 1 #72492

Closed barnes-dev closed 2 years ago

barnes-dev commented 2 years ago

The problem

Synology Security Status shows unsafe with Version: 7.1-42661 Update 1 Security Status Attributes Malware safe Network safe SecuritySetting safe SystemCheck safe Update outOfDate UserInfo safe

What version of Home Assistant Core has the issue?

core - 2022.5.5

What was the last working version of Home Assistant Core?

core - 2022.5.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Synology

Link to integration documentation on our website

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

Diagnostics information

config_entry-synology_dsm-c6c97fce4f615f2befed63f36b2f063e.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years 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! (message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

mib1185 commented 2 years ago

Hi @barnes-dev

please enable debug logging, restart HA and provide the homeassistant.log. To do so add the following to your configuration.yaml:

logger:
  default: info
  logs:
    homeassistant.components.synology_dsm: debug
    synology_dsm: debug

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

barnes-dev commented 2 years ago

home-assistant.log

Thanks for looking into this!

PierreLevres commented 2 years ago

Same issue here, the Diskstation update available sensor 'latest_available_version' reports 'null', which apparently should be provides by synology, not the diskstation itself. Installed_version reports 'DSM 7.1-42661 Update 1', on a DS220+ Started may 25th at around 14:00 CEST. Did synology change their API ?

mib1185 commented 2 years ago

@barnes-dev your NAS returns that one item (app) is outOfDate and therefore the system status is also outOfDate line 1748 from your log: 'update': {'category': 'update', 'fail': {'danger': 0, 'info': 0, 'outOfDate': 1, 'risk': 0, 'warning': 0}, 'failSeverity': 'outOfDate', 'progress': 100, 'runningItem': '', 'total': 3, 'waitNum': 0} ... 'sysStatus': 'outOfDate'

mib1185 commented 2 years ago

@PierreLevres your issue seems to be another one, please create an own report for this.

barnes-dev commented 2 years ago

Okay. I had to manually rescan the Security Status on my NAS. Then I had to reload the Synology API in Home Assistant. Not sure that this value is automatically updated any more but instead it requires user interaction on both sides to get a good status? Security Scan should run once a week. and HA should update immediately on change.

Thanks for showing me my issue and getting it cleared

mib1185 commented 2 years ago

Then I had to reload the Synology API in Home Assistant. Not sure that this value is automatically updated any more

it is automatically updated, but keep in mind that the default update interval is 15min 😉