grzegorz914 / homebridge-meraki-control

Homebridge plugin for Meraki devices using RESTFull API, publish as independent external platform accessory.
MIT License
0 stars 3 forks source link

Failing on [Meraki] Device Name Missing #2

Closed lorinw closed 3 years ago

lorinw commented 3 years ago

I am getting '[Meraki] Device Name Missing' on load

Loading output:

Loaded plugin 'homebridge-meraki-control'
[12/28/2020, 7:50:48 AM] Registering platform 'homebridge-meraki-control.Meraki'
[Meraki] Initializing Meraki platform...
[Meraki] didFinishLaunching
[Meraki] Device Name Missing

Config:

[
    {
        "platform": "Meraki",
        "devices": [
            {
                "device_name": "Meraki MR52",
                "host": "https://foo.meraki.com",
                "apiKey": "foo",
                "organizationId": "foo",
                "networkId": "foo",
                "wlanControl": 1,
                "refreshInterval": 10,
                "manufacturer": "Manufacturer",
                "modelName": "Model",
                "serialNumber": "Serial Number",
                "firmwareRevision": "Firmware Revision"
            }
        ]
    }
]

Meraki API Device Json Output

  {
    "name": "Meraki MR52",
    "serial": “foo”,
    "mac": “foo”,
    "networkId": “foo”,
    "model": "MR52",
    "address": “foo",
    "lat": foo,
    "lng": foo,
    "notes": “foo”,
    "tags": [],
    "lanIp": "192.168.x.x”,
    "configurationUpdatedAt": "2020-12-28T14:42:38Z",
    "firmware": "wireless-27-5-10",
    "url": “foo”
  }
grzegorz914 commented 3 years ago

Your config is wrong, use name instead device_name


[
    {
        "platform": "Meraki",
        "devices": [
            {
                "name": "Meraki MR52",
                "host": "https://foo.meraki.com",
                "apiKey": "foo",
                "organizationId": "foo",
                "networkId": "foo",
                "wlanControl": 1,
                "refreshInterval": 10,
                "manufacturer": "Manufacturer",
                "modelName": "Model",
                "serialNumber": "Serial Number",
                "firmwareRevision": "Firmware Revision"
            }
        ]
    }
]
``` `
lorinw commented 3 years ago

Sorry I changed to device_name for troubleshooting. I changed back to name and I get the same results.

grzegorz914 commented 3 years ago

Are U using HOOBS?

lorinw commented 3 years ago

Yes version 3.3.1

grzegorz914 commented 3 years ago

This is specific HOOBS problem, if U can move to Homebridge and Config-UI-X for 100% compatibility. https://github.com/homebridge/homebridge-raspbian-image/wiki/How-to-migrate-from-HOOBS-to-Homebridge

lorinw commented 3 years ago

You are right. I tested without HOOBS and it worked with no issues.

grzegorz914 commented 3 years ago

I close this as solved.