Docker-HomeAssistant
For this example we are going to replicate the previous demo but this time using dockers.
For more documentation:
https://www.home-assistant.io/docs/installation/docker/
Prerequisites:
Docker installed (How to)
Demo
First we need to open a terminal
Then create a folder where you want to storage the application for example.
$ ls
$ mkdir xdkhome
$ cd xdkhome
Then we need to execute:
$ docker run -d \
--name="hass" \
--restart on-failure \
-v /Users/reyes/xdkhome/hass_config:/config \
-e "TZ=America/Chicago"
-p 8123:8123 \
homeassistant/home-assistant
Then lets verify that the folder of configuration was create:
$ cd hass_config/
Lets copy now our configuration.yaml and replace for the yaml of the folder.
$ cp XDK110-Bosch/XDKLive/MQTT/HomeAssistant/Server/configuration.yaml ~/reyes/xdkhome/hass_config/
Finally open a browser and open 127.0.0.1:8123 and restart home assistant to see the new interface
Auto-Execute
$ cd XDKLive/MQTT/DockerHome
$ sh run.sh
Lets copy now our configuration.yaml and replace for the yaml of the folder.
$ cp XDK110-Bosch/XDKLive/MQTT/HomeAssistant/Server/configuration.yaml ~/reyes/xdkhome/hass_config/
Finally open a browser and open 127.0.0.1:8123 and restart home assistant to see the new interface
Last updated
Was this helpful?