@Dmitriy, I see you have forked and made some pull requests for the homebridge-blynk repo.
I’ve installed Homebridge, connected via the app and all that.
But im having problems with the link between the action on the phone, and Blynk.
It verifies a connection to the accessory, and siri turns on Lamp 1 etc as per the example… but cant get anything to trigger in Blynk.
I am testing using a remote switch I created a while back.
The relay is on GPIO14/D5 and I have a SWITCH button widget on V1.
This is my config.js
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file. You can use this as a template for creating your own configuration file.",
"platforms": [
{
"platform": "Blynk",
"name": "Blynk",
"server": "192.168.1.2",
"httpsPort": "9443",
"token" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"dashboardName": "REMOTE SWITCHES",
"accessories": [
{
"name": "SwitchV1",
"widget": "Switch",
"mode": "SWITCH",
"caption": "Lamp 1",
"pin": "V1"
}
]
}
],
"accessories": [
]
}
Here are some logs:
Installs fine
[2/2/2017, 10:29:00 AM] Loaded plugin: homebridge-blynk
[2/2/2017, 10:29:00 AM] Registering platform 'homebridge-blynk.Blynk'
[2/2/2017, 10:29:00 AM] ---
Loads fine
[2/2/2017, 10:29:02 AM] ---
[2/2/2017, 10:29:02 AM] Loading 1 platforms...
[2/2/2017, 10:29:02 AM] [Blynk] Initializing Blynk platform...
[2/2/2017, 10:29:02 AM] [Blynk] Loading accessories...
[2/2/2017, 10:29:02 AM] [Blynk] Found: SwitchV1
[2/2/2017, 10:29:02 AM] [Blynk] Initializing platform accessory 'SwitchV1'...
I can sync fine
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
EventedHTTPServer Server listening on port 51826 +0ms
[2/2/2017, 10:29:02 AM] Homebridge is running on port 51826.
Here are the logs when I press the button off/on. Homebridge server sees the input.
EventedHTTPServer [::ffff:192.168.1.76] HTTP request: /characteristics +4s
HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge] Processing characteristic set: [{"aid":8,"iid":9,"value":1}] +1ms
Accessory [Homebridge] Setting Characteristic "On" to value 1 +0ms
EventedHTTPServer [::ffff:192.168.1.76] Muting event '8.9' notification for this connection since it originated here. +1ms
EventedHTTPServer [::ffff:192.168.1.76] HTTP Response is finished +0ms
EventedHTTPServer [::ffff:192.168.1.76] HTTP request: /characteristics +1s
HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge] Processing characteristic set: [{"aid":8,"iid":9,"value":0}] +6ms
Accessory [Homebridge] Setting Characteristic "On" to value 0 +0ms
EventedHTTPServer [::ffff:192.168.1.76] Muting event '8.9' notification for this connection since it originated here. +1ms
EventedHTTPServer [::ffff:192.168.1.76] HTTP Response is finished +1ms
Anything in there telling you what the problem is?