Is it possible to disable checks to see if a storage is responding? I have a Synology NAS configured as storage for backups, to which I had to add two Start and Stop SMB service tasks to allow it to go to sleep (to save energy) when no copies are being made, but if I check the Home Assistant configuration section, it shows me an error accessing the storage because it cannot access it. Is there a way to disable it? I only need the storage to be active during the copy, it makes no sense in my case for it to constantly check access.
Are you trying to write a Feature Requests - Home Assistant Community?
If so, change the category above and don’t forget to vote for your own.
I don’t know if there’s an option to do this, so, I don’t know if I had to write a Feature Request.
Well, I’ll vote for it, even if you won’t.
I really don’t like the idea of HA waking up my NAS unless it’s actually got something to read or write. Just about every NAS has a “sleep” option for a reason.
I’m not sure that synology has total sleep mode to send whole system to sleep… you can hibernate HDD’s or make whole system to shut down (with WOL as option) though.
Isn’t it the main idea of nas to be available 24/7? Also: hdd’s are best left running 24/7 (especially if they are NAS drives). It’s frequent shut down’s and wake-up’s what kills them.
In my case, this NAS only has a function to backup Home Assistant and Proxmox. I do backups between 1 and 5 AM. For me there’s no reason to consume energy if NAS has nothing to do and Home Assistant is constantly checking avaibility of the NAS configured as Storage.
Hi. IMO there are a few problems still around HA’s handling of NAS (external) storage.
I’m not sure “Disabling NAS storage checking” is the right (or technically valid) way to go. After all, HA needs to know (at least when it wants to use the storage) if the storage is online or not.
And - providing it’s happening “reasonably” often - there’s no real problem with HA checking whether the storage is online or not. What may be an issue is
- The Notification level and frequency when HA sees it as offline, and
- The consequences after the storage is found to be offline. Does it impact a current storage task? Does it re-connect gracefully when online and needed?
What I think is actually needed is a more graceful way to handle the “storage online / offline” processing. Currently it has issues and perhaps unnecessary expectations (always online).
As you note, it really does not matter if the NAS is offline when the system is not needing to use it! External storage does go offline - it just needs handling gracefully, and a reconnect (re-mount) when it comes back online and is needed again.
Exactly. The “always online” expectation is unreasonable. I suppose the term “disable” in the title could be a bit misleading.
Maybe it would be better to say HA should only check for status when it’s ready to do a read or write.
This is what every other system I’ve ever worked on does. My usual work desk is near my primary NAS, and I can hear it spin up whenever a device on my network goes to access it.
If someone does want HA to monitor the status of their NAS in real time, maybe a ping or SNMP would be better than accessing the drive.
I agree with you.
In my case I need HA to check if the NAS is active before the copy, not throughout the day.
The copies so far work correctly but although it saves them to all copy locations, since it checks accessibility, the list of backups only shows those available on the NAS if it is active. That is, in the list of copies, made correctly, HA shows that they have been made to the other locations but not to the location where it cannot access. One thing would be to show it as not accessible, but once it has been made, it should be considered that it exists rather than making it disappear from the list if the source is not accessible.
For this reason it should be configurable when HA checks that the location is accessible. And we should reconsider showing a copy made as not accessible instead of considering that if the source is not accessible, it is not shown in the list.
Right. HA could try to access the share only when it’s needed, either for writing or reading. Not continuously. So, for example, if you’re not looking for a list of backups, HA shouldn’t be accessing the NAS to see whether or not they are there.
Then, when you are looking to display the list of backups, if the NAS is unavailable just flag it as, well, “unavailable.”
This is what every other system I’m familiar with does. HA shouldn’t be designed to assume that another host on the network is available 24x7.
Agreed. I guess that needs someone to raise a Feature Request for a change in HA’s approach to attached Storage and notifications of offline/unavailable only when it matters.
I’ve never done that…