Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
sudo docker run --init --restart on-failure -d --name="home-assistant" -v /home/bnp/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant

Restart

Kodeblok
sudo docker restart "home-assistant"

Upgrade

Kodeblok
sudo docker stop "home-assistant"
sudo docker rm "home-assistant"
sudo docker pull homeassistant/home-assistant:latest
docker run -d --restart on-failure --name="home-assistant" -v /home/bnp/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant

Troubleshooting

if is HA wont start or the container keeps restarting:

...

Kodeblok
docker run -ti "home-assistant"

Rollback

Kodeblok
docker images ls

Remove the newest image (tagged latest)

Kodeblok
docker rmi 66b09e12c04f

List images again

Kodeblok
docker images ls

Start on newest image Id

Kodeblok
docker run -d --restart on-failure --name="home-assistant" -v /home/bnp/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host 93627847dd60


Renaming Devices etc

As stupid as it is, You cant rename via the GUI - this will give:

...