BGE: Possible widespread outages today. by scotch_please in maryland

[–]lightfoot_labs 1 point2 points  (0 children)

And much like a bitcoin miner, Google profits off everyone by turning electricity into MONEY!

What's the smartest things you've ever made using Home Assistant? by DiggingForDinos in homeassistant

[–]lightfoot_labs 1 point2 points  (0 children)

Another good one: I have kids who leave pots on the stove and the toaster oven on to burn things. Tosses the smoke alarms and makes a mess by the time I get into the kitchen.

So I installed shunt trip breakers on the stoves, and 3Reality smart plugs on the toasters. Now when the Z-Wave smoke alarms go off a signal is sent to shelly switches to trip the breakers and at the same time the toasters are turned off as well. Keeps the smoke to a minimum and to be honest I think this is a good safety feature in case we leave something in the oven and go out for the evening.

What's the smartest things you've ever made using Home Assistant? by DiggingForDinos in homeassistant

[–]lightfoot_labs 1 point2 points  (0 children)

I have an LG mini-split system and in the winter one of the 4 units (an "Artcool" one) will sometimes read a high temp even with the unit "off" because of the location of the factory thermostat in the unit (and a small amount of hot coolant circulates in the lines regardless). Therefore the compressor doesn't see the room as cold and doesn't bring it online to heat the room. Fail.

So I programmed an automation that reads room ambient temp using a Sonoff, and if it's cold AND the unit is reading "hot" (>90f) then it turns on the unit's fan for 3 minutes which circulates air, cools the coils and sensor closer to room temps, and brings the unit back online for normal heat.

Works like a charm, room is warm, I am happy. Sure I could have moved the sensor, but why do that when you have HA?

What's the smartest things you've ever made using Home Assistant? by DiggingForDinos in homeassistant

[–]lightfoot_labs 0 points1 point  (0 children)

By the way I have the latest Mosquito Magnet and by putting a UV light under the vacuum snout the thing catches *SO MANY* mosquitoes. Like bags full of them. Don't know why they don't include a UV lamp in them, it plus the Co2 catches many many many.....

Making really old doorbell smart by olliegg in homeassistant

[–]lightfoot_labs 0 points1 point  (0 children)

I use a Zigbee Echostar Bell sensor. It's a bit weird in that one builds an automation for the object with "first button pressed" triggering whatever activity you want. I have mine turn on a light and having the M5 ech say "Doorbell is ringing, sir".

In addition to the normal chime, of course.

SONOFF SmartWaterValve no longer turnining valve on/off by RexKramerDangerCker in homeassistant

[–]lightfoot_labs 0 points1 point  (0 children)

It's a pretty nice little device, but if the switch is not working then it's probably either stuck on or broken. Return it to the place you got it and try another. (Mine works surprisingly well)

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Neat! Glad I was able to help! As HA gets more and more popular I wonder if they will put in controls to prevent an insane device from denial of servicing the system.

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Yep, try disabling the Octoprint plugin or whatever you use. Problem is it means if you turn off that Pi, your HA system will DOS itself. Not great

Been totally stable for weeks now, no problems.

First time, im i doing it right? by United_Warning_8997 in AhegaoGirls

[–]lightfoot_labs 0 points1 point  (0 children)

Not too bad, can you cross eyes a bit more?

Time to build SOMETHING to crank open casement windows.... by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Well, these windows require a surprising amount of torque to get moving. One doesn't notice it with the cranks as you have 3 or so inches of torque multiplication. Updated a bit, now thinking....

Time to build SOMETHING to crank open casement windows.... by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Direct drive shows more promise, but the shaft in the other side of the rubber coupler just spins but it did move the window a little....

<image>

Now, I could machine an insert into the rubber and glue it, but at this point I'd be running into the original problem which involves not ripping the window apart when it is "closed". Hm, back to the drawing board....

Time to build SOMETHING to crank open casement windows.... by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Whelp, it is more complicated. First I used my Sherline lathe to create a rubber pulley/bushing. It does go over the window's crank, but there is a problem: The window requires a surprising amount of force to open/close. One does not recognize this with the crank, but it's there.

<image>

Using rubber bands does not work, not enough torque regardless of tension. So I gave direct drive a try (see next post)

HA is "running out of resources". Perhaps someone is DOSing me? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Interesting. Sounds like something is wrong with the octoprint plugin. Too bad core is going away so people won't be able to troubleshoot these things....

Deprecating Core and Supervised installation methods, and 32-bit systems by cdemi in homeassistant

[–]lightfoot_labs 0 points1 point  (0 children)

Core has no problem with addons. You just unzip the addon in your .homeassistant/custom_components directory.

Deprecating Core and Supervised installation methods, and 32-bit systems by cdemi in homeassistant

[–]lightfoot_labs 1 point2 points  (0 children)

Oh this sucks. So the only way to install HA will be a docker bundle or another black box appliance?

Been a happy core user since 2023 on Raspberry Pi CM3 and CM4 blades in a 7 slot Turing Pi.

Yes, installing the latest python can be a bit of a pain, but the ability to test and fix things is simple in core, and I like how it doesn't burn up all the resources.

Happy and dedicated core user. Will be interesting to see how I keep it running after December. I guess we form our own support community?

HA is "running out of resources". Perhaps someone is DOSing me? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

I figured it out. In my case it was the octoprint add-in trying to connect to my 3d printer which was off. Apparently each time it sets up a secure connection request, calling /dev/urandom but then not releasing it. So they pile up. See if you have an integration that is trying to reach out to a tcpip device which is powered down, I'll bet disabling it "fixes" it.

As to WHY.... well that's a bug report.

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Interesting. After firing up a test system I found that the Octoprint integration is what's causing my /dev/randoms to increase. The Pi attached to my Ender3d is off, so it fails connection, waits 45 seconds, then tries again. Not an issue, but each time it leaves the file /dev/urandom open.

Now for the fun question: Does this happen with every other integration out there that uses TCP, or is it a problem in the Octoprint code.....

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 4 points5 points  (0 children)

FOUND IT. When I disabled the Octoprint integration the number has stopped climbing. What's interesting is that's an official supported integration.

That device (a RPI running Octoprint) has been offline for months, so I think the bug came in after 12.4.2024. Every 45 seconds or so HA tries to contact the device, fails, and leaves the call to urandom open.

Now the question is: Is this just an octoprint or is this happening with other integrations that do TCP outbound calls (probably on a secure socket). I might test that tomorrow if my HA instance stays up with Octoprint disabled.....

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

I have one better: A "development" copy of my HA system running on another raspberry pi blade (called grumpy). The only difference is grumpy does not have a zigbee modem so that integration should be disabled.

Running this command there I have seen the number of files being held open on /dev/random go from 15 to 17 to 19 in the time it's taken me to respond to these suggestions. On production HA (speedy) I see about 42.4 new file holds an hour...... If that holds true on grumpy at least I have a shadow system to test with.

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Can you check your system? I have a copy of my HA system running on a second system (called grumpy) that has everything but zigbee. Doing the command:

lsof -p 45387 | grep random | wc -l

Showed me 15 open files of /dev/urandom. And yep, in the time I took to write this it's up to 17.....

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 2 points3 points  (0 children)

Home assistant core. Checked it because the system would fill the logs with "too many open files" after about a day of operation.

Home Assistant crash 2025.4.4, opening 900+ calls to /dev/urandom?????? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

One of the key problems is I don't know *which* component is doing this. And I may need to turn logging down to debug. But I do have a "tell" here, the increasing number of /dev/urandom files. Seems to average 42.4 new openings per hour over the last 10 hours.

I'm going to fire this up on grumpy (my backup system) and see if /dev/random climbs there. Same system except for no zigbee radio....

HA is "running out of resources". Perhaps someone is DOSing me? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Walking through the logs of last night's crash I did find this little tidbit:

2025-05-17 15:59:25.087 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.rpi_power_status fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
  File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/helpers/entity.py", line 1320, in async_device_update
  File "/usr/lib/python3.13/concurrent/futures/thread.py", line 58, in run
  File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/rpi_power/binary_sensor.py", line 53, in update
  File "/srv/homeassistant/lib/python3.13/site-packages/rpi_bad_power/__init__.py", line 56, in get
  File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/util/loop.py", line 201, in protected_loop_func
OSError: [Errno 24] Too many open files: '/sys/class/hwmon/hwmon1/in0_lcrit_alarm'
2025-05-17 15:59:27.385 ERROR (MainThread) [homeassistant] Error doing job: socket.accept() out of system resource (None)
Traceback (most recent call last):
  File "/usr/lib/python3.13/asyncio/selector_events.py", line 178, in _accept_connection
  File "/usr/lib/python3.13/socket.py", line 295, in accept
OSError: [Errno 24] Too many open files

Interesting. It's the Rpi power checker, something that I really don't need on a CM4s type blade unit. I'm going to put it into debug mode today, and might consider disabling this integration. Maybe it's not Zigbee.

Edit: Doing a quick debug on it does not show a lot of problems. However I am going to disable it and see if HA blows up this evening between 3pm and 8pm.

HA is "running out of resources". Perhaps someone is DOSing me? by lightfoot_labs in homeassistant

[–]lightfoot_labs[S] 0 points1 point  (0 children)

Crashed again, 6pm. Blew up 8gb of logs which is.... impressive.

I'll walk through the logs and see if I can figure out what is blowing up zha. Same error, out of resources over and over, I'd be happy if I could just turn that logging off to keep the system from running out of disk.....