Installing Home Assistant via Docker
This is the continuation from the previous post Docker Installation. Now we can install Home Assistant via Docker into Raspberry Pi. To start the installation, execute the following command:
docker run --init -d --name="home-assistant" -e "TZ=Australia/Melbourne" -v /home/pi/homeassistant:/config --net=host homeassistant/raspberrypi3-homeassistant:stable
once this is done you can check with the following command
docker container ls -a
You should see your Home Assistant Docker container is running with the container name home-assistant.
Now you can open Home assistant in your browser port 8123 of the Raspberry Pi.
You should create an account and define your username and password.
Once the account is created, Home Assistant will try to detect your location based on your IP address. The timezone will be automatically populated. You can select the correct timezone if it is not correct.
Once this is setup the next screen allows you to add more devices. Home Assistant should have detected a few devices for you to get started. You can add more devices or select Finish to complete the setup.
If all goes well you should see the Home Assistant dashboard as shown below to get you started.
Now that you have completed the Home Assistant installation, you can play around with the interface and add a few IoT devices that you might already have in your home such as Smart light bulb or Smart switch.
One the next post I will continue with the installation of MQTT broker, Mosquitto via Docker. This will allow you to receive and post MQTT messages to your IoT devices that you build yourself. In this case I have a lot of IoT devices build using ESP8266.
not able to conect to the homeassistant
on port 192.xxx.xxx.xx:8123
Error: 192.xxx.xxx.xx has refused the connection
what i can do?
Hi Klaus,
Is your home assistant running?
check with this command
docker container ls -a