Hi,
I’m aware that this is maybe best place to put this topic, admins please put it where is more suitable. Thanks.
Now, the problem. I have Haos on dedicated PC for a long time. HA is updated to last available version, EspHome also. When I try to install firmware on any of device’s I have I got very slow response in installation log, hdd led on case is almost all time on and after a few minutes I notice message “connection lost”. That means that Pc is restarting. I tried to clean all files in EspHome, tried install/update on different devices and result is the same. All this happened yesterday, in the afternoon I have numerous regular installation’s and then suddenly this… I was thinking something is updating in Ha and today will work as supposed to but no… Same thing.
Start by looking at your logs. They should state why a restart was done.
Try setting the default compile process limit to a low value - e.g. 1. This is the maximum number of simultaneous compile processes that ESPHome will run.
It’s found on the configuration tab of ESPHome builder in Settings | Apps. You may need to turn on “Show unused optional configuration options”
The lower the number the longer the compile will take of course.
There is a lot of logs topics. Therefore I have asked here for help. If I know what to do and where to look I wouldn’t ask anything.
Try that, same thing is happening.
Now log stop at
Reading CMake configuration…
and Ha lose connection after a few minutes ![]()
That’s weird. What hardware are you running on?
One solution would to be to move ESPHome to a PC and compile off the HA platform.
The CMake message is from the ESPHome log. That probably won’t show the cause of the restart, you will need core or host logs for that. There is a way to find the old logs - but I can’t find the post. Maybe someone else can chime in…
@zoogara
Like I wrote previous, I have Ha instaled on Pc for a few years. It is not newest piece of technology but it work ok for me since yesterday evening.
Yesterday afternoon I have dozrn of successful instalations on one of my EspHome devices and few hours later it stops working as before.
We cannot tell you exactly why your device is restarting without having logs. Without logs everything is just guesswork. Take a look here if you are unsure about how you view the logs. How to get to your log after restart/restore
Or Settings → System → Logs → show raw logs → scroll up to the time when the restart is done.
I want to know specs of PC. This seem like resource issue.
When HA restart is save old log as log.1 or similar. You should look at end of old log after crash. It may provide hint
@fleskefjes
After a few manual restart of HA, clean all files, restart again, update ESPHome, clean all files, restart, I had my HA running like it was running yesterday. It takes little bit longer to compile but it doesn’t restart on his own and can upload firmware to my devices. But since there is so many times rebooted, don’t know exact time so can’t find that spot in the log.
@tmjpugh
Is there a way to see what CPU is in my PC with HA? I don’t remember it’s name, so must look somwhere. I have 4Gb RAM and 500Gb HDD, gigabit ethernt on board and that’s all I can remember.
CPU not big worry. It was ram i want to know. Also may want to make sure the 500gb is not 90% used or similar as a full disk will cause that.
If it’s functioning maybe not big deal. I don’t remember how many old copy HA keep of log. I’m thinking 3 max but that is guess. Next time it occur you should copy logs off disk so you can check in detail.
It’s even more difficult for us to spot since you are reluctant to supply logs. If you put some effort into this I’m sure you will find the timestamps where you last rebooted.
Without looking at the logs, I’d bet that the problems is with resources on what you say is an old machine running HA. The ESPHome compile process is very resource intensive, and is known to kill underpowered machines.
I strongly support the advice above to use another machine to do the ESPHome compile and update. I’d treat the machine running HA as a dedicated, production machine. Not a place to do testing, compiling or updating. I assume you have a “daily driver” laptop or desktop computer. Load the command-line version of ESPHome on that and do your compiles there. Your HA box will thank you.
HA will use all your ESPHome devices even without the ESPHome Device Builder app (add-on.) You can leave it installed and not automatically started, in case you ever need it. But that’s another load you can take off your production HA device.
@CaptTom
It sounds great! Didn’t know that this is possible. That will ease me and my HA computer a lot. Thanks!
Small update on this topic: have install Esphome on my PC. It works but slower then on my HAOS x86 ![]()
But it will be useful if I will have future problems with Esphome editor in HA.
Great! Just understand that it’s doing the same amount of work on your HA host. Do you really want to risk impacting production processes, or even a crash, just to compile faster?
My approach is to use the “compile” command first, to verify no errors. After that, the “run” command to actually update the device is quick. I find it a lot safer and more practical to separate out the development, testing, compiling and updating from the production system. HA’s job is to receive data from the ESPHome device, not all those other tasks.