Skip to content

miliante/homebridge-blynk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-blynk

Homebridge plugin for the Blynk platform

Installation

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.1.0

  • Fixed dependencies

Version 0.1.0

  • First usable version of the plugin
  • HomeKit accessories supported:
    • Switch
    • Temperature Sensor
    • Contact Sensor

Configuration

Remember to configure the plugin in config.json in your home directory inside the .homebridge directory. Configuration parameters:

  • "server": "PUT THE ADDRESS OF THE LOCAL BLYNK SERVER HERE",
  • "appPort": "PUT THE PORT OF THE LOCAL BLYNK SERVER HERE, TIPICALLY 8443",
  • "username": "PUT THE VALUE OF THE USERNAME HERE",
  • "password": "PUT THE VALUE OF THE PASSWORD HERE",
  • "dashboardName": "PUT THE DASHBOARD NAME HERE",
  • "accessories": "PUT THE LIST OF ACCESSORIES THAT YOU WANT TO MAP TO HOMEKIT"

Look for a sample config in config.json example

Usage notes

  • The plugin currently works only on a local Blynk server and not with the cloud one made available by Blynk
  • You must create a Project within the Blynk app that will define the mapping between your hardware device, the server and the Blynk Widget

Getting Started

  • Select a platform on which to install the plugin (any platform that support node.js should work)
  • install homebridge (follow instruction) on https://www.npmjs.com/package/homebridge
  • install the blynk homebridge plugin: sudo npm install -g homebridge-blynk
  • create a config.json file in the .homebridge directory of the user that run homebridge (see example in https://github.com/ilcato/homebridge-blynk/blob/master/config.json)
  • start homebridge (and create an autostart file on the hosted platform)
  • For the config file: specify credentials and dashboard name of an existing dashboard on the referred local Blynk server assuming a switch within the dashboard specify in the accessories parameter of the config.json file: { "name": "SwitchD5", "widget": "Switch", "mode": "SWITCH", "caption": "Lamp 1", "pin": "D5" }

where:

name will be the accessory name from the HomeKit point of view widget must be "Switch" mode can be "SWITCH" or "PUSH" caption will be the name you should refer to from Siri pin is the pin to actuate

  • Use an HomeKit app to add the accessory to the iPhone/iPad, e.g.: MyHome

After that you can say to Siri:

"turn on lamp 1" and you are all set.

About

Homebridge plugin for the Blynk platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%