And shortly thereafter Shelly leaves the network, probably because it does not like being served the ZigBeeAlliance09 key encrypted using thee same ZigBeeAlliance09 key (see Zigbee Security Header).
Maybe my trusted C-7 is beginning to show its true age...
So I've now tried changing the driver to the 'Generic Zigbee Switch' but it doesn't seem to work. In the logs I have this:
dev:1652025-06-09 20:45:11.797errorjava.lang.RuntimeException: java.sql.SQLException: NULL not allowed for column "DEVICE_NETWORK_ID"; SQL statement:
dev:1652025-06-09 20:45:01.244errorjava.lang.NullPointerException: Value to convert cannot be null. on line 1375 (method parse)
dev:1652025-06-09 20:45:01.179errorjava.lang.RuntimeException: java.sql.SQLException: NULL not allowed for column "DEVICE_NETWORK_ID"; SQL statement:
dev:1652025-06-09 20:44:53.824errorjava.lang.NullPointerException: Value to convert cannot be null. on line 1375 (method parse)
dev:1652025-06-09 20:44:53.670errorjava.lang.RuntimeException: java.sql.SQLException: NULL not allowed for column "DEVICE_NETWORK_ID"; SQL statement:
dev:1652025-06-09 20:44:32.788errorjava.lang.NullPointerException: Value to convert cannot be null. on line 1375 (method parse)
dev:1652025-06-09 20:44:32.701errorjava.lang.RuntimeException: java.sql.SQLException: NULL not allowed for column "DEVICE_NETWORK_ID"; SQL statement:
dev:1652025-06-09 20:44:20.829errorjava.lang.NullPointerException: Value to convert cannot be null. on line 1375 (method parse)
dev:1652025-06-09 20:44:10.473errorjava.lang.NullPointerException: Value to convert cannot be null. on line 1375 (method parse)
dev:1652025-06-09 20:44:10.353errorjava.lang.RuntimeException: java.sql.SQLException: NULL not allowed for column "DEVICE_NETWORK_ID"; SQL statement:
This is wired into a fuse spur for outside lights and doesn't have a physical switch I can change unfortunately.
I have managed to get it working using a custom driver I found in HPM (Shelly 1) but this requires me to have the Shelly device on wifi and to give it the IP address. Inevitably, the IP changed at some point and it all stopped working and I could probably give it a fixed IP but I'd really rather just use Zigbee alone if possible.
Any suggestions at all? I've got 5 of them to set up currently and I've heard really good things so would be keen to get them working via Hubitat if it's viable!
I'm using a Shelly 1 Gen4 (not PM) since it arrived without any issues. Paired on the first attempt with a C8-Pro (regular pairing, no special options)
I had forgotten, it pairs but doesn't work as expected, you have to pair using "Double Luck Voodoo" then it works perfectly with Tuya Zigbee Switchdriver by @kkossev.
It didn't work perfectly with the native driver. It would turn on an off, but the status wouldn't update.
That might have been with the regular pairing, before using "Double Luck Voodoo".
I'm testing a Zigbee driver for Shelly 2PM Gen 4 made with Claude AI. It’s in test (beta). There are some codes for tests that will be removed later. The device has two modes of operation (curtain/cover/motor and switch) and depending on the mode it is paired it has different clusters. The default is curtain, Hubitat recognizes it as a curtain controller and configures it with a native driver. To pair as a switch I needed to change in the web interface from curtain(cover) to switch and put it in pairing mode there, in the zigbee section, because I was not able to activate pairing mode using the button without resetting. But it ended up working.
4 – Repair the device. Enable pairing in the Zigbee option of the web interface. Start pairing by clicking the Start Pairing button of the web interface.