Noob here. Although I have used HA for some time and am very pleased with its integration, I have recently set up an automation to backup my settings to my QNAP NAS. However, I do not have my NAS on 24/7. It is only active 08:00 - 00.00. Although I have obviously set up the back up window to within those hours, when I log into HA later in the day I get a notification that the QNAP is unavailable, which was true whilst it was off but not at this time of checking. I have to restart HA to have the access to the NAS again.
Is there a way to automatically detect that the NAS is available again and automatically connect?
I agree - this HA “mis-behaviour” needs some TLC I suspect and an improvement of the fault handling process. External “Storage offline” is not an unusual situation, so needs graceful handling.
Like @DanGlebitz , I also have my NAS powered down at night time - and HA does not handle this well at present!
Often, in the morning I get the HA UI warning “1 repair Network Storage Device Failed” and behind that the HA Supervisor notification “Warning - Reported by Home Assistant Supervisor. Could not connect to NAS_Backup. Check Host logs for errors from the mount service for more details. Use Reload to try to connect again. If you need to update NAS_Backup, go to [storage]. And ‘Remove’ and ‘Reload’ buttons.”
Neither button option solves the issue or removes the warning pop-up.
Going to the UI’s System / Storage, selecting my ‘NAS_Backups’ storage, re-entering the Username and Password, and then clicking Update seems to reconnect the NAS_Backups location ok, but the “Repair - Network Storage Device Failed” pop-up does not clear. I’ve not yet found how to clear that.
I’ve also noted in the Host Logs that (overnight when the NAS is off) there are multiple, repeated “Reloading Supervisor cifs mount: NAS_Backup…” logs. Understandably HA will retry to mount the storage, but the process / repetitions look overloaded to me.