@carsten_h wrote:
Hello!
I have a Pi with HassOS and a QNAP NAS. I want to automate the Backup of the NAS completely.
What is working is that I switch on a socket with an external drive.
This is mounted automatically and the QNAP starts the backup. When the backup is done the drives is unmounted automatically by the QNAP.What I need now is to check from Home Assistant if the drive is unmounted from the NAS after it was switched on. I can ssh to the QNAP and make a “ls /share/USBDisk”. If it is mounted, I get the contents and if not I get: “/bin/ls: cannot access /share/USBDisk: No such file or directory”
Is there any possibility to get this information into Home Assistant and let an automation that switches of the socket for the external drive start?
Can someone help me here? Thank you in advance!
Posts: 1
Participants: 1