ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
901 stars 91 forks source link

Still having to press link button on Hue Bridge every time #1071

Closed EMB808 closed 2 years ago

EMB808 commented 2 years ago

Issue

I've installed the Homebridge-Hue plugin and encountered the issue whereby I was having to press the link button every time I restart the server. I've followed the information for a fix by editing config.json with the details provided for the newly created Hue user, but on restart I still have the press the link button on the bridge. Please can you help?

Log Messages

[05/01/2022, 11:48:03] [homebridge-hue] This plugin is taking long time to load and preventing Homebridge from starting. See https://git.io/JtMGR for more info.
[05/01/2022, 11:48:14] [Hue] Philips hue: created user - please edit config.json and restart homebridge
  "platforms": [
    {
      "platform": "Hue",
      "users": {
        "xxxxxx": "xxxxxx"
      }
    }
  ]
[05/01/2022, 11:48:15] [Hue] Philips hue: 1 accessories
[05/01/2022, 11:48:15] [Hue] masked debug info dumped to /var/lib/homebridge/homebridge-hue.json.gz
[05/01/2022, 11:48:15] Initializing platform accessory 'Philips hue'...
[05/01/2022, 11:48:15] [Hue] Philips hue: 2 services
Setup Payload:
X-HM://00243EWHUKKND
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 377-60-770 │     
    └────────────┘     

[05/01/2022, 11:48:15] Homebridge v1.3.9 (HAP v0.9.8) (Homebridge 89DC) is running on port 51860.
[05/01/2022, 11:48:15] [Hue] Philips hue: event stream connected to https://1xxxxxxxx/eventstream/clip/v2

My plugin information looks like:

{
    "name": "Hue",
    "anyOn": true,
    "effects": true,
    "hosts": [
        "XXXXXXX"
    ],
    "nativeHomeKitLights": true,
    "nativeHomeKitSensors": true,
    "resource": true,
    "platforms": [
        {
            "platform": "Hue",
            "users": {
                "XXXXXXXXXXXX": "YYYYYYYYYY"
            }
        }
    ],
    "platform": "Hue"
}

Debug Files

ebaauw commented 2 years ago

Did you copy/paste the info? Note that both values are case-sensitive.

mkunzmann commented 2 years ago

You pasted the info into the wrong location in your config. just paste the user below the already existing platform Hue line.

EMB808 commented 2 years ago

That's brilliant. Thanks for your help, that resolved it, code in the wrong place - still a newbie to this so help is very much appreciated!