Home assistant nas

Home assistant nas DEFAULT
  •    
  •    owned this note
  • Published Linked with GitHub

Installing Home Assistant (HA) on QNAP NAS ============ Home Assistant https://home-assistant.io/ As QNAP within QTS now supports Docker (with a neat UI), you can simply install Home Assistant using docker without the need for command-line. For details about the package (including compatability-information, if your NAS is supported), see https://www.qnap.com/solution/container_station/en/index.php The steps would be: - Install “Container Station” package on your Qnap NAS - Launch Container Station and move to “Create”-section - Search image “homeassistant/home-assistant” with docker hub and click on “Install” - Choose "latest" version and click next - Choose a container-name you want (e.g. “homeassistant”) - Click on “Advanced Settings” - Within “Shared Folders” click on "Volume from host" > "Add" and choose either an existing folder or add a new folder. The “mount point” has to be “/config”, so that Home Assistant will use it for the configs and logs. - Within “Network” and select Network Mode to “Host” - To ensure that Home Assistant displays the correct timezone go to the “Environment” tab and click the plus sign then add `variable` = `TZ` & `value` = `Europe/London` choosing [your correct timezone](http://en.wikipedia.org/wiki/List_of_tz_database_time_zones) - Click on “Create” - Wait for some time until your NAS has created the container - Your Home Assistant within Docker should now run and will serve the web interface from port 8123 on your Docker host (this will be your Qnap NAS IP address - for example `http://192.168.1.10:8123`) 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 : `ttyUSB0` - 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 --device /dev/ttyUSB0 -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 ```

Sours: https://hackmd.io/s/Skx0J79QG

How to Install Home Assistant on Your Synology NAS

Home Assistant is a free and open-source home automation software written in Python with a focus on local-control and privacy. It has a very wide range of device support, and, as of May 2020, it features support for over 1600 modular plugins or add-ons with system integrations to different IoT technologies; systems and services are available as “integration components”. Actions, such as switching ON/OFF lights, are triggered by automation, voice commands, mobile apps, or controls on the Home Assistant web-based front-end user-interface. In this step by step guide I will show you how to install Home Assistant on your Synology NAS using Docker. You can also use HOOBS or Homebridge for your smart home devices.

Please Support My work by Making a Donation.

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it homeassistant. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Home Assistant Synology NAS Set up 1

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the images below.

Home Assistant Synology NAS Set up 2

Once you click on User-defined script a new window will open. Follow the instructions below:

  1. General: In the Task field type in Install Home Assistant. Uncheck “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
docker run -d --name=home_assistant \ -p 8123:8123 \ -e TZ=Europe/Bucharest \ -v /volume1/docker/homeassistant:/config \ --restart always \ homeassistant/home-assistant

Note: Before you paste the code above in the Run command area below, change the value for TZ (Select your current Time Zone from this list).

Home Assistant Synology NAS Set up 3

After you click OK on STEP 5a new warning pop up window will open. Click OK.

Home Assistant Synology NAS Set up 4

After you click OK on STEP 6, select your “Install Home Assistant” Task then click the “Run” tab. You will be asked to run Install Home Assistant – click Yes. Follow the instructions in the image below.

Home Assistant Synology NAS Set up 5

Go back to STEP 1 or you will deal with karma 🙂

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:8123 Choose Name, Username, Password and Confirm Password then click CREATE ACCOUNT.

Home Assistant Synology NAS Set up 6

Choose a name for your home then click “DETECT“. Move your location point on the MAP and choose your location then click NEXT.

Home Assistant Synology NAS Set up 7

Choose to share or no anonymized information. Click NEXT. Follow the instructions in the image below.

Home Assistant Synology NAS Set up 8

Click FINISH. Follow the instructions in the image below.

Home Assistant Synology NAS Set up 9

Welcome to your Home Assistant Dashboard!

Home Assistant Synology NAS Set up 10

Note: If you want to run this container over an HTTPS check How to Run Docker Containers Over HTTPS.

Read how to solve 400: Bad Request error.

Note: Add USB Support on DSM 7.
Note: Bridged networking (as it is presented in this tutorial) does not work with homekit. If you want to control home assistant devices with the home app from Apple (homekit integration, not homekit controller), you must use host networking because otherwise the home assistant bridge will not be found by the homekit app. So if you want use the homekit app, delete the current home assistant container via docker, the folder, and redo the tutorial from the beginning. But at STEP 5, add the code below:

docker run -d --name=home_assistant \ -p 8123:8123 \ -e TZ=Europe/Bucharest \ -v /volume1/docker/homeassistant:/config \ --net=host \ --restart always \ homeassistant/home-assistant

Also remember to change the value for TZ (Select your current Time Zone from this list).

Note
: Hass.io Supervisor is a “bridge” between Home Assistant and the operating system. It allows Home Assistant to do things like ‘get hardware information’, and ‘restart hardware’. Home Assistant is, well, a home assistant. It’s what performs automations, displays the UI etc.
Note: Find out how to update Home Assistant container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Free Disk Space on Your NAS if You Run Docker.

This post was updated on Tuesday / October 12th, 2021 at 11:39 PM

Sours: https://mariushosting.com/how-to-install-home-assistant-on-your-synology-nas/
  1. Malibu boats cost
  2. 32 inch tvs with wifi
  3. 2005 gmc yukon
  4. Embroidery fabric walmart
  5. Mathews compound bow

Alternative


Install Home Assistant Operating System

Download the appropriate image

Follow this guide if you already are running a supported virtual machine hypervisor. If you are not familiar with virtual machines we recommend installation Home Assistant OS directly on a Raspberry Pi or an ODROID.

Create the Virtual Machine

Load the appliance image into your virtual machine hypervisor. (Note: You are free to assign as much resources as you wish to the VM, please assign enough based on your add-on needs)

Minimum recommended assignments:

  • 2GB RAM
  • 32GB Storage
  • 2vCPU

All these can be extended if your usage calls for more resources.

Hypervisor specific configuration

Start up your Virtual Machine

  1. Start the Virtual Machine
  2. Observe the boot process of Home Assistant Operating System
  3. Once completed you will be able to reach Home Assistant on homeassistant.local:8123. If you are running an older Windows version or have a stricter network configuration, you might need to access Home Assistant at homeassistant:8123 or (replace X.X.X.X with your ’s IP address).

With the Home Assistant Operating System installed and accessible you can continue with onboarding.

Install Home Assistant Container

Synology NAS

As Synology within DSM now supports Docker (with a neat UI), you can simply install Home Assistant using Docker without the need for command-line. For details about the package (including compatibility-information, if your NAS is supported), see https://www.synology.com/en-us/dsm/packages/Docker

The steps would be:

  • Install “Docker” package on your Synology NAS
  • Launch Docker-app and move to “Registry”-section
  • Find “homeassistant/home-assistant” within registry and click on “Download”. Choose the “stable” tag.
  • Wait for some time until your NAS has pulled the image
  • Move to the “Image”-section of the Docker-app
  • Click on “Launch”
  • Choose a container-name you want (e.g., “homeassistant”)
  • Click on “Advanced Settings”
  • Set “Enable auto-restart” if you like
  • Within “Volume” click on “Add Folder” and choose either an existing folder or add a new folder. The “mount path” has to be “/config”, so that Home Assistant will use it for the configs and logs. It is therefore recommended that the folder you choose should be named “config” or “homeassistant/config” to avoid confusion when referencing it within service calls.
  • Within “Network” select “Use same network as Docker Host”
  • To ensure that Home Assistant displays the correct timezone go to the “Environment” tab and click the plus sign then add = & = choosing your correct timezone
  • Confirm the “Advanced Settings”
  • Click on “Next” and then “Apply”
  • Your Home Assistant within Docker should now run and will serve the web interface from port 8123 on your Docker host (this will be your Synology NAS IP address - for example )

If you are using the built-in firewall, you must also add the port 8123 to allowed list. This can be found in “Control Panel -> Security” and then the Firewall tab. Click “Edit Rules” besides the Firewall Profile dropdown box. Create a new rule and select “Custom” for Ports and add 8123. Edit Source IP if you like or leave it at default “All”. Action should stay at “Allow”.

To use a Z-Wave USB stick for Z-Wave control, the HA Docker container needs extra configuration to access to the USB stick. While there are multiple ways to do this, the least privileged way of granting access can only be performed via the Terminal, at the time of writing. See this page for configuring Terminal access to your Synology NAS:

https://www.synology.com/en-global/knowledgebase/DSM/help/DSM/AdminCenter/system_terminal

Adjust the following Terminal command as follows :

  • Replace points at the folder where you want to store your configuration
  • Replace matches the path for your USB stick (e.g., for most Synology users)
  • Replace “Australia/Melbourne” with your timezone

Run it in Terminal.

Complete the remainder of the Z-Wave configuration by following the instructions here.

Remark: to update your Home Assistant on your Docker within Synology NAS, you just have to do the following:

  • Go to the Docker-app and move to “Registry”-section
  • Find “homeassistant/home-assistant” within registry and click on “Download”. Choose the “stable” tag.
  • Wait until the system-message/-notification comes up, that the download is finished (there is no progress bar)
  • Move to “Container”-section
  • Stop your container if it’s running
  • Right-click on it and select “Action”->“Reset”. You won’t lose any data, as all files are stored in your configuration-directory
  • Start the container again - it will then boot up with the new Home Assistant image

Remark: to restart your Home Assistant within Synology NAS, you just have to do the following:

  • Go to the Docker-app and move to “Container”-section
  • Right-click on it and select “Action”->“Restart”.

If you want to use a USB Bluetooth adapter or Z-Wave USB Stick with Home Assistant on Synology Docker these instructions do not correctly configure the container to access the USB devices. To configure these devices on your Synology Docker Home Assistant you can follow the instructions provided here by Phil Hawthorne.

QNAP NAS

As QNAP within QTS now supports Docker (with a neat UI), you can simply install Home Assistant using Docker without the need for command-line. For details about the package (including compatibility-information, if your NAS is supported), see https://www.qnap.com/solution/container_station/en/index.php

The steps would be:

  • Install “Container Station” package on your Qnap NAS
  • Launch Container Station and move to “Create Container”-section
  • Search image “homeassistant/home-assistant” with Docker Hub and click on “Install” Make attention to CPU architecture of your NAS. For ARM CPU types the correct image is “homeassistant/armhf-homeassistant”
  • Choose “stable” version and click next
  • Choose a container-name you want (e.g., “homeassistant”)
  • Click on “Advanced Settings”
  • Within “Shared Folders” click on “Volume from host” > “Add” and choose either an existing folder or add a new folder. The “mount point has to be , so that Home Assistant will use it for the configuration and logs.
  • Within “Network” and select Network Mode to “Host”
  • To ensure that Home Assistant displays the correct timezone go to the “Environment” tab and click the plus sign then add = & = choosing your correct timezone
  • Click on “Create”
  • Wait for some time until your NAS has created the container
  • Your Home Assistant within Docker should now run and will serve the web interface from port 8123 on your Docker host (this will be your Qnap NAS IP address - for example )

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, follow those steps:

Z-Wave

  • Connect to your NAS over SSH

  • Load cdc-acm kernel module(when NAS restart need to run this command)

  • Find USB devices attached. Type command: 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 :

  • Run Docker command:

    is your configuration path is set timezone

  • Edit

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

Bluetooth

  • Connect to your NAS over SSH

  • Run Docker command:

    First is your configuration path is set timezone

  • Edit the file

Once the Home Assistant Container is running Home Assistant should be accessible using (replace

Restart Home Assistant

If you change the configuration you have to restart the server. To do that you have 3 options.

  1. In your Home Assistant UI go to the Configuration panel -> Server management and click the “Restart” button.
  2. You can go to the Developer Tools -> Services, select the service and click “Call Service”.
  3. Restart it from a terminal.

Docker Compose

As the Docker command becomes more complex, switching to can be preferable and support automatically restarting on failure or system restart. Create a file:

Start it by running:

Exposing Devices

In order to use Z-Wave, Zigbee or other integrations that require access to devices, you need to map the appropriate device into the container. Ensure the user that is running the container has the correct privileges to access the file, then add the device mapping to your container instructions:

Optimizations

The Home Assistant Container is using an alternative memory allocation library jemalloc for better memory management and Python runtime speedup.

As jemalloc can cause issues on certain hardware, it can be disabled by passing the environment variable with any value, for example:

The error message is one known indicator.

Community provided guides

Additional installation guides can be found on our Community Forum.

These Community Guides are provided as-is. Some of these install methods are more limited than the methods above. Some integrations may not work due to limitations of the platform.

Sours: https://www.home-assistant.io/installation/alternative/
Home Assistant Automations with NAS (Synology vs Qnap)

Home Assistant. Install the snap on Synology NAS on an Ubuntu Virtual Machine

It is very easy to install Home Assistant on a Linux distribution (Ubuntu, Debian, CentOS …) on a virtual machine running on a NAS with snapd. Snaps are packages of desktop, cloud, and IoT apps that are easy to install, secure, cross-platform, and dependency-free. Only one command line is needed to install an application which considerably reduces the difficulties when starting with Linux.

 

Hassio, the packaged version of Home Assistant integrating the supervisor is very easy to install with Docker. However, when the version of Docker installed on the NAS is too old or the update is late, it is no longer possible to update Hassio (Home Assistant). If your NAS has enough power (at least 8GB of RAM) and supports virtualization (usually NAS equipped with Intel processor), installing Hassio on a Virtual Machine (VM) is a sustainable alternative.

Note. Much like Docker, Home Assistant does not officially develop or maintain a snap for Linux. These are contributors who offer their snaps on the Snapcraft store.


Which NAS to choose to run a VM

Several consumer models may be suitable for running a Linux virtual machine (Debian, Ubuntu …).

Preferably choose a dual bay model to create a RAID 1 or Btrfs volume (more modern) to secure your data.

Best choice
2021 modelsDS220+DS720 +DS920 +
Older generationsDS218 +DS718 +DS918 +
nas synology DS218 plusnas synology ds718 plusnas synology ds918 plus
Average price of bare NAS **~ 340€~ 455€~ 550€
ProcessorIntel Celeron J3355

Dual [email protected] GHz

Intel Celeron J3455

Quad [email protected] GHz

Intel Celeron J3455

Quad [email protected] GHz

Score CPU Benchmark119321262126
RAM2 GB DDR3L2 GB DDR3L4 GB DDR3L
Max RAM6 GB  (2 GB + 4 GB)

possible 8GB

6 GB (2 GB + 4 GB)

possible 8GB

8 GB (2 x 4 GB )
VM name max. *224
Max storage28 TO

2 x 14 TO

28 TO

2 x 14 TO

56 TO

4 x 14 TO

Transcoding ***H.264 (AVC), H.265 (HEVC), MPEG-2 and VC-1; maximum resolution: 4K (4096 x 2160) @ 30fpsH.264 (AVC), H.265 (HEVC), MPEG-2 and VC-1; maximum resolution: 4K (4096 x 2160) @ 30fpsH.264 (AVC), H.265 (HEVC), MPEG-2 and VC-1; maximum resolution: 4K (4096 x 2160) @ 30fps
USB 2.0x2
USB 3.0x1x3x2
1GbE Ethernetx1x2x2
eSATAx1x1x1
Noise19.3 dB(A)18.4 dB(A)19.8 dB(A)
Conso. normal17,23W20.1 watts28.8 watts
Conso. Standby5.4 watts9.1 watts12.6 watts
Technical sheetReadReadRead

Buy

Buy

Buy

(*) requires at least 4GB of RAM.

(**) The NAS is delivered without hard drive and memory expansion.

(***) Makes it possible to greatly reduce the storage space (and therefore the overall cost of the NAS) for video surveillance

Which version of Linux to choose to install Hassio (Home Assistant)?

All versions of Linux will be able to run Home Assistant. If you are just starting out, your best bet is to stick with a distro with a very large community and regular, stable updates.

Ubuntu is a great choice, but it’s really a matter of taste. If the virtual machine is dedicated to Home Assistant, there is no need to bother with the graphical desktop (Desktop version), the Lite / Server version will do the trick … provided you are not afraid of the Terminal, of course. Don’t worry, everything is explained in the tutorial!

Create Ubuntu 20.04 LTS Virtual Machine on Synology NAS

Go to the official Ubuntu site to grab the ISO image of the distribution of your choice. Preferably choose an LTS (Long Time Service) version which will receive security updates for 10 years.

Then create a virtual machine on the Synology NAS as you are used to. Remember to deselect the ISO file from the Ubuntu distribution at the end of the installation.

Enable SSH port

By default, Ubuntu does not have an SSH server. Whatever version is installed (Desktop or server), it is much more convenient and faster to install SSH. Start by switching to administrator mode, this will prevent you from having to precede each command with a sudo.

Then we update the system and we install the openssh server

install openssh server linux ubuntu

Now, we check that the ssh service is started by running the systemctl status ssh command

All that remains is to change the firewall settings by allowing SSH

You can now connect SSH to Ubuntu from Terminal on macOS or Linux or using Putty with Windows.

Enable snapd on your linux distribution

Snapd is the background service that automatically manages and maintains your snaps. The (snap) package is independent * of the Linux distribution and the platform (ARM, Intel …), that’s what is great about snap. It even works on the Raspberry Pi!

snapd linux centos debian raspberry pi ubutu fedora

(*) On condition that the software version that interests you exists on the desired platform and that the snap developer has successfully integrated the concerned platform.


If you are using  Ubuntu 16.04 LTS (Xenial Xerus)  or later, including  Ubuntu 18.04 LTS (Bionic Beaver)  and  Ubuntu 20.04 LTS (Focal Fossa), you don’t need to do anything. Snap is already installed and ready to go.

For Ubuntu versions between  14.04 LTS (Trusty Tahr)  and  15.10 (Wily Werewolf) , as well as Ubuntu versions that do not include  snap by default, snap can be installed from the Ubuntu Software Center by searching for  snapd .

ubuntu install snapd

Source: snapcraft.io

You can also install snapd from Terminal by running the following two commands

At the end of the installation, log out and log back in or restart your system to ensure that the snap paths are properly updated.

More information here

On Debian 9 (Stretch) and Debian 10 (Buster), snap can be installed directly from the command line:

If the sudo command is not installed (usually because a root password was provided during installation), you can install snap by switching to the root account first:

Log out and log back in, or restart your system to make sure the snap paths are properly updated. After that, install the snapd corecomponent in order to get the latest snapd version.

More information here

Snap can be installed on a Raspberry Pi running the latest Raspberry Pi OS version from the Terminal by executing the commands

You will also need to restart the Raspberry Pi by executing the command (be careful to save your documents before executing the command

After that, install the snapd corecomponent in order to get the latest snapd version.

Note. Some snaps require new snapd features and will show an error like snap “lxd” assumes unsupported features “during install. You can resolve this problem by ensuring that the main snap-in is installed (snap install core) and that ‘this is the latest version (snap refresh core).

To test your system, install the hello-world snap and make sure it is working properly

More information here

In case of installation problem on your Linux distribution, go to this page of the snapcraft documentation.

Install Hassio, Home Assistant, Configurator, HACS snaps

There are (currently) two Home Assistant snaps. You have to install the snaps developed by Joachim Marthinsen Giæver.

I advise you to install the 3 snaps to have a Top configuration.

I suggest that you install the 3 snaps from the Terminal on command line because you will need to enter some parameters during the installation anyway. Note, however, that the 3 Joachim snaps can also be installed from

Click on the magnifying glass and type Home Assistant in the search field to find them.

ubuntu software manager snap home assistant

1 home-assistant-snap the Core of the home assistant home automation server

Upon completion of the installation, Home Assistant starts up as a service. Access to the HTML interface is accessible from a browser at the address IP_UBUNTU: 8123

Once you have created your user account, go to Configuration -> Info to retrieve the path to the Home Assistant configuration.yaml file .

Usually, Home Assistant configuration files and scripts are stored in the /var/snap/home-assistant-snap/101/ folder.

home assistant info path configuration yaml file snap find

2 home-assistant-configurator

The configurator (former File Editor) allows you to modify all configuration files and scripts without leaving the Home Assistant interface

The two snaps are automatically connected to each other. To check it, run

If all went well you should find the following line in the list

snap home assistant hassio ubuntu linux snapd

If this is not the case, we manually connect the snaps by executing the command

Open the configuration.yaml file

and add the following lines by changing IP_HASSIO to the IP address of your Ubuntu virtual machine on the Synology NAS. Notes:

  • Enter the domain name or IP address only. localhost does not work because Home Assistant integrates the HTML page of the configurator as an iframe.
  • If you have enabled HTTPS support on Home Assistant, you can enter https in the url, otherwise the configurator page will not be accessible

Save the modification with Ctrl + X (then Y) then restart Home Assistant

You now have access to all HomeAssistant scripts and YAML files

home assistant configurator snapd ubuntu

3 HACS allows you to install many additional themes and plugins directly from the Home Assistant interface.

The installation of HACS is super simplified using the Joachim snap.

Run this command to install the HACS snap

At the end of the installation, restart the server

Wait for Home Assistant to restart then go to Configuration -> Integration -> + Add integration .

home assistant new integration

Find HACS in the search field and click on the line

home assistant integration hacs

Check to accept all terms of use

hacs accept all condition

You will need a GitHub account (free) to access HACS repositories.

Finish by clicking on submit . If everything is correct, you should get a success message. You can associate HACS with a part but it is not mandatory. Finally click on Finish

hacs installe home assistant

You can now add new plugins and themes.

hacs add repository theme home assistant

Read this article to learn more about HACS

Update Home Assistant

For the moment, there is no snap allowing to add the Supervisor which would allow updating Home Assistant from the HTML interface.

The only thing you can do is install the candidate version like this.

Stop the service

Refresh (update) by adding the –candidate option

Then we restart the server

Some useful commands to manage your snaps

Here are some useful commands

List installed snaps

Stop a snap

All other orders

  • Basic functions: find, info, install, remove, list
  • Advanced: refresh, revert, switch, disable, enable, create-cohort
  • History: changes, tasks, abort, watch
  • Services : services, start, stop, restart, logs
  • Permissions : connections, interface, connect, disconnect
  • Configuration: get, set, unset, wait
  • Aliases : alias, aliases, unalias, prefer
  • User account: login, logout, whoami
  • Snapshots : saved, save, check-snapshot, restore, forget
  • Device : model, reboot, recovery
  • Other: warnings, okay, known, ack, version
  • Development: download, pack, run, try

Updates

2021/01/19 Publication of the tutorial

Thanks for reading

  • Get Started with HC-SR04, measure distance by ultrasound. Arduino code example
  • ESP32, GPIO pins and associated functions. I/O, PWM, RTC, I2C, SPI, ADC, DAC
  • ESP32-CAM pinout and equipments. ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
  • ESP32-CAM. Which model to choose? ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
  • M5Stack Atomic GPS. ESP32 TinyGPS++ tracker, GPX export on SD card, visualization on Google Maps or VSCode

Click to rate this post!

[Total: 0 Average: 0]

More discussion »

Sours: https://diyprojects.io/home-assistant-install-snap-on-synology-nas-ubuntu-virtual-machine/

Assistant nas home

Installation on a Synology NAS

Edit this page on GitHub


There are 2 alternatives, when using Home Assistant on Synology NAS:

  1. using Docker
  2. directly running on DSM

Option 1 is described on the Docker installation page, whereas Option 2 is described below.

The following configuration has been tested on Synology 413j running DSM 6.0-7321 Update 1.

Running these commands will:

Using the Synology webadmin:

  • Install python3 using the Synology Package Center
  • Create homeassistant user and add to the “users” group

SSH onto your synology & login as admin or root

  • Log in with your own administrator account
  • Switch to root using:

Check the path to python3 (assumed to be /volume1/@appstore/py3k/usr/local/bin)

Install PIP (Python’s package management system)

Use PIP to install Homeassistant package

Create homeassistant config directory & switch to it

Hint: alternatively you can also create a “Shared Folder” via Synology WebUI (e.g. via “File Station”) - this has the advantage that the folder is visible via “File Station”.

Create hass-daemon file using the following code (edit the variables in uppercase if necessary)

Create links to python folders to make things easier in the future:

Set the owner and permissions on your config folder

Make the daemon file executable:

Update your firewall (if it is turned on on the Synology device):

  • Go to your Synology control panel
  • Go to security
  • Go to firewall
  • Go to Edit Rules
  • Click Create
  • Select Custom: Destination port “TCP”
  • Type “8123” in port
  • Click on OK
  • Click on OK again

Copy your configuration.yaml file into the config folder That’s it… you’re all set to go

Here are some useful commands:

Sours: https://home-assistant-china.github.io/docs/installation/synology/
Home Assistant How To - workaround for Hassio on Synology

.

You will also like:

.



596 597 598 599 600