erocm123 / Hubitat

52 stars 61 forks source link

Update for non-secure mode and fixed crc16encap zwaveEvent #9

Closed eriktack closed 5 years ago

eriktack commented 5 years ago

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.

eriktack commented 5 years ago

(i deleted the wrong local branch, hence the mistaken closure of the pull request :-) )