I’m not sure energy is the correct category, but I hope it is.
Since I have my HA yellow installed my home assistant suffers from monthly crashes and it doesn’t come up automatically. For it to come up I have to power cycle.
Now I’m thinking it might be a really short interruption from my power grid. I now noticed that around the last crash at least 2 esphome devices restarted and that doesn’t happen for no reason.
So my new guess is there is a really short power grid failure, long enough to make my HA Yellow crash, but not long enough to make it fully reboot? Is this possible?
Other devices won’t suffer as they may reboot, or hold the power a bit longer.
So at that point I keep my yellow alive,
but how to I track those really short outages?
I have some shelly plug S devices, but they only update every 10 seconds, so that’s not good enough.
I could check if suddenly a lot of devices become unavailable, however that could also mean a wifi issue.
Does anyone have any suggestions, thoughts, or ideas on this?
That might be because of a time out without api connection. The docs states the default timeout is 15min:
reboot_timeout (Optional, Time): The amount of time to wait before rebooting when no client connects to the API. This is needed because sometimes the low level ESP functions report that the ESP is connected to the network, when in fact it is not - only a full reboot fixes it. Can be disabled by setting this to 0s. Defaults to 15min.
So when HA is down for more than 15 minutes (and no other device connects to the esphome api in that time) a esphome node will do a intentional restart
It should’t - even less as the device is powered by DC and a typical PSU will even buffer a tiny bit of power.
Maybe try to track down the cause of failure before to be sure your investment actually can have a positive impact?
There are good and bad PSU’s out there. And some good ones even turn bad over time
As this should be simple 12V PSU with the usual barrel jack you might be good to test with another power supply you own already. A 12V/2A=24W PSU should be good enough for a “normal” use case without peripheral devices on your yellow.
If you install esphome (shelly plug s template) on it you a free to choose your update interval for your devices and are not limited to what the manufactures thinks is good for you
It’s a tricky thing to debug but best catch might be to attach a monitor to your yellow and have it printing the logs (maybe the same can be achieved also over serial?). When your yellow “locks up” you should (in theory) be able to read the last line of the logs which might give you more clue why things go south
that beats the only reason I had for assuming it might be a power grid failure,
true, but I already added some checks, the annoying thing is that HAOS doesn’t write files back real time but with some delay to avoid SSD wear out. So I can’t relay on the logs, and when I check them there is nothing there. I already created push notification for certain issues like undervoltage, but never have I received any of those notifications. So either is doesn’t work or none of the scenarios are the case.
Good idea, the only problem is, I have this issue like once a month only, so when can I tell the issue is resolved? But I will check if I have any 2.0A adapters laying around. 12V I sure have, But still they need to provide enough power.
I know, I’m running tasmota on them right now, I run tasmota on all devices I cannot easy serial flash.
but even then. would it even be possible to measure something that takes 0.1 sec or something.
I have some unused pi zero’s laying around. if I can make is work to have the console log written to a file, something which gives me some struggle. I can see what the last message was before my yellow crashed.
that is a great idea.
Does someone know if it is possible to have a scrolling log, the data you would see on another device when a screen gets attached?
next to that it would be great if one knows how to automatically save it. but first of couse I need the data.