Homeassistant --openwrt docker installation

openwrt homeassistant installation tutorial

Prerequisite: Burn a large openwrt system on the N1 box (you can install 81+o or 82+o)

1. Enter the openwrt system, usually 192.168.1.1 and open the network configuration.

     Click on the network, click on the interface and then modify it so that the network belongs to the bypass network and can be connected to the Internet. The main thing is to fill in the correct information. 

2. Click docker. This seems to be only available in versions after 1980s.

1. Click Configure 
2. Modify the default bridge address (it is recommended to modify the router address) 

3. Open the TTYD in the soft routing system and enter the account root. The default password is password. It is recommended to use special ssh software because up will be used later and FinalShell is used. 

1. Then enter the code below in the ssh software and press Enter

#Pull the latest version of hass image (note: choose the corresponding version according to your own needs, the newer is not always better)

docker pull homeassistant/home-assistant:latest 

2. After waiting for the code to run, enter the soft routing system to view the image. If this image appears, it means success.

3. Click on the container to add the command line and enter the content below. The mount point is the system mount point and then find xxx/xxx/docker. 

docker run -d --name="hass" -v your mount point/hassistant:/config -p 8123:8123 -p homeassistant/home-assistant:latest 

For example, my device: docker run -d --name="hass" -v /mnt/sda4/docker/hassistant:/config -p 8123:8123 -p homeassistant/home-assistant:latest

20230820 update--docker serial port

docker run -d --name="hass" -v /mnt/sda4/docker/hassistant:/config --device /dev/ttyUSB0:/dev/ttyUSB0 --network=host -p 8123:8123 -p homeassistant/home-assistant:latest

4. Just click submit. Select ha for docker and hosh for network.

5. Normal operating status

 4. Just start the container and then enter your soft routing IP address +8123 to log in to the homeassistant backend.

Guess you like

Origin blog.csdn.net/yyandad/article/details/130923953