Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Home Assistant - Mount NAS Shares

Source

Add this to home-assistant configuration.yaml:

# Mount NAS drives
shell_command:
  mount_nas_music: mkdir -p /media/nas/music;mount -t cifs -o username=alex,password=xxx //192.168.x.x/music /media/nas/music
  mount_nas_movies: mkdir -p /media/nas/movies;mount -t cifs -o username=alex,password=xxx //192.168.x.x/movies /media/nas/movies

Note:

Restart HA

Create Automation: