Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Add bridged accessory, same UUID #654

Closed
ncosper opened this issue Jun 7, 2016 · 5 comments
Closed

Cannot Add bridged accessory, same UUID #654

ncosper opened this issue Jun 7, 2016 · 5 comments

Comments

@ncosper
Copy link

ncosper commented Jun 7, 2016

From what I read it seems the UUID of an accessory is pulled from the name. I have an extremely simple setup and for some reason I am getting an error that the accessory has the same UUID as another accessory.
Here is my config
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"pin": "031-45-154"
},

"platforms": [
{
"platform": "HarmonyHub",
"name": "Outside Theater",
"ip_address": "10.0.0.10"

},{
"platform" : "HarmonyHub",
"name":"Living Room",
"ip_address": "10.0.0.8"
}
]
}

Log when attempting to run homebridge is:

[6/6/2016, 9:36:58 PM] Loaded plugin: homebridge-harmonyhub
[6/6/2016, 9:36:58 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[6/6/2016, 9:36:58 PM] ---
[6/6/2016, 9:36:58 PM] Loaded config.json with 0 accessories and 2 platforms.
[6/6/2016, 9:36:58 PM] ---
[6/6/2016, 9:36:58 PM] Loading 2 platforms...
[6/6/2016, 9:36:58 PM] [Outside Theater] Initializing HarmonyHub platform...
Using Logitech Harmony hub ip address from configuration
[6/6/2016, 9:36:58 PM] [Outside Theater] Connecting to Logitech Harmony remote hub...
[6/6/2016, 9:36:58 PM] [Living Room] Initializing HarmonyHub platform...
Using Logitech Harmony hub ip address from configuration
[6/6/2016, 9:36:58 PM] [Living Room] Connecting to Logitech Harmony remote hub...
[6/6/2016, 9:36:59 PM] [Living Room] Connected to Logitech Harmony remote hub
[6/6/2016, 9:36:59 PM] [Living Room] Fetching Logitech Harmony devices and activites...
[6/6/2016, 9:36:59 PM] [Living Room] Fetching Logitech Harmony activities...
[6/6/2016, 9:36:59 PM] [Outside Theater] Connected to Logitech Harmony remote hub
[6/6/2016, 9:36:59 PM] [Outside Theater] Fetching Logitech Harmony devices and activites...
[6/6/2016, 9:36:59 PM] [Outside Theater] Fetching Logitech Harmony activities...
[6/6/2016, 9:36:59 PM] [Outside Theater] Found activities:
Watch TV
Watch Fire TV
PowerOff
[6/6/2016, 9:36:59 PM] [Living Room] Found activities:
Internet Radio
PS3
PowerOff
Smart TV Control
Watch TV
Play Wii u
[6/6/2016, 9:36:59 PM] [Outside Theater] Initializing platform accessory 'Watch Fire TV'...
[6/6/2016, 9:36:59 PM] [Outside Theater] Initializing platform accessory 'Watch TV'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Internet Radio'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'PS3'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Play Wii u'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Smart TV Control'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Watch TV'...
[6/6/2016, 9:37:00 PM] [Living Room] Unable to get current activity with error [Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 4a9bfe00-d81e-46fb-90e3-98290b11f25d]

Thanks for the help!

@KhaosT
Copy link
Contributor

KhaosT commented Jun 7, 2016

This is a plugin issue. In your case both “Outside Theater” and “Living Room” tries to add an accessory with the name “Watch TV”. Since the plugin uses the name to generate UUID, it creates a collision so the add failed. Please ask the plugin developer to figure out a way to handle the case (like add a name space prefix before the activity name).

Best Wishes,
Tian

On Jun 6, 2016, at 9:37 PM, ncosper notifications@github.com wrote:

From what I read it seems the UUID of an accessory is pulled from the name. I have an extremely simple setup and for some reason I am getting an error that the accessory has the same UUID as another accessory.
Here is my config
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"pin": "031-45-154"
},

"platforms": [
{
"platform": "HarmonyHub",
"name": "Outside Theater",
"ip_address": "10.0.0.10"
},{
"platform" : "HarmonyHub",
"name":"Living Room",
"ip_address": "10.0.0.8"
}
]
}

Log when attempting to run homebridge is:

[6/6/2016, 9:36:58 PM] Loaded plugin: homebridge-harmonyhub
[6/6/2016, 9:36:58 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[6/6/2016, 9:36:58 PM] ---
[6/6/2016, 9:36:58 PM] Loaded config.json with 0 accessories and 2 platforms.
[6/6/2016, 9:36:58 PM] ---
[6/6/2016, 9:36:58 PM] Loading 2 platforms...
[6/6/2016, 9:36:58 PM] [Outside Theater] Initializing HarmonyHub platform...
Using Logitech Harmony hub ip address from configuration
[6/6/2016, 9:36:58 PM] [Outside Theater] Connecting to Logitech Harmony remote hub...
[6/6/2016, 9:36:58 PM] [Living Room] Initializing HarmonyHub platform...
Using Logitech Harmony hub ip address from configuration
[6/6/2016, 9:36:58 PM] [Living Room] Connecting to Logitech Harmony remote hub...
[6/6/2016, 9:36:59 PM] [Living Room] Connected to Logitech Harmony remote hub
[6/6/2016, 9:36:59 PM] [Living Room] Fetching Logitech Harmony devices and activites...
[6/6/2016, 9:36:59 PM] [Living Room] Fetching Logitech Harmony activities...
[6/6/2016, 9:36:59 PM] [Outside Theater] Connected to Logitech Harmony remote hub
[6/6/2016, 9:36:59 PM] [Outside Theater] Fetching Logitech Harmony devices and activites...
[6/6/2016, 9:36:59 PM] [Outside Theater] Fetching Logitech Harmony activities...
[6/6/2016, 9:36:59 PM] [Outside Theater] Found activities:
Watch TV
Watch Fire TV
PowerOff
[6/6/2016, 9:36:59 PM] [Living Room] Found activities:
Internet Radio
PS3
PowerOff
Smart TV Control
Watch TV
Play Wii u
[6/6/2016, 9:36:59 PM] [Outside Theater] Initializing platform accessory 'Watch Fire TV'...
[6/6/2016, 9:36:59 PM] [Outside Theater] Initializing platform accessory 'Watch TV'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Internet Radio'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'PS3'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Play Wii u'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Smart TV Control'...
[6/6/2016, 9:37:00 PM] [Living Room] Initializing platform accessory 'Watch TV'...
[6/6/2016, 9:37:00 PM] [Living Room] Unable to get current activity with error [Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 4a9bfe00-d81e-46fb-90e3-98290b11f25d]

Thanks for the help!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #654, or mute the thread https://github.com/notifications/unsubscribe/ABpU4DZpHOwjEYKSB2gEsqOvACg4CQB6ks5qJPWTgaJpZM4IvjMJ.

@ncosper
Copy link
Author

ncosper commented Jun 7, 2016

ahh... that makes some sense. I'll just rename one of the activities, hopefully that fixes it. thanks

@ncosper
Copy link
Author

ncosper commented Jun 7, 2016

that did fix that problem. Thank you

@ncosper ncosper closed this as completed Jun 7, 2016
@ryanafdahl
Copy link

I'm not sure what you meant by " activities " Where would I change this to resolve the conflict?

@antoniosap
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants