this post was submitted on 06 Feb 2026
87 points (97.8% liked)

Selfhosted

56402 readers
1424 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I'm planning to build several WiFi connected devices for home automation: an AC remote control and air quality sensors. These devices would send data and be controlled through a local server. I'm considering two approaches: running custom software on a server PC (hardware to be determined) or integrating with Home Assistant's protocols and purchasing their hardware. Would using Home Assistant be excessive for this use case?

top 50 comments
sorted by: hot top controversial new old
[–] muusemuuse@sh.itjust.works 4 points 6 days ago* (last edited 6 days ago)

you are Apple-centric:homebridge

There’s a mix: homebridge

You are out of mood stabilizers: arduino and an ESP32

[–] AbouBenAdhem@lemmy.world 57 points 1 week ago* (last edited 1 week ago) (3 children)

In terms of software, yes. But HA can be run on nearly anything—there’s no need to buy their hardware to use it.

[–] i_am_not_a_robot@discuss.tchncs.de 18 points 1 week ago (3 children)

Just be careful with SD cards if you're using SBCs. Home Assistant does a lot of writing and if your SD card can't handle repeated writes you may suddenly lose everything. Keep backups to another device and have a replacement SD card ready if extended downtime is going to be a problem for you.

[–] CmdrShepard49@sh.itjust.works 1 points 6 days ago

You can connect an SSD to these boards and boot from that instead of an SD card. Definitely the way to go especially considering SSDs dont really cost more than SD cards.

[–] 4am@lemmy.zip 1 points 1 week ago (1 children)

Always run mine in a VM along with everything else, no need for special hardware.

Get yourself a PoE Zigbee and/or Z-wave receiver and you are good to go, can even live migrate HA if you are fancy

[–] white_nrdy@programming.dev 1 points 1 week ago (1 children)

I run mine in a VM but have USB passthrough for the Zwave and zigbee sticks. I didn't know there were POE coordinators. Do you have any you recommend? I use both zwave and zigbee

[–] speculate7383@lemmy.today 1 points 6 days ago

I haven't tried it yet, but I see the SMLIGHT SLZB06 get recommended a lot for Zigbee

Booting from USB drives has worked well for me

[–] roofuskit@lemmy.world 17 points 1 week ago (2 children)

Adding to this, I recommend a used mini PC. There's lots of cheap used office hardware out there on eBay that is more powerful, more serviceable, and more flexible than the hardware they sell or a raspberry pi.

[–] dan@upvote.au 11 points 1 week ago

Companies are throwing away old hardware (like 8th/9th gen Core i5) that's perfect for running Home Assistant. See if there's an e-waste recycler near you - they might let you buy an old system for a nominal fee.

[–] Goodlucksil@lemmy.dbzer0.com 2 points 1 week ago (1 children)

While there are some problems with used minipcs (notably drivers), i don't think they are relevant if it is only going to be used as a Home Assistant

[–] Trilogy3452@lemmy.world 2 points 1 week ago (3 children)

That's a good point. This can help me with things like adding a DNS server (I'm assuming pi-hole can be run standalone on a mini PC)

I bought a used mini PC and then set up Proxmox. This little thing is a lot more capable than the Raspberry I used before and it runs my complete home lab, excluding my NAS.

[–] roofuskit@lemmy.world 4 points 1 week ago

If you're going to run Home Assistant OS you'd be able to run anything that can run in docker. Some things are available to install directly inside the Home Assistant apps system, otherwise you can install portainer and run any docker capable software.

[–] Buelldozer@lemmy.today 4 points 1 week ago (1 children)

You can also install ad guard home as an add on INSIDE Home Assistant. Works great!

[–] 4am@lemmy.zip 2 points 1 week ago

Yep! While I didn’t run mine through HA, I much preferred AdGuardHome over PiHole.

[–] mhzawadi@lemmy.horwood.cloud 6 points 1 week ago

Yes I run my install on a pi5, upgraded from a pi4.

[–] tofu@lemmy.nocturnal.garden 48 points 1 week ago (3 children)

If you aren't locked in yet, I'd recommend against WiFi devices. Check Zigbee or similar. It won't clutter your LAN and is independent. You usually need some kind of central station for that but it's worth it imho.

[–] mangaskahn@lemmy.world 12 points 1 week ago (1 children)

The exception here would be ESP32 devices. These have been some of the most reliable devices in my home and the most versatile, no Internet access required. Zigbee works well, but runs in the same frequency space as wifi and Bluetooth. Matter and thread are the new hotness and run in that space too. They all work well together, but something to consider. Z Wave is in a separate frequency space, but is a less open protocol. I have at least a few of all of these and they all play nice. Consider your priorities and choose what's best for your application.

[–] ego@lemmy.dbzer0.com 6 points 1 week ago

Seconding esp devices. Especially running open source firmware (I used tasmota, there is also esphome and probably others) super reliable and much lower risk of spyware.

[–] Sibbo@sopuli.xyz 10 points 1 week ago

ZigBee base stations are like 20€ or so if you get a simple usb dongle

[–] Trilogy3452@lemmy.world 2 points 1 week ago (3 children)

Will do. Is it more for security purposes? Reliability?

[–] tofu@lemmy.nocturnal.garden 9 points 1 week ago (1 children)

Both! Connecting Iot devices to your LAN is a security risk, since they sometimes carry malware. Many DDOS these days are performed by smart bulbs or the like. May even sniff in your network. Of course you can firewall them, but why bother with wifi at all then? Zigbee is pretty reliable and works even if your router goes down (you probably can't access Home Assistant Web interface anymore, but zigbee light switches etc will still trigger zigbee bulbs, zigbee thermeters will still report their sensor values etc).

I'm a Zigbee user so I use that in the examples but I'm sure the other options are fine as well.

[–] Trilogy3452@lemmy.world 4 points 1 week ago (1 children)

Thank you for the info! I'm guessing that I could use a mini PC with a zigbee adapter to create my own dashboards or bridge to home assistant, unless zigbee hubs offer similar capabilities

[–] tofu@lemmy.nocturnal.garden 3 points 1 week ago

Home Assistant has a great integration, ZHA, which "drives" the Zigbee device. So having the Zigbee dongle on the machine HA runs on is very common. In my case it's a raspberry with a RaspBee dongle but every MINI PC will do. Recommended devices: https://www.home-assistant.io/integrations/zha#recommended-zigbee-radio-adapters-and-modules

The other common setup is using Zigbee2MQTT which allows different devices that communicate over LAN. it's been the go to recommendation as it has some compatibility improvements for devices that don't properly follow the Zigbee standard. ZHA is keeping up though and is natively supported by home assistant. I'm using ZHA and check for compatibility before buying devices.

You can theoretically switch later, but you'll have to reconnect all devices which can be a hassle.

[–] ClownStatue@piefed.social 8 points 1 week ago

Most wi-fi smart devices use cheap components and will often drop off the network for seemingly no reason. As long as you do some basic planning, Zigbee and Z-Wave are pretty solid. There are some folks here who will say one or both of these technologies are on their way out because Matter & Thread. I’m not sure I agree with them, but even so, HA supports Matter, so… when Thread devices become as ubiquitous as Zigbee & Z-Wave devices, you can replace them as they die.

[–] 4am@lemmy.zip 6 points 1 week ago (1 children)

Most WiFi devices these days are cloud-based, at least on the American market.

If you can find a Zigbee or Z-Wave (or the up-and-coming Thread), those only work locally. The only way to get remote control is to expose HomeAssistant (or a similar hub) to the internet - usually using a VPN from your remote devices into your network.

It’s a bit more upfront work, but no one can track your devices, they’re off grid/much harder to hack remotely, etc.

[–] Trilogy3452@lemmy.world 3 points 1 week ago

I'm planning on assembling and coding w/e needs coding on microcontrollers, and a mini PC/HA hardware won't be connected to the cloud. But generally speaking yes: most IoT devices in the US connect to someone else's computer these daya

[–] Kirk@startrek.website 24 points 1 week ago

As others have said, you can run Home Assistant on anything if you want to just test it out. Their own hardware is a great choice though.

But to answer your broader question, yes. Home Assistant is the choice. It works better with literally everything else out there.

[–] hendrik@palaver.p3x.de 21 points 1 week ago* (last edited 1 week ago)

HA isn't the only option. I think there's two other open source smarthome solutions out there(?) And you could probably do with just an MQTT broker and a Python script, or something like that...

But HA isn't a bad choice. They're doing a phenomenal job. And related projects like ESPHome make it really easy to integrate microcontrollers. And if you want to do more smarthome stuff, it has a plethora of features, integrations, an app...

Extra hardware isn't absolutely necessary. I have one server at home which does NAS, and I use 4GB of it's RAM to run a virtual machine with Home Assistant. That's enough for it, including a bunch of Addons.

[–] AA5B@lemmy.world 9 points 1 week ago (1 children)

I’ll also vote to reconsider WiFi. Home Assistant supports a variety of local mesh networks that by default can’t connect to the cloud and whose devices are cheaper and lower power.

I use all three of zwave, Zigbee, and thread; ha works with whatever you need.

[–] jaxxed@lemmy.world 1 points 6 days ago (1 children)

Can you comment further on the three mesh networks rhat you use?

I only use zigbee, but would consider branching out

[–] AA5B@lemmy.world 2 points 5 days ago* (last edited 5 days ago)

I got into each mesh technology for specific devices. Home Assistant supports them all and they seem to coexist just fine in my use case.

I have a small to medium setup with only a few simple automations and a focus on voice control and scheduling

Preference

  • Thread - given Apple, Amazon, and Google support and the standardization work, I expect this to be the future. Eventually. But I’m getting impatient. If I’m buying a device, I prefer Thread but usually it’s not yet
  • z-Wave - my first, and most devices. Basically this was what was most available at local stores when I started. No complaints
  • Zigbee - by far the biggest selection of simple, cheap sensors. I need to more of those
  • all too much is WiFi but I try to avoid

But it also helps that my approach is generally switches and outlets. Hard-wired, predictable network, tend to be repeaters. I have comparatively fewer leaf nodes.

This approach also fits in with my biggest challenge. While my house is small, it’s an older one with dense materials that blocks a lot of radio signals. For example I have no cell phone reception inside yet strong signal just out any door. My focus on switches and outlets overcome this with a repeater in every room

So for example a few years back I got a z-wave IR blaster to control a mini-split AC because at the time I mostly used z-wave. I already had a z-wave light switch in the same room, acting as a repeater, so no worries about connectivity. Now I have both z-wave and Zigbee light switches in that room so expect both meshes to be strong for any future devices in that room

[–] mhzawadi@lemmy.horwood.cloud 9 points 1 week ago (1 children)

HA will connect to almost anything, maybe there is a connector for your AC unit and there are many air quality sensors

[–] Trilogy3452@lemmy.world 1 points 1 week ago (3 children)

My AC is offline, I was thinking I'd just put an infra red LED on a microcontroller in front of it 😅

[–] CmdrShepard49@sh.itjust.works 5 points 6 days ago

I did this with ESPHome on an ESP8266 connected to an IR led for some rope lights that had IR control. The hard part is finding the codes for each control, but there's a surprising amount of info out there.

[–] dan@upvote.au 4 points 1 week ago* (last edited 1 week ago)

Even if you build your own thing to communicate with the AC, Home Assistant is still useful since it lets you easily automate things and interact with other devices, and you get a bunch of things included (nice UI, storage of historical data, dashboards, etc). You could build your thing as a Home Assistant integration.

[–] paf@jlai.lu 2 points 1 week ago (1 children)

That might depends on how your AC is working, I recently did the same at my dad's house and run into issues because the temp control for the unit is reading from the remote. So when I sent infrared command to turn off unit, it worked as expected for some minutes then turned back on because remote sent back command as temp wasn't meet. Still need to do a lot of testing to find a way to make it work, might need to disable remote and use some temp sensors for the triggering part but not sure how that will work, might need to use some hysterisis friendly climate addon for that...

[–] Trilogy3452@lemmy.world 1 points 1 week ago

That's interesting, I'll have to read more about mine. I think I purposefully bought the "dumbest" option but will need to experiment with it just like you did

[–] tal@lemmy.today 6 points 1 week ago (1 children)

I don't run a home automation system, but if you want an open solution and are willing to do some configuration, my understanding is that the main contenders are OpenHAB and Home Assistant.

I'd also suggest !homeautomation@lemmy.world as a more-specialized resource than !selfhosted@lemmy.world, though I imagine that there's overlap.

[–] Trilogy3452@lemmy.world 2 points 1 week ago (1 children)

Thanks. I thought the already thought out protocols and configurations would make it easier to program the micro controllers to plug in with that rather than building something on my own

[–] sobchak@programming.dev 3 points 1 week ago

It's been a while since I messed with home automation, but ESPHome was amazing to program ESP microcontrollers (i.e. you most likely wouldn't have to write any code). You can use ESPHome devices with both Home Assistant and Openhab (using MQTT, IIRC). The last I checked, it was easier to program your own functionality in OpenHAB than Home Assistant.

HA is definitely the largest adopted. OpenHab is probably more geared for developers, but has a more concise and powerful automation system.

As for hardware to run it on: get a cheap n100 Minipc and be done with it. Uses 6-12W, and it's going to miles.kore efficient for this use than a regular PC.

[–] CompactFlax@discuss.tchncs.de 5 points 1 week ago (1 children)

Yes. If there’s another open source project that has the coverage I’m not aware of it.

[–] ricdeh@lemmy.world 3 points 1 week ago

There is also OpenHAB, but I think Home Assistant is the more mature one of the two.

[–] Shimitar@downonthestreet.eu 5 points 1 week ago

I would suggest to go with home assistant. I have been running it for couple of years now and I am very happy.

I would also suggest to purchase a Home Assistant Green. While not needed, you can self install on a Pi or a standard pc, it's a small price to support the project and the Green is a nice solid and super stable piece of hardware, I am very happy with it after using first an old laptop, and then a Pi. The green is a clear upgrade from both.

[–] Jaaaardvark@lemmy.zip 2 points 1 week ago

I've tried Domoticz when my Pi was too old for HA, before upgrading to HA. It was good enough to control only a few devices.

[–] Decronym@lemmy.decronym.xyz 1 points 1 week ago* (last edited 5 days ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
HA Home Assistant automation software
~ High Availability
IoT Internet of Things for device controllers
MQTT Message Queue Telemetry Transport point-to-point networking
NAS Network-Attached Storage
PiHole Network-wide ad-blocker (DNS sinkhole)
PoE Power over Ethernet
SSD Solid State Drive mass storage
VPN Virtual Private Network
Zigbee Wireless mesh network for low-power devices

10 acronyms in this thread; the most compressed thread commented on today has 15 acronyms.

[Thread #65 for this comm, first seen 6th Feb 2026, 21:20] [FAQ] [Full list] [Contact] [Source code]

load more comments
view more: next ›