Surprised someone mentioned these. I picked up 2 of them a while back when you could get them individually for ~$30. I'm using one at a vacation home with zigbee/zwave2mqtt which then lets me integrate it all into home assistant at the main house. Been super stable and small enough to tuck away in a closet.
Only downside is the limited 8gb storage, but it's enough for a minimal linux install with a couple containers. You just can't beat a regular x86 pc when it comes to just being able to install an up to date distro of choice.
These are thin clients but flip an option in the bios and it's a regular pc.