peterwoj / homebridge-blynk-platform

homebridge plugin to use Blynk
MIT License
10 stars 2 forks source link

All accessories are "Wojstead Button" in HomeKit #38

Closed kritch83 closed 3 years ago

kritch83 commented 3 years ago

Trying to get the temperature sensor accessory to work in the Blynk platform but having no luck. I ended up resetting my whole Homebridge and Blynk Platform & now I'm having issues adding my accessories. Even those I have all the fields filled in, it is defaulting to the platform default config it seems. Every accessory shows up as "Wojstead Button" in HomeKit. It recognizes the type as outlet or light but that it. I've tried moving around the platform config options in different arrangements but no luck. Logs show it's complaining about a label. Thoughts? I'm out of ideas to try.

One other question... in the config when it asks for the field "deviceId", which ID does that refer to on the blink server? If I go into my Blynk Server admin page, under user profile, there are several IDs:

or is it just a unique number you set in Homebridge whatever you want? Ive tried mixing and matching with no luck.

Also the "Name" field, is that required to be same as your Blynk project or is that just what is shown in HomeKit?

Thanks!!!!

Here is my config & log: Config:

 {
    "mdns": {
        "interface": "10.32.1.1"
    },
    "bridge": {
        "name": "Homebridge",
        "username": "0E:65:3A:XXXXXX",
        "port": 50XXX,
        "pin": "829-XXXXXX",
        "bind": [
            "enp0s25"
        ],
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "none",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "platform": "BlynkPlatform",
            "serverurl": "http://10.32.1.1:8080",
            "pollerseconds": 5,
            "devices": [
                {
                    "name": "Soldering Iron",
                    "token": "My Token",
                    "deviceId": 113,
                    "manufacturer": "kirtch2020",
                    "discover": false,
                    "accessories": [
                        {
                            "model": "SI01",
                            "name": "Soldering Iron",
                            "pintype": "VIRTUAL",
                            "pinnumber": 0,
                            "type": "BUTTON",
                            "typeOf": "OUTLET"
                        }
                    ]
                },
                {
                    "name": "Aquarium V3",
                    "token": "My Token",
                    "deviceId": 114,
                    "manufacturer": "kirtch2020",
                    "discover": false,
                    "accessories": [
                        {
                            "model": "AL01",
                            "name": "Aquarium Light",
                            "pintype": "VIRTUAL",
                            "pinnumber": 1,
                            "type": "BUTTON",
                            "typeOf": "LIGHTBULB"
                        }
                    ]
                },
                {
                    "name": "Greenhouse",
                    "token": "My Token",
                    "deviceId": 115,
                    "manufacturer": "kirtch2020",
                    "discover": false,
                    "accessories": [
                        {
                            "model": "GL01",
                            "name": "Grow Light",
                            "pintype": "VIRTUAL",
                            "pinnumber": 14,
                            "type": "BUTTON",
                            "typeOf": "LIGHTBULB"
                        }
                    ]
                },
                {
                    "name": "Smart Switch",
                    "token": "My Token",
                    "deviceId": 116,
                    "manufacturer": "kritch2020",
                    "discover": false,
                    "accessories": [
                        {
                            "model": "SO101",
                            "name": "Smart Outlet1",
                            "pintype": "VIRTUAL",
                            "pinnumber": 0,
                            "type": "BUTTON",
                            "typeOf": "OUTLET"
                        }
                    ]
                },
                {
                    "name": "Ambiant",
                    "token": "My Token",
                    "deviceId": 117,
                    "manufacturer": "kritch2020",
                    "discover": false,
                    "accessories": [
                        {
                            "model": "RT01",
                            "name": "Temperature",
                            "pintype": "VIRTUAL",
                            "pinnumber": 0,
                            "typeOf": "TEMPERATURE_SENSOR"
                        }
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:B1:14:35:XXXX",
                "port": 551XX
            }
        },
        {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "token",
                "cookies": "cookie",
                "apiKey": "api key"
            },
            "fanDurationMinutes": 480,
            "options": [
                "Thermostat.Disable.09AA01AF2XXXXXXX",
                "HomeAway.AsOccupancySensor",
                "HomeAway.Disable.c5e37950-c57bXXXXXXXXXXX",
                "Thermostat.SeparateBuiltInTemperatureSensor.Enable",
                "Thermostat.Eco.Disable",
                "Thermostat.SeparateBuiltInHumiditySensor.Enable"
            ],
            "_bridge": {
                "username": "0E:F7:CB:6B:XXXX",
                "port": 567XX
            },
            "platform": "Nest"
        },
        {
            "email": "my email",
            "password": "password",
            "name": "myQ",
            "_bridge": {
                "username": "0E:39:E7XXXXXX",
                "port": 42XXX
            },
            "platform": "myQ"
        }
    ]
}

Logs with reboot:

[6/11/2021, 8:04:13 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -D [6/11/2021, 8:04:13 AM] [HB Supervisor] Started Homebridge v1.3.4 with PID: 11005 Initializing HAP-NodeJS v0.9.4... [6/11/2021, 8:04:14 AM] Loaded config.json with 0 accessories and 4 platforms. [6/11/2021, 8:04:14 AM] Loaded 0 cached accessories from cachedAccessories. [6/11/2021, 8:04:14 AM] --- [6/11/2021, 8:04:14 AM] Loaded plugin: homebridge-blynk-platform@0.2.6 [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-blynk-platform.BlynkPlatform' [6/11/2021, 8:04:14 AM] --- [6/11/2021, 8:04:14 AM] Loaded plugin: homebridge-config-ui-x@4.41.1 [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-config-ui-x.config' [6/11/2021, 8:04:14 AM] --- [6/11/2021, 8:04:14 AM] Loaded plugin: homebridge-myq@2.6.2 [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-myq.myQ' [6/11/2021, 8:04:14 AM] --- [6/11/2021, 8:04:14 AM] Loaded plugin: homebridge-nest@4.5.3 [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-nest.Nest' [6/11/2021, 8:04:14 AM] --- [6/11/2021, 8:04:14 AM] Loading 4 platforms... [6/11/2021, 8:04:14 AM] [Config] Initializing config platform... [6/11/2021, 8:04:14 AM] [Config] Running in Service Mode [6/11/2021, 8:04:14 AM] [BlynkPlatform] Initializing BlynkPlatform platform... [6/11/2021, 8:04:14 AM] [BlynkPlatform] Initializing child bridge 0E:B1:14:35:C6:4B [6/11/2021, 8:04:14 AM] [Nest] Initializing Nest platform... [6/11/2021, 8:04:14 AM] [Nest] Initializing child bridge 0E:F7:CB:6B:73:68 [6/11/2021, 8:04:14 AM] [myQ] Initializing myQ platform... [6/11/2021, 8:04:14 AM] [myQ] Initializing child bridge 0E:39:E7:D0:27:B2 Preparing Advertiser for 'Homebridge D17E' using bonjour-hap backend! Setup Payload: X-HM://0024UB1LZYMAH Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 829-30-407 │     
└────────────┘     

Starting to advertise 'Homebridge D17E' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] Homebridge v1.3.4 (Homebridge) is running on port 51277. Initializing HAP-NodeJS v0.9.4... Initializing HAP-NodeJS v0.9.4... Initializing HAP-NodeJS v0.9.4... [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Launched child bridge with PID 11229 [6/11/2021, 8:04:14 AM] [Nest] Launched child bridge with PID 11234 [6/11/2021, 8:04:14 AM] [myQ] Launched child bridge with PID 11236 [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-blynk-platform.BlynkPlatform' [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Loaded homebridge-blynk-platform v0.2.6 child bridge successfully [6/11/2021, 8:04:14 AM] Loaded 4 cached accessories from cachedAccessories.0EB11435C64B. [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Adding accessory: undefined [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-nest.Nest' [6/11/2021, 8:04:14 AM] [Nest] Loaded homebridge-nest v4.5.3 child bridge successfully [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] addWidget found: WojStead made a BUTTON(0) named missing label here.... on pin V0 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Adding accessory: undefined [6/11/2021, 8:04:14 AM] Registering platform 'homebridge-myq.myQ' [6/11/2021, 8:04:14 AM] [myQ] Loaded homebridge-myq v2.6.2 child bridge successfully [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] addWidget found: WojStead made a BUTTON(0) named missing label here.... on pin V1 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Adding accessory: undefined [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] addWidget found: WojStead made a BUTTON(0) named missing label here.... on pin V14 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Adding accessory: undefined [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] addWidget found: WojStead made a BUTTON(0) named missing label here.... on pin V0 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Adding accessory: undefined [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] addWidget skipped item: undefined is a undefined [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Checking if config is ready: waiting for -> 5 Preparing Advertiser for 'homebridge-blynk-platform B37B' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] BlynkPlatform has finishing launching. [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Switch Wojstead Button has been created [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] PlatformAccessory: identified Wojstead Button(OUTLET) - 0 [c0b793bb-e180-41c5-8251-c7ca0666a91a] seed: 0-kirtch2020-missing label here....-VIRTUAL-0 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Wojstead Button is a OUTLET [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] OUTLET Wojstead Button has been attached. [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Switch Wojstead Button has been created [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] PlatformAccessory: identified Wojstead Button(LIGHTBULB) - 0 [62684866-eb62-41fd-ba5f-1a3cd66c7d1d] seed: 0-kirtch2020-missing label here....-VIRTUAL-1 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Wojstead Button is a LIGHTBULB [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] LIGHTBULB Wojstead Button has been attached. [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Switch Wojstead Button has been created [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] PlatformAccessory: identified Wojstead Button(LIGHTBULB) - 0 [79dbb056-883d-4f3d-b1f1-5eb982872fdf] seed: 0-kirtch2020-missing label here....-VIRTUAL-14 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Wojstead Button is a LIGHTBULB [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] LIGHTBULB Wojstead Button has been attached. [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Switch Wojstead Button has been created [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] PlatformAccessory: identified Wojstead Button(OUTLET) - 0 [6b9cb991-f34d-438e-b966-9fcef6cc0b9c] seed: 0-kritch2020-missing label here....-VIRTUAL-0 [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] Wojstead Button is a OUTLET [6/11/2021, 8:04:14 AM] [homebridge-blynk-platform] OUTLET Wojstead Button has been attached. Starting to advertise 'homebridge-blynk-platform B37B' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] Homebridge v1.3.4 (homebridge-blynk-platform) is running on port 55188. [6/11/2021, 8:04:14 AM] Loaded 5 cached accessories from cachedAccessories.0EF7CB6B7368. [6/11/2021, 8:04:14 AM] Loaded 1 cached accessories from cachedAccessories.0E39E7D027B2. Preparing Advertiser for 'myQ ECF8' using bonjour-hap backend! Starting to advertise 'myQ ECF8' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] Homebridge v1.3.4 (myQ) is running on port 42031. Preparing Advertiser for 'Nest 8ADB' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] [Nest] Fetching Nest devices. [6/11/2021, 8:04:14 AM] [Nest] Authenticating via Google. Starting to advertise 'Nest 8ADB' using bonjour-hap backend! [6/11/2021, 8:04:14 AM] Homebridge v1.3.4 (Nest) is running on port 57968. [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Checking if config is ready: waiting for -> 0 [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Checking if accessories have been removed to clean up cache. [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Committing defined accessory(Wojstead Button) to cache [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Committing defined accessory(Wojstead Button) to cache [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Committing defined accessory(Wojstead Button) to cache [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Committing defined accessory(Wojstead Button) to cache [6/11/2021, 8:04:15 AM] [homebridge-blynk-platform] Poller will refresh setting for 4 item(s).

peterwoj commented 3 years ago

Attempted to bring consistency in configs.... Beta should be in good shape with the configs right now. I was looking looking for a config key named label instead of name

Thank you for all of the details!