I have my hands on a Mercator Ikuu single gang light switch as a test for my HA setup, which appears to use the Tuya TS0011 zigbee IC for control. I have a plan to use multiple of these ( single, dual, triple and quad gang) around the house.
I have this connected via Z2M and It’s possible to do some basic operations, ON, OFF, TOGGLE, Query State.
Unfortunately when I physically press the button on the light switch, it doesn’t push the state change, so the only way HA has to know if the light is ON or OFF is to query the switch’s state.
Ideally i would like to use the state change to trigger other events, turn on an exhaust fan, or a light further down the hallway etc and have them triggered instantly.
I want to avoid delays by querying the state of all my light switches multiple times a second clogging up the ZigBee network and slowing down the host PC running HA and Z2M.
Does anyone know of a wall switch (zigbee preferred) which pushes the switch state on physical button press?
or, is there some method of flashing the light switch’s micro-controller where i can more finely control the messages sent out from the wall switch ( esphome’esque type of flash )
That may be so. The implementation may be incomplete in Z2M.
Never seen a zigbee switch do that before. Are you certain that when you press the physical switch that the state of the switch entity does not change in HA?
What HA version are you using?
Versions prior to 2021.2 had a bug in discovery. In result, when you were renaming device in z2m, not all its entities might have been renamed (if remember correctly restart of HA were fixing that). Maybe it was your case with the switch? that you just didn’t find it under expected name?
Running 2021.5.0, in a Docker Container, with Z2M on another PC (docker as well)
Maybe there was an issue with the discovery the first time and it resolved itself when it was re-linked, I was looking at all my MQTT messaged from Z2M’s terminal and nothing was showing up there during the button presses.
Well, now this one is working ill grab another to see if i have the same issue.
I just bought one of these to test it out. Looks like you have done this already :).
Was it discovered instantly by Z2M or did you have to add as a customer device ?
Given the link you share in your original post … Mercator Ikuu … it looks like you are in Australia
Where did you purchase the light switch from? I bought the sample from Lighting Illusions.
Are you able to elaborate on how you got this device to report its on/off status?
I have latest Z2Mqtt and Hassio and see exactly the same problem, it doesn’t report. I tried using a sniffer and saw no packets from the device when pressing the button. Super annoying.
I have a dimmer version which also shows negative values in Hassio front end for dimness =(
Can’t tell you how I got it working, because there wasn’t anything specific like editing a JSON or yaml, but I’ll share with you what I did which made it work.
Originally connected to Z2M : didn’t show the state of the buttons.
Then disconnected Z2M
Spun up a new HA on a pi and connected the wall plate to the new HA instance via ZHA, which shows the state change on button press.
Disconnected ZHA and reconnected the wall plate to the original Z2M docker.
Then the wall plate would function as expected in Z2M