Saving to a network drive

I am trying to get an automation to save a camera stream to a network drive, and I have it attempting to save to something like this:

smb://workgroup;user:[email protected]/sharefolder/file.mp4

but it is not working:

Error executing script. Unexpected error for call_service at pos 1: Can't write smb://workgroup;user:[email protected]/sharefolder/file.mp4, no access to path!

Anyone have any idea if this is even possible?

I wouldn’t know why it shouldn’t be possible. The only thing I know is that “workgroup” is optional. And the error states that it can’t access path, which is the part “/sharefolder/”. Is that correct? And does that user have write permission to that folder?

smb://blah… is not a linux thing. You should probably mount the filesystem then write to the mount point.

2 Likes

Got it, thanks. Hopefully HA can mount an network drive

That’s going to depend on your installation method. You will find it very difficult (if not impossible) with Home Assistant OS.