Hi,
I just had the same issue. The Niko dimmer switch was appearing as paired in Zigbee2MQTT, but the logs inside the Zigbee2MQTT UI were not showing anything when I was pushing the buttons, and I could not select any state or action for the device in the automations UI.
I did reset it and repair it a few times, and it didn’t solve the issue. What happened is that I wasn’t resetting it properly to factory setting and initially, I must have pressed the wrong buttons during step 3.2 of the pairing (see below).
So here is what I did and it solved my issue:
-
Force remove the switch from Zigbee2MQTT
-
Reset the Niko Dimmer Switch to factory setting. This part is bit tricky.
I ended up taking the Niko Switch appart, removing the frame and the caps and extracting the Enocean PTM216Z module. With the small module on a flat table (caps removed):
- with 4 fingers : press the 4 contact buttons simultaneously for at least 7 seconds
- with the other hand : keep activating the power bar during at least 7 seconds
This sentence from the documentation helped me understand that the contact and the energy bar where 2 different things;
A button can be pressed by holding the contact of that button and then push the energy bar.
- Repair the Niko Switch to Zigbee2MQTT. Be sure to respect the 2 steps:
- 3.1 long press one button only according to your Zigbee channel (in my case, button B1 : Top Right for Channel 11)
- 3.2 press A0 and B1 together once it’s paired.
- Here comes the trick : press all combinations of buttons so that MQTT Discovery can register all actions to Home Assistant !
I found that after pairing, I had to press all combinations of buttons for MQTT discovery to register all possible actions to HA, so they would become available in the HA automatio UI.
The best way to check this is to go in Zigbee2MQTT Logs, press all combinations of buttons and you should see them appear in the logs.
If you get nothing in the Zigbee logs when you press the buttons, you need to unpair, and reset to factory settings again, and pair it again.
- Check in the automation UI that you have all actions / trigger available
You should get something like that
Note: I really like this Niko Switch as it has soo many features ! I previously had this Niko Switch with a Conbee 2 and then with a Philips Hue Bridge. With the Philips Bridge everything worked out of the box nicely indeed. With Phoscon / Conbee, the pairing and the automations to switch some lights on were nice to set up, but the issue was that the deCONZ coordinator software doesn’t implement yet relaying of greenpower telegrams over bulbs, so it would only work if the Niko Switch, the bulbs and the concentrator are in direct range. In my case, due to range issue, I needed to relay the greenpower telegrams over several Philipps Hue bulbs to get to where I want. It appears that the Zigbee coordinator software needs to support this feature and the bulb firmware as well. As far as I know, only the Philipps Hue Bridge and Zigbee2Mqtt implement relaying greenpower telegrams over (Philips Hue) bulbs. I tested relaying with various non Hue bulbs as well, but I could only relay the greenpower telegrams with Philipps Hue bulbs. For more info see Niko Smart Switch PTM 215Z (EnOcean) not repeated by Hue Bulbs to Raspbee II · Issue #2780 · dresden-elektronik/deconz-rest-plugin · GitHub.
The tradeoff with using Z2M and HA with the Niko Dimmer Switch is that automations are a little harder to implement. For instance, I haven’t figured out yet how to implement dimming by subsequent pressing of the same button. If any one managed to replicate “Hue Style” dimming automations for the Niko Dimmer Switch, I am interested !