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:


  1. If you have not already installed Container Station on your NAS, you can find it in the NAS App Center.

  2. Open Container Station and go to "Create Container".  Search for " homeassistant/home-assistant" with docker hub, and click " Install ".
    1

  3. In Version, choose  " latest"  and click " Next".
    2

  4. Enter a name for the container (for example: " homeassistant" )
    3

  5. Click "Advanced Settings". Go to " Environment " and click add twice :


  6. Go to "Network" :

    • In " Network Mode  ", choose  " Host "



  7. 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
      3-2



  8.  Click " Create " and wait for the NAS to finish creating the container

  9. 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.
    5


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:


  1. Connect to your NAS over SSH

  2. Load cdc-acm kernel module(when nas restart need to run this command)
    insmod /usr/local/modules/cdc-acm.ko


  3. 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

  4. 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

  5. Edit configuration.yaml
    zwave:
    usb_path: /dev/ttyACM0



That will tell Home Assistant where to look for our Z-wave radio.


Bluetooth:

  1. Connect to your NAS over SSH

  2. 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

  3. Edit configuration.yaml
    device_tracker:
    - platform: bluetooth_tracker


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 tttt 的頭像
    tttt

    觀察筆記

    tttt 發表在 痞客邦 留言(9) 人氣()