I could not get this driver to work for FGS-213 included non-secure, and the old crc16encap zwaveEvent method threw errors.
The built-in Fibaro Switch driver doesn't work correctly for me, it is unable to detect the on/off state when using the physical button. With these changes, this driver works as expected.
The code is copied from the FGS-223 driver where you have made more recent updates.
Note: Unsure if the encapsulateCommand flag change on line 286 should be used instead of the one in use now, I thought the 0x5B addition could be related to the double switch.
I could not get this driver to work for FGS-213 included non-secure, and the old crc16encap zwaveEvent method threw errors.
The built-in Fibaro Switch driver doesn't work correctly for me, it is unable to detect the on/off state when using the physical button. With these changes, this driver works as expected.
The code is copied from the FGS-223 driver where you have made more recent updates.
Note: Unsure if the encapsulateCommand flag change on line 286 should be used instead of the one in use now, I thought the 0x5B addition could be related to the double switch.