Closed petaren closed 3 years ago
@dubocr I can confirm that this appears to fix the issues a lot of people are having with this plug in. this branch works with node 14.x
OK may have spoke too soon trying to look into this now.
@petaren @dubocr This is working with most current versions of node and homebridge. I was using the wrong pin numbers earlier.
I'm not a node developer, forgive me if I'm doing something wrong.
When trying to install your plugin myself I faced an error message that "wiringpi" couldn't be installed. I investigated the project to figure out how difficult it would be to swap out the dependency on wiringpi for something like onoff. Turns out you've already done most of the work. I only had to swap out the dependency on wiringpi in the package.json file.
When running the plugin, I got a runtime error for the
registerAccessory
method, which seemed to have one too many parameters according to the HomeBridge documentation. So I removed one.Lastly when I tried running it again I got some errors stating that
await
cannot be used in functions that are not marked asasync
. So I addedasync
on some of the function definitions. This ended up working.