Comments (5)
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); } } ) };
from homebridge-blynk.
Awesome I'll give this a go.
from homebridge-blynk.
hey i3creations.. is this working for you at all now? seems to just crash when I try and run the node
from homebridge-blynk.
Hi. I have the same issue. Is there a solution already? Thank you.
from homebridge-blynk.
i3creations, you are ROCK! Your solution work for SWITCH mode great!
from homebridge-blynk.
Related Issues (20)
- Homebridge crash HOT 7
- Homekit Auto Refresh of Blynk Data HOT 1
- error :Requested pin doesn't exist in the app HOT 1
- Support for Door widget HOT 1
- how access to my homebridge out of the local network HOT 1
- homebrige value HOT 1
- Bad pin triggered HOT 8
- I have exactly the same problem HOT 1
- homebridge doesnt trigger anything HOT 2
- State button on PUSH mode
- fahrenheit support for temperature sensor
- TemperatureSensor max/min values are overly restrictive
- RGB Light support
- Can't disable poller HOT 2
- Device pin not being triggered (Wemos D1 mini)
- multiple blynk devices HOT 3
- Switch State keeps updating to false
- broken on homebridge 1.0+
- Error when adding an accessory HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-blynk.