After a bunch of back and forth and many hours of trial and error, I've finally got a robust way to integrate the Clipsal/PDL Iconic dimmers integrated into Home Assistant via zigbee2mqtt.
I have submitted a PR that adds a zigbee-herdsman-converter that means the dimmers should be recognised automatically by zigbee2mqtt, allowing them to be controlled by Home Assistant like any other compatible device.
As it transpires, this was actually really easy once I worked out what to do, so this isn't even a hack.
If you have the PDL354PBDMBTW or 41EPBDWCLM devices you can switch these over to zigbee mode by pressing the button 12 times (thanks to @ell249 for the tip).
After you press it 12 times it will take a few seconds then start flashing red. Then it takes another half minute or so to settle in and as long as your network permits joining it should show up as a device and join the network.
If you have problems, or you want to revert to BLE mode just do the standard factory reset by pressing the button 3 times quickly, then holding until the light flashes red slowly, then flashes red quickly. Make sure you hold on until it flashes quickly, otherwise it doesn't reset. This was the mistake I made and left me thinking I had bricked it.
Once you switch to zigbee mode, you can't connect to it via the Wiser Room app to do firmware upgrades and such. It appears that the zigbee mode is supported by the Wiser by SE app, but it seems like you need a Wiser Hub to do this. So far, I haven't tried to make support for OTA via zigbee2mqtt.
There are some other settings that the zigbee certification document say are supported that I haven't gone through and made show up in zigbee2mqtt. I think it supports LevelCtrl and other things, but I couldn't get them to work easily and frankly I was more interested in the on/off and brightness control than anything else.
Hi everyone, sorry if this isn't the most appropriate location to put this, but figured I'd ask it for other people using these wiser Clipsal Switches in z2m!
Have you noticed if you rapidly change brightness or on/off you'll see queueing and then flapping of the reporting? Me and a friend of mine have both seen this on our z2m / clipsal switches! I narrowed it down to the reporting in z2m and if you delete all the reporting configuration the issue doesn't occur! I'm not familiar enough with how this stuff works in depth in z2m but I did notice in the logs when I was changing states on my switches, it was sending 2 identical MQTT messages for states. So this is why you start getting that flapping because after a little bit the duplicate messages start over lapping with each other.
I'm going to do more testing tonight with some local code to see if this issue is something in the convertor, I have 100% confirmed this issue does not occur using the Wiser Hub and is only present in the z2m adoption.