homebridge-hue: homebridge-hue v0.11.55 fails to apply API key it just created

Issue

After the last Update all accessories are gone and i receive the error 4(see log)

Thanks Robert

Log Messages

[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: Philips BSB001 bridge v01043064, api v1.16.0
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: created user - please edit config.json and restart homebridge
  "platforms": [
    {
      "platform": "Hue",
      "users": {
        "xxx": "xxx"
      }
    }
  ]
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: bridge request 2: get /
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: error: 4 method, GET, not available for resource, /
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: 
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: 1 accessories
[2/23/2020, 2:24:25 AM] [Hue] masked debug info dumped to /var/lib/homebridge/homebridge-hue.json.gz
[2/23/2020, 2:24:25 AM] [Hue] Initializing platform accessory 'Philips Hue'...
[2/23/2020, 2:24:25 AM] [Hue] Philips Hue: 3 services


HomeBridge Config
{
    "bridge": {
        "name": "Homebridge E725",
        "username": "0E:61:20:C6:E7:2C",
        "port": 51872,
        "pin": "437-96-154"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "Hue",
            "anyOn": true,
            "forceCt": true,
            "hosts": [
                "192.168.178.45"
            ],
            "lights": true,
            "nativeHomeKitLights": true,
            "nativeHomeKitSensors": true,
            "nupnp": true,
            "resource": true,
            "platform": "Hue"
        }
    ]
}

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

~~This appears to be an issue with your Hue bridge. Can you still see your lights and accessories in the Hue app? If so, please capture and attach a full debug log file, see https://github.com/ebaauw/homebridge-hue#debug-log-file.~~

EDIT

It’s a bug in homebridge-hue alright. It fails to apply the API key it just created. My bad, I commented out that line of code during testing and failed to restore it. Fix will be in next version.

For now: if you edit config.json as instructed, adding the bridgeid and API key under `“users”, homebridge-hue will start normally next time. And it won’t ask you to press the link button.