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.
I made a ticket, they asked for teh device log, both with the stable and beta software, and made me try an RPC command, but Shelly.ZigbeeClaer,
all of which got me nowhere.
Shelly support is quite confident that the problem is in the C7 hub. So I mailed them that my C7 works fine with zigbee devices from 5+ different brands, and that I was postponing the issue till later. (hoping either Shelly or the Hubitat community comes up with something)
And got this reply :
Dear Marc
You can also check our Zigbee connection methods, here:
Hubitat seems to have lost interest in the Zigbee ecosystem: installcodes, greenpower, pairing issue with IKEA battery devices, etc. Also, if you complain a Zigbee 3 device does not work with C-7 (e.g. Shelly Gen4 devices), you'll probably get back a response along the lines of "Zigbee 3 devices should be backwards-compatible with ZHA 1.2, so it's the device fault".
Shelly has no reason to invest time and money in supporting a ZHA 1.2 device; I wouldn't if I were them
Anyway, I recently jumped ship to Z2M and I'm shiny! Maybe Hubitat will put Z2M into C-9 like they did with Z-Wave JS (if they keep a Zigbee antenna, that is).