close
Integrating Home Assistant into your QNAP X86 System NAS
Home Assistant is an open-source home automation platform running on Python 3 and Raspberry Pi. It is very easy and beneficial to combine QNAP X86 System NAS and Home Assistant.
Notes : This tutorial only support on X86 system NAS, If you want to use it on ARM system, You should build docker image yourself, or search Home Assistant for ARM version on docker hub.
Home Assistant can be easily installed on QNAP X86 System NAS by using Container Station app. For more information regarding Container Station, please check https://www.qnap.com/solution/container_station/en/index.php
Follow these steps to install Home Assistant:
- If you have not already installed Container Station on your NAS, you can find it in the NAS App Center.
- Open Container Station and go to "Create Container". Search for " homeassistant/home-assistant" with docker hub, and click " Install ".
- In Version, choose " latest" and click " Next".
- Enter a name for the container (for example: " homeassistant" )
- Click "Advanced Settings". Go to " Environment " and click add twice :
- In " Name ", enter " variable " ; in " Value " enter " tz "
- In " Name ", enter " value " ; in " Value " enter " Europe/London"
Other timezone values can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- Go to "Network" :
- In " Network Mode ", choose " Host "
- Go to "Shared Folders" :
- In " Volume from host ", click " Add " and choose an existing folder or add a new folder (for example: HomeA)
- In " mount point ", enter "/config ". Home Assistant will use this folder for configurations information and logs
- Click " Create " and wait for the NAS to finish creating the container
- After container has been created, open a new web browser window and go to http://<NAS IP>: 8123 " (for example: " http://192.xx.xx.xx : 8123". Your Home Assistant will be displayed.
Remark: to update your Home Assistant on your Docker within Qnap NAS, you just remove container and image and do steps again(Don’t remove “config” folder)
If you want to use a USB Bluetooth adapter or Z-Wave USB Stick with Home Assistant on Qnap Docker, Fallow this step:
Z-wave:
- Connect to your NAS over SSH
- Load cdc-acm kernel module(when nas restart need to run this command)
insmod /usr/local/modules/cdc-acm.ko
- Find USB devices attached. Type command:
ls /dev/tty*
The above command should show you any USB devices plugged into your NAS. If you have more than one, you may get multiple items returned. Like :ttyACM0
- Run Docker command:
docker run --name home-assistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e variable=TZ -e value=Europe/London --device /dev/ttyACM0 homeassistant/home-assistant
-v
is your config path
-e
is set timezone - Edit configuration.yaml
zwave:
usb_path: /dev/ttyACM0
That will tell Home Assistant where to look for our Z-wave radio.
Bluetooth:
- Connect to your NAS over SSH
- Run Docker command:
docker run --name home-assistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e variable=TZ -e value=Europe/London -v /dev/bus/usb:/dev/bus/usb -v /var/run/dbus:/var/run/dbus homeassistant/home-assistant
First-v
is your config path
-e
is set timezone - Edit configuration.yaml
device_tracker:
- platform: bluetooth_tracker
全站熱搜
留言列表