Scott Justason
Scott Justason
As a temporary workaround, you can try changing this line "if (that.device.desired_state.brightness !== undefined)" in accessories/light_bulbs.js to "if (that.device.last_reading.brightness !== undefined)", and test it out. It worked for me because...
Any chance of this being merged or reviewed?
@tomboates @sats4eva , if you look at https://github.com/nfarina/homebridge/blob/master/lib/api.js#L106 (for example), it mentions what the check is trying to do: `// if you passed the "short form" name like "Lockitron" instead...
I'm having the same issue as well. The plug-in worked for me probably about 6+ months ago, but I haven't really tried using it again until recently, which is when...
So, with a few additional debug statements, I found that the device "desired_state" on the initial request was empty: `{"object_type":"light_bulb","object_id":"1338xxx","uuid":"cdb488fc-7d56-4c61-b7fe-xxxx","icon_id":"71","icon_code":"light_bulb-light_bulb","desired_state":{}" . .` and this line in lib/wink-accessory.js was then causing...
So, I have a fork and pull request that resolves the ability to control, the retries, and the dimness controls: https://github.com/KraigM/homebridge-wink/pull/75, just waiting on either some feedback or an accept....
I can confirm too on latest MacOS (High Sierra currently), running latest Docker CE, that the current master branch does not work but this lolpants image does: https://github.com/docker/dockercraft/pull/86; I also...
I believe the reason for the issue in Node v5+ is because wink-js is specifying config-file as a dependency, version 0.1.8. Later versions of config-file (3.0) apparently changed the function...