Plugin for Homebridge to allow Blynk applications to be controlled throug Apple HomeKit.
Once you have a working homebridge
sudo npm install -g homebridge-blynk-platform
To expose your Blynk powered devices you have to configure the Homebridge to the location of your Blynk server.
"platforms": {
"platform": "BlynkPlatform",
"serverurl": "http://your.blynkserver.com:8080",
"pollerseconds": "20",
"devices": [
{
"manufacturer": "PeterWoj",
"name": "HabitController",
"token": "1e6aa4f587664ed74c8195842d2f1a8d",
"deviceId": "31225",
"discover": true
},
{
"manufacturer": "PeterWoj",
"name": "OutdoorController",
"token": "1e6aa4f587664ed74c8195842d2f1a8d",
"deviceId": "112233",
"discover": false,
"accessories": [
{
"model": "extension-cord",
"name": "Pergola Lights",
"pintype": "VIRTUAL",
"pinnumber": 2,
"type": "BUTTON"
},
{
"model": "extension-dimmer",
"name": "Dimmed Lights",
"pintype": "VIRTUAL",
"pinnumber": 2,
"type": "SLIDER",
"min": 0,
"max": 100
},
{
"model": "my-thermometer",
"name": "Dimmed Lights",
"pintype": "VIRTUAL",
"pinnumber": 2,
"type": "SLIDER",
"typeOf": "THERMOMETER_SENSOR",
"min": 0,
"max": 100
}
]
}
]
},
Once your configuration is in place startup Homebridge and to get your devices connected to Apple HomeKit.
Default HomeKit type for auto discovery is now an OUTLET.
Bug fixes to account for discovery on a device which has multiple accessories associated with it.
The 0.2.3 release...
The fine folks created a linter, so it is good to use one.
CI killed the version number, really I think it would be my fault.
Enable fetching from the Blynk application to configure accessories. For a device the parameter discover
was added to let the Platform know if it should discover available devices are read the configuration file. If { "discover": true }
is found then the accessories
are ignored if defined. If there is a change in settings from discover
being set to false from true, the accessoriesCache will need to be manually updated to avoid item duplication.
Addition of config.schema.json to allow for easier configuration through homebridge-config-ui-x.
Inlude a way to update the HomeKit if the switch state is changed with the Blynk application.
Format the configuration to allow an application to have multiple attached devices. Each attached device can be configured with multiple functions, provided each function is a switch.
Initial release with limited device support, only for switches. Supports only a single device attached to the Blynk application but can have multiple functions on the single device.