220-110v switch detection using modified Tuya ZigBee 3.0 Smart Switch Module

Hi,

There are a few product like this one : https://www.aliexpress.com/item/1005006104399652.html?spm=a2g0o.productlist.main.1.1b41Q4RlQ4RlpA&algo_pvid=afa53f2e-9d1c-4b28-a45f-ffe9b69b8b2d&algo_exp_id=afa53f2e-9d1c-4b28-a45f-ffe9b69b8b2d-0&pdp_npi=4%40dis!EUR!42.33!21.16!!!43.66!!%40211b600216985930119845279ebe08!12000035764517605!sea!FR!729154664!&curPageLogUid=hRmdTlKQcE8f
Showcase below:
image

It does 2 things:

  • detect the press onthe regular light switch on your home
  • toggle the live wire using a relay
  • is connected in Zigbee and report state on this.

My question is that it may be possible to either:

  • find the same thing without the relay part, thus being way smaller
  • modify the existing module to remove the relay

Did anyone attempted this?

The use case is simple: my light bulb are already connected, I just need to listen for the physical switch change to toggle the light, rather then cutting the power on the light.

Here is the inside:

This is often called “detach mode” and from my personal experience with ZigBee devices can be a hit and miss if it supported and working at all. Sometimes quirks help - sometimes don’t. I waisted lots of time with that…

On the other hand all my esphome (WiFi) devices can do this (e.g. Shelly) completely independent from the manufacture.

I was so frustrated with the time I waisted with ZigBee and a few matter devices that I kicked them all out.

If you just need detect a button press you could use (if your juristication allows it) a simple esp for that task. Your wall switch (without AC!) will then just work as a switch on a GPIO. Also you need 3.3V/5V for that solution

Not sure to exactly get the exact issue you had.

Regarding using a GPIO and an ESP, this mean doing my own code to join a network (either zigbee or matter or etc, no wifi), plus the power convertion, and switch detection. I really wanted to avoid doing custom electric stuff, as it’s not my domain and don’t want anything to catch fire in the wall / behind the switch.

The module I linked above works very well on my side, and the HA automation was able to use it easily, I just didn’t use the relay out and only use it for switch detection, but it takes a lot of spaces and thus is not easy to install + the relay still makes sounds even if there is no wire on the relay out.

As you wrote:

I expected you being fine with tinkering.

Did you try if a “detach mode” is supported? That should avoid switching the relay

Various no code solutions do exist like esphome or esp zero code

Yes but the final package size need to be very fin, and I don’t know anything about power supply to provide 5v or 3.3v for esphome. I wouldn’t mind making my own, but prefer to use by dev time on other topics if possible.

https://www.zigbee2mqtt.io/devices/9133.html

https://www.zigbee2mqtt.io/devices/57004000.html