Follow the instruction in homebridge for the homebridge server installation.
The plugin is published through NPM and should be installed "globally" by typing:
npm install -g homebridge-blynk
Release notes
Version 0.9.0
Complete rewriting in typescrypt and homebridge plugin 2.0 API
Based on Blynk REST API
Works on both cloud server and local server: for cloud server the Blynk App must be running in order to receive automatic update of the pin values (setting pins works also without the app runing); for local server put "allow.reading.widget.without.active.app=true" in server.properties in order to be able to receive automatic update of the pin values.
Works on both cloud server and local server: for cloud server the Blynk App must be running in order to receive automatic update of the pin values (setting pins works also without the app runing); for local server put "allow.reading.widget.without.active.app=true" in server.properties in order to be able to receive automatic update of the pin values.
You must create a Project within the Blynk app that will define the mapping between your hardware device, the server and the Blynk Widgets
Getting Started
Select a platform on which to install the plugin (any platform that support node.js should work)
start homebridge (and create an autostart file on the hosted platform)
For the config file:
specify authorization token of an existing Blynk project on the referred Blynk server, for example:
assuming a switch within the Blynk project specify in the accessories parameter of the config.json file:
{ "name": "Switch1", "widget": "Switch", "mode": "SWITCH", "caption": "Lamp 1", "pin": "D5" }
where:
name will be a unique identifier of the the accessory
widget must be one "Switch" (other supported accessory types are: "TemperatureSensor", "HumiditySensor", "MotionSensor", "SmokeSensor", "LightSensor"
mode can be "SWITCH" or "PUSH" (only used for Switch widget)
caption will be the name you should refer to from Siri
pin is the pin to actuate
Use the Home app to add the accessory to the iPhone/iPad
请发表评论