ilcato / homebridge-blynk

Homebridge plugin for the Blynk platform
MIT License
20 stars 31 forks source link

multiple blynk devices #27

Open smackflad opened 5 years ago

smackflad commented 5 years ago

Is it possible to add multiple Blynk devices into homebridge? for example I have a device with a temperature sensor and another device with a switch, how can I use both of them with homebridge?

theOracle1984 commented 4 years ago

i just got the homebridge working with my local Blynk server.. (D1 mini microconttroller with a DHT22 connected to Blynk server and homebridge connected to the local Blynk server) I already made a different Raspberry pi homebridge to get other devices connected to my Apple Home app... Next step for me would be getting all my local Blynk server devices (22) and other IoT devices connected in one Homebridge..

I dont know if you are still trying to get your question answered or solved? The answer appears to be yes... maybe i could help?

kritch83 commented 4 years ago

I also am trying to get multiple blynk devices to work. Any documentation on this or how to list the separate devices in the json?

kritch83 commented 4 years ago

For all those with similar problems, you need to go into your Homebridge UI and under "Settings", then select "Clear Cache" and "Reset" once your config file is completed. That clears the cached accessories and resets the homebridge accessories. You also need to go into your "Home" app on your IOS device and remove the bridge and re-add it or you will get conflict errors when homebridge tries to start. Here is a example of my config json on my private blynk server:

{ "bridge": { "name": "Blynk Bridge", "username": "0E:E2:E8:34:31:D9", "port": 51829, "pin": "240-21-376" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" }, { "platform": "Blynk", "name": "Aquarium", "serverurl": "http://localhost:8080", "token": "token here", "pollerperiod": "60", "accessories": [ { "name": "Aquarium Light", "widget": "Switch", "mode": "SWITCH", "caption": "Aquarium Light", "pin": "V1" } ] }, { "platform": "Blynk", "name": "Grow Light", "serverurl": "http://localhost:8080", "token": "token here", "pollerperiod": "60", "accessories": [ { "name": "Grow Light", "widget": "Switch", "mode": "SWITCH", "caption": "Grow Light", "pin": "V4" } ] } ] }