planetk / homebridge-netatmo

This is a homebridge plugin for several netatmo devices
Apache License 2.0
108 stars 25 forks source link

Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory #66

Open aptonline opened 6 years ago

aptonline commented 6 years ago
Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: xxxxxxx
throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
 /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:264

Coming across the above error when adding the Netatmo plug-in. I'm specifically wanting to add HomeKit support for the WeatherStation as Energy is natively supported. see my config below:

        {
            "platform": "netatmo",
            "name": "netatmo platform",
            "ttl": 5,
            "auth": {
                "client_id": "xxxxxxx",
                "client_secret": "xxxxxxx",
                "username": "xxxxxxx",
                "password": "xxxxxxx",
                "deviceTypes": [
                    "weatherstation"
                ]
            }
        }

I thought it was because I have Netatmo already in place (and working) within homeassistant and somehow homebridge was seeing the fact I have it setup as a duplicate so I commented out all config for that in home assistant configuration.yaml etc and re-tested. Same issue.

I also created a separate dev.netatmo.com app just for homebridge and still getting the error.

I saw this issue was raised previously but was closed as user rebuilt their setup. Doesn't really help me as all working apart form this.

MattR2424 commented 3 years ago

Same issue. I believe it is because of this:

[10/3/2020, 8:10:28 PM] Initializing platform accessory 'undefined Netatmo Station'... [10/3/2020, 8:10:28 PM] Initializing platform accessory 'undefined Netatmo Module'... [10/3/2020, 8:10:28 PM] Initializing platform accessory 'undefined Netatmo Module'...

I have a weather station, rain gauge, and ourdoor sensor. Looks like the rain gauge and outdoor sensor are both being reported as 'undefined module'.

Change the names of all three to something completely different in the Netatmo app. Mine are RainMan, SunshineGuy, and BaseDude. Solved the issue for me.