Shelly 2PM Gen4 – Matter over Thread vs. Wi-Fi

Disclaimer: I am new to thread, apologies in advance for some very trivial questions.

In my head, my two Shelly 2pm gen4 (Wi-Fi and Thread capable) were going to be thread “routers” while Home Assistant was going to the “Border Router”.

Now in Home Assistant, under the Matter Integration, I see both shelly devices listed, but it clearly states they are connected over my home wifi network.

My plan was to add thread endpoints (battery powered smoke detectors for example), they would connect to the thread routers (the shellys) which would route the traffic to the home assistant (border router).

Am I missing something, did I make a mistake when I added the shelly to my thread network (I used the home assistant companion app and the matter integration)?

Maybe the mistake was that these shellys were already integrated over wifi with Home Assistant’s Shelly integration before I added them to the Matter integration?

1 Like

Where do you see Thread ?

Network name shows the SSID of my home network.

The Shelly 2PM Gen4 is a Matter over Wifi device, there is no mention of Thread on the Shelly product page.

ouch, my mistake.

There was a possible conversion from zigbee to matter firmware in the GUI of the Shelly and I made the following hasty deduction: "well if it can Zigbee, which is based on IEEE 802.15.4, and there’s a firmware conversion to do Matter required, clearly it is going to be Thread, since it’s also based on IEEE 802.15.4”

Maybe in the future, it seems that everything is available in the 2pm gen4 for thread, from a hardware point of view.

According to this, the shelly gen4 are using a SoC based on ESP32-C6, which itself does support Thread.

So my hope is not too far-fetched, maybe they can and will add Thread support via firmware upgrade…

1 Like

I feel like Shelly has very little incentive to release a Thread firmware version, given the device does not need to conserve power and WiFi is just so much easier to work with as of today. You never know, maybe they will surprise me.

But if you really, really wanted Thread, then in theory, you could use esphome to compile your own custom firmware that uses the 802.15.4 radio on the esp32-c6 for Thread networking. But there are important caveats to be aware of:

  • you need to know how the Shelly is wired to the esp32-c6 in order to correctly map all the on-board functionality. Luckily someone appears to have already done the hard work, though you would need to modify that config to use Thread instead of WiFi.
  • esphome does NOT support the Matter protocol for control, it has its own TCP-based protocol so would only work with HA and not other ecosystems.
  • some Shelly devices can be converted to open firmware via over-the-air updates using an intermediary image to repartition, but I don’t see any gen4 devices on that list yet, in which case you might need a usb serial adapter and some soldering skills.
1 Like

Let’s say the incentive for me is, to have more thread routers in the house so I can use battery-powered thread devices easily. I suspect it’s the very same incentive that resulted in Shelly adding Zigbee to these 2PM gen4 devices.

I just need to pass on this incentive to shelly :wink:

7 Likes

It’s not yet an incentive:
https://www.reddit.com/r/ShellyUSA/comments/1m1p2n0/is_there_thread_on_the_horizon_for_gen_4/

1 Like

There are plenty of good reasons to want Zigbee or Thread rather than wifi even for mains devices. One indeed being providing more repeaters to extend your mesh. Another being that wifi is not the appropriate technology for IoT; I don’t need chatty devices using up airtime I want to use for interactive and real-time activities, and already contend with my neighbours.

It’s nice that Gen4 finally supports Zigbee, but I think it’s rather weird that they only got round to this just as the world is stopping making Zigbee devices in favour of Thread, when the same C6 chip would have let them go straight to Thread (and they already have Matter code on the device). Also very weird that they just had Ecowitt make them a branded weather station using Zigbee, when Wifi would have been a more natural fit to the Shelly ecosystem (Ecowitt WS90 supported neither, so both options would have been a custom development for Shelly).

It’s certainly true I would have bought a lot more Shelly devices over the years had they supported Zigbee from the start, but now’s absolutely not the right time to be investing in more Zigbee devices.

That said, I imagine it would be fairly easy to get esphome running on them once esphome has better Thread support. But I DIY enough of my home automation already, I don’t personally need to be writing my own firmware for a commercial product (especially one at such a premium price point).

-davidc

Can you elaborate this - and provide a source for your claim? Wondering because our HA setup is soley build around esphome devices (majority wifi, some ethernet) and some other nodes further down connected via esphome nodes (like via Bluetooth, IR, RF). :antenna_bars:

At the moment we have around 80 esphome nodes with wifi on 2.4GHz and around 10 more devices which can be “chatty”. No problems whatsoever. :person_shrugging:

We didn’t found any hence we opt-in for wifi based devices (which can be owned) and

instead use the already present WiFi infrastructure. No need to build a new (mesh) network which often can be tedious. Wifi is already present in most homes, good coverage, strong signal, high throughput - perfect for IoT mains devices?!

not for the fainted hart, but someone created this firmware for GEN4 shelly’s

1 Like

Gen4 Shelly will get Thread next month

1 Like

Just to make it very clear to everyone interested in this feature, because “get Thread” is somewhat unclear:

The Thread functionality will probably not be border router. The shelly device will not route traffic between the Thread network and Wi-Fi, it will simply join the Thread network. The need for a border router will remain for any thread device too far away from your home assistant for example.

The Shelly gen4 have a single radio and expressif themselves clearly states that Wi-Fi and Thread Border Router at the same time is not supported/recommended.

This is a physical limitation I didn’t realise originally, and it makes the Thread feature on gen4 more or less pointless for me. I need border routers in in strategic places across my home. I had hoped the Gen4 could do this, hidden in the walls, but it does not seem that it will be possible. Hence, I will have to look for other options – which probably will be much less elegant.

For example, it seems that UniFi is bringing next year (2027) a Wi-Fi access point that will double as a Thread Border Router as well. (U7 Wall something)

1 Like

I flashed esphome on shelly gen4s and use them as fully-functional thread devices. Much simplier than using whatever thread firmware Shelly creates

2 Likes

What is the main advantage of this custom matter firmware over esphome? esphome supports thread and it’s native to HA

Just go with WAGO.
Expensive - yes!
But in my opinion the hardware and Thread functionality are well worth it.

If you mean the WAGO Home Blind Control 2757-1106, it Thread-only. It’s worse than Shelly, which can actually do both wifi and thread, even though it cannot do thread border router.

Well “worse” is maybe not the right word?
Why would you want that relay to do both WiFi and Thread?

I would think you decide (before you buy) what your Blind Controls should be based on, and what the WiFi and Thread coverage of your house is?

If it is WiFi - well, than there is no reason NOT to buy the Shellys.

If you want to use Thread then the WAGOS would be a very nice way to cover your whole house without the need for further TBRs.

This is detailed in my original post. Basically, thread range is not sufficient to reach the border router. But there always is a WiFi AP in range.