Can I make my lights resilient with Matter?

Introduction

My HA installation (~10 years) is comprised of:

  • HA in docker with a Zigbee dongle
  • WiFi relays (Sonoff Basic)
  • Meross plugs connected via MQTT
  • Zigbee sensors
  • and a few of other less significant stuff

My focus in this post are lights.

All(*) my lights work like this: to the wall power socket (230V), I have an intermediate connected (a WiFi plug/relay), then the cable of the lamp (with its mechanical switch, always on) and a normal bulb.

On the wall I have a switch: a button that looks like a normal switch, either powered by the wall 230 V cables or by a battery and it sends a “pressed”, “double pressed”, “held”, … message to HA which then makes the decision to toggle lights through convoluted automations.

All this works great when HA is on.

The DRP is to either press the small button on the relays or plugs to switch the lamps (very practical when the relay is behind the couch), or plug the lamp directly to the socket and live as if it was 1980.

My question about Matter

I very casually read about Matter and I got the impression that it would be possible to build something like that:

  • the lamp is connected the same way as above, but the “smart intermediate” understands Matter
  • the Matter-enabled wall switch can pair the relevant devices for this switch
  • the wall switch is then integrated to HA

This would allow the lamps to work seamlessly when HA is off because the switch would know “its” lights.

Is the above correct?

If no, well thank you, good bye and thanks for all the fish

If yes - have you done that? Does it actually work? Any recommendations for the “smart intermediates”?


(*) I have three ceiling lamps that are not smartified yet, and the answer to that question will drive how I will address them.

How could this work? :thinking:

:fish:

TL;DR For most resilient setups that allow advanced local control (and full ownership) use ESPHome. You can control inside and outside the same (wifi) network (without HA) :muscle:

Your sonoff/meross devices might even be capable running esphome (if not ZigBee/matter devices). :star:

If each switch was a hub to which you would pair devices, then it would not need anything to toggle them. On top of that it would be connected to HA which could make it do some actions.

All my ESP-based stuff runs ESPHome (commercial devices and my own IoTs)

This is very interesting, I will have to have a closer look. The only problem is that today I have a mixture of ESPHome and Meross devices and I was considering to switch to Matter-enabled devices if my initial idea was realistic.
If I wanted to use ESPHome everywhere I would need to find plugs/relays/extenders that are built on ESP (or make some myself)

so you have smart switch and you want matter bulbs that will turn OFF with smart switch OFF? Yes, you can make this work using automation.

DO NOT get bulbs that are cloud based.
I got Orein Matter bulbs and they work well and are local controllable without cloud

Sort of!

It is the intended way it should work, but Matter is only getting there now with the latest iteration and the future ones.
You need Matter hubs and end devices to be at the right protocol level to succeed and it is currently still a bit complicated to get it set up.

Zigbee can actually do this also and is probably a bit better integrated.

It is therefore mostly a question about whether you want it to work yesterday or you can wait for it.

Sort of!

The switch does not know the state.
It will not send an off or on command, but instead a toggle command.

No:

  • I have smart relays (ESPHome, WiFi), Zigbee wall switches, gluded by HA
  • I want Matter relays and Matter wall switches, provided that they can work in clusters (switch + paired relays) in case HA is not available ← this is the core of my question

OK this is clear, thanks. I will wait until the dust settles down.

Ahhhh :face_with_diagonal_mouth: This is not good. Maybe it can send sequences (upon pressing) of “on”, “off”, “on” (to switch everything on/off no matter their state)

Thanks a lot for all the information!

Why is that not good?
If the state is on, then the toggle command will switch it to off and vice versa.

If you mean in a group?
Matter is still unknown this point.

I am uncertain on Zigbee.
Someone else will have to reply there.

Yes, if I have 5 lamps, 2 on and 3 off then sending a “toggle” message will switch the 2 off and the 3 on (I am solving this point in HA via a quorum-based script, to decide if all must go on or all must go off)

Ok, I have no idea how Matter groups handle that, nor with Zigbee.