this post was submitted on 27 Jan 2024
11 points (86.7% liked)
homeassistant
12107 readers
74 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There’s a couple of ways you can do this.
I’ve so far not had much luck with Matter, so for me, that is an unnecessary complication to avoid. Trying to get Matter working, I mean.
In my case I would probably use either the first or second choice, depending, but your situation may be different. My WiFi already has too many devices on it.
Can you tell me more about this? Wifi is available in the area, which seems a better option than a chain of zigbee extenders.
Can I just get a zigbee to MQTT router and that bridges between a zigbee button and HA?
It sounds like you may be confusing how Zigbee works with how older WiFi works.
In WiFi you would have a single access point with a certain range. If you want to extend that range in a particular direction you would have to add a range extender, creating a chain or rope of range extenders.
Zigbee (and many modern WiFi APs) are more like a fishing net. The more relays you have the stronger your net is because if one relay goes down for whatever reason, another relay in range can pass along the message to where it need to go.
By the by, this is also how the internet works (oversimplified to the point of inaccuracy of course).
In building out a Zigbee network you do not want to create chains with a single path available for reliability reasons. It’s better saturate an area with Zigbee relays. The relays can be either bunched up or you can spread them out. The only limiting factor on the size (in sq meters) is the max number of devices of the protocol, which you are unlikely to hit, and the radio range of the individual relays. Each device (either a relay or end device) needs to be able to see at least one (but preferably more than one) relay.
At a high level (I don’t run one myself), A Zigbee to MQTT server is a way to create a second “net” that is completely separate from the your original Zigbee network. In a nutshell, you take a second Zigbee cordinator and attach it to a MQTT server which then passes the information back to your Home Assistant. This second network doesn’t benefit from the first and the first doesn’t benefit from the second. Though, because they operate on the same frequency spectrum, they can conflict just as 2.4Ghz WiFi and Zigbee can conflict.
It’s more something that you build than something you get, but, practically speaking, there is nothing stopping you from doing so. Though it doesn’t usually make sense to do so from an effort or infrastructure prospective for a single end device. Though of course, there are always exceptions. At a minimum, you would need a network connected computer running the MQTT server and a second Zigbee coordinator. Search for zigbee2mqtt.
Thanks, I was definitely confused! It does sound like the effort to run a MQTT server isn't really worth it for one button. However, I don't really know a good way to build a good zigbee network. My house has in-build LED lights, I can't swap them for Hue bulbs or anything like that. The only other common extender I know of is smart plugs, and having a bunch of smart plugs all around the house that aren't actually used is just annoying.
I'm not sure the effort is worth it for this one button at the moment. Maybe I will wait until I've added other things naturally extending the zigbee network.
Building a good, reliable Zigbee network is dead simple. Just have a whole bunch of devices scattered around the area attached to your Zigbee network that can act as relays. The network will do the rest.
Here’s some products from my notes that should act as relays. This should give you an idea as to what you can use. In general, if it’s mains powered it will probably act as a relay, and if it is battery powered it probably won’t.
You might consider asking around for what products others use that can act as relays.
Light switch - https://inovelli.com/collections/inovelli-blue-series
Electrical Relay - https://a.co/d/eaIyhDA
Plugs - https://a.co/d/3BqdTAD
Light bulbs - https://a.co/d/9F4JfWG
Gateway/Zigbee Relay - https://a.co/d/eNHZfWc
It sounds simple in theory, but for the light switches and relays I'd need to get in an electrician, and I'm just not that invested yet. I don't have bulbs I can swap out, as my lights don't have bulbs. That leaves smart plugs and that last one you linked, the gateway.
Smart plugs are annoying. They are big and bulky, the plugs fall out of the wall easily when they get bumped by kids, and it's an annoying extra thing for anyone wanting to use that socket.
That last link you have looks interesting. It doesn't state what the range is, but the reviews have lots of comments about the great range. That might be an option. Any idea what kind of range it has? I need to make it about 10-15 metres and through 3 walls, so I suspect it's a bit of a stretch but it would still probably greatly reduce the number of devices I need in between.
Out of the box, the Sonoff adapter is setup to be used as a coordinator, like the SkyConnect. To run it as a relay you will need to reflash its firmware. Sonoff has firmware available for that and I’ve seen guides floating around on how to do so.
Hardware side, best I can give you is a solid maybe, and I couldn’t tell you how stable the connection would be. I do know that it has better signal stock than the Nabu’s SkyConnect.
If you stuck it in front of a broad wave guide you might be able to eak out a little more range without limiting its visibility to the sides too badly. Like how satellite dishes work. A tin can would be too focused for this application but a metal colander or a foil lined dinner plate might work. Both the coordinator and the devices you are wanting to connect would have to be within “sight” of the Sonoff’s signal though.
Alternatively, and I don’t know if the parts exist to do this, you could split the single antenna off to 2 antennas, like CB antennas on heavy trucks here in the States. I don’t remotely understand how it works, but if it’s setup correctly, it would increase range to the “front“ and “back” while significantly reducing range to the sides.
I probably won't go the tinfoil route, I'd prefer to keep it inconspicuous. Using it as a relay may do the trick, depending on range. I'll think about what my plans are for future devices, as I don't have many right now (hence not having a big zigbee network).
Using Z2M doesn't really sound like it'd be ideal for your use case. For most people (myself included) it's to seperate your zigbee network from home assistant so if HASS goes down you don't lose control of your lights too.
Thanks, I agree, on learning more about it, it doesn't seem like the best solution.
have a look at Shelley smart devices. They have a wifi button that’s fully compatible with Home Assistant. Not the cheapest in the world but the quality is excellent. No Zigbee needed.
https://www.shelly.com/en
Thanks, someone else mentioned these and it seems like the best option so far.