I installed HA in docker on Ubuntu 18.04 last November and got it going with my Intesishome heat pump controller using a custom component. I have just pretty much left it running in the background since then, and it has been working mostly fine. Once or twice I have had to restart HA as it had stopped for some reason. Today, I checked the Intesishome support and it was integrated into HA in 0.104, so I thought it was about time I upgraded to the latest version. So I shut down HA (systemctl stop homeassistant) and did the docker upgrade:
docker pull homeassistant/home-assistant:latest
from a root prompt. I saw a lot of docker containers get upgraded, and there were no errors or warnings. So I removed my custom component directory and started HA again (systemctl start homeassistant). I was expecting that the configuration I had for my heat pump would now work with the builtin Intesishome support, but I got errors instead. So I let HA finish starting and then from the GUI Developer Tools page I took a look at the current version number. I was very surprised to see it was still saying 0.101.1.
I have restored my custom component directory and restarted HA and now the heat pump component is working again without any errors.
So does anyone have any idea what I have done wrong with this upgrade? What do I do to get it upgraded to the latest version?
So it looks like systemctl is doing the necessary “docker stop” and “docker rm” commands when it shuts down HA, and then does a “docker run” when it starts HA. Does that look correct?
The problem was my /etc/systemd/system/homeassistant.service file. On the ExecStart line it had:
homeassistant/home-assistant:stable
and I needed to change that to:
homeassistant/home-assistant:latest
Then I restarted HA and it was still 0.101.1, but when I restarted it again, I finally got 0.107.7. So I shut HA down again, removed my intesishome custom component, and started HA again, and finally I have it running with the new internal Intesis support.
Hi fe31nz
I seem to have a similar problem. New to HA (and very little Linux). Recently installed HA in Docker on my Synology NAS. Just tried upgrading it for the first time. Original install used the “:stable” tag but today’s Download used the “:latest” tag and yet HA opens with the old version still. So I suspect the tag is the cause.
? Where is the /etc/systemd/system/homeassistant.service file that you mention?
I cannot see that path from within DSM/File Station (but maybe I need root access to see it?)
? How did you update (edit) it? E.g. Within DSM or via SSH?
? Did that fully fix the problem or was more required?