Closed jaminNZx closed 6 years ago
I had the same issue. Turns out when you look at the index.js the BlynkPlatform.prototype.hardwareWrite method code is commented out. This means that in fact nothing will happen when you try to use this plugin. I hacked some code in there just to get things working end to end but it only works for a "switch":
BlynkPlatform.prototype.hardwareWrite = function(pinString, value) { value = value ? 1:0; request('https://' + this.server + ':' + this.httpsPort + '/' + this.token + '/update/' + pinString + '?value=' + value, function (error, response, body) { if (response) { console.log('Status:', response.statusCode); console.log('Headers:', JSON.stringify(response.headers)); console.log('Response:', body); } else { console.log('Error during performing request : ', error); } } ) };
Awesome I'll give this a go.
hey i3creations.. is this working for you at all now? seems to just crash when I try and run the node
Hi. I have the same issue. Is there a solution already? Thank you.
i3creations, you are ROCK! Your solution work for SWITCH mode great!
I have installed and setup the config etc... and I can connect vai the iphone to the homebridge and it is recieving commands fine. but no action is made to Blynk.
Can you confirm this is still actively working?