Help needed - Stream videos from NAS

Hi there,

My configuration: hassio 0.102 installed on a raspbian. Using docker etc.

I am currently using unsupported cameras. But they send any movement to my NAS instantly. This nas can share via NFS, CIFS, etc

I wish I could stream the latest video files to lovelace.

So, I thought I could:

  1. use Folder Watcher component to get the latest file
  2. record the file name within a sensor (something like sensor.cameraX_videofile)
  3. add it as a stream source within lovelace

The issue is: how can I “watch” the folder containing my camera videos ?
I don’t see how I can NFS or CIFS mount the proper folder within my homeassistant docker instance.

Any idea ?

Thanks a lot!

Answering myself:

  1. /share is mounted with default “rprivate” docker propagation. This prevents the “slave mount” of a NAS from the host within the docker. To fix it, I changed the config.v2.json file, while docker service stopped. Then you need to

mount -o bind /folder /folder

otherwise homeassistant docker won’t boot.

  1. Then it seems the folder_watch plugin can’t trigger events based on nfs mounts:

folder /share/cameras/xiaomi_camera_videos/44237c3d8a68 is not valid or allowed

I think I’m gonna buy other cameras ? …