homebridge-harmony: [BUG] Error: Cannot add a bridged Accessory
Hey and goog morning,
I now tried again to update to V 1.0. The good thing is that the bridge is running, but not with all features, the switches are missing. My config is:
{
"platform": "HarmonyHubWebSocket",
"name": "Media",
"hubIP": "192.168.XXX.XXX",
"TVPlatformMode": true,
"mainActivity": "Apple TV",
"switchAccessories": true,
"showTurnOffActivity": "inverted",
"devicesToPublishAsAccessoriesSwitch": [
"Beleuchtung TV;PowerOn",
"Beleuchtung TV;PowerOff",
"Yamaha AVR;VolumeUp",
"Yamaha AVR;VolumeDown",
"Beleuchtung Theke;PowerToggle"
],
"numberOfCommandsSentForVolumeControl": 4,
"cleancache": false
},
In addition I saw those errors in the log:
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-TV
[2019-8-22 07:52:46] [Media] (Media)INFO - configuring Main TV Service
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating TV Service
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - Radio
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - Fire TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - Airplay
[2019-8-22 07:52:46] [Media] (Media)INFO - Configuring Main Activity Apple TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating TV Speaker Service
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - Apple TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Creating Input Service - Webradio
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : TV
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service TV/TV
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-PowerOff
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : PowerOff
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service PowerOff/PowerOff
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-Radio
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : Radio
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service Radio/Radio
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-Fire TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : Fire TV
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service Fire TV/Fire TV
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-Airplay
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : Airplay
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service Airplay/Airplay
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-Apple TV
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : Apple TV
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service Apple TV/Apple TV
[2019-8-22 07:52:46] [Media] INFO - Adding Accessory : Media-Webradio
[2019-8-22 07:52:46] [Media] (Media)INFO - Discovered Activity : Webradio
[2019-8-22 07:52:46] [Media] INFO - Creating Switch Service Webradio/Webradio
[2019-8-22 07:52:46] [Media] WARNING - setupFoundAccessories - TV accessory added in your bridge, if another plugin is exposing a TV accessory this one might not be visible in your remote widget
(node:32148) UnhandledPromiseRejectionWarning: Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 487d4f8b-5b8d-46d0-b579-9f76a783e239
at Bridge.Accessory.addBridgedAccessory (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:268:13)
at Bridge.Accessory.addBridgedAccessories (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:299:10)
at Server._handleRegisterPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:490:16)
at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:41:10)
at API.emit (events.js:193:13)
at API.registerPlatformAccessories (/usr/lib/node_modules/homebridge/lib/api.js:171:8)
at HarmonyBase.addAccessories (/usr/lib/node_modules/homebridge-harmony/harmonyBase.js:803:25)
at HarmonyBase.setupFoundAccessories (/usr/lib/node_modules/homebridge-harmony/harmonyBase.js:195:14)
at HarmonySubPlatform.readAccessories (/usr/lib/node_modules/homebridge-harmony/harmonySubPlatform.js:145:22)
at getHomeControlsAccessories.then.responseHome (/usr/lib/node_modules/homebridge-harmony/harmonyBase.js:140:27)
at runNextTicks (internal/process/task_queues.js:52:5)
at processImmediate (internal/timers.js:416:9)
(node:32148) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:32148) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I already stopped the bridge, cleaned up the cachedAccessories, restarted, but still the same …
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 44 (16 by maintainers)
Everything is fine again! Thank you!
I got no change at all … after reboot I will always getting this error:
Without updating this package I will have no trouble …
And I chage the config to the Version for V 1.0.4 before I did the update. Update made, twice a rrestart, homebridge broken …
Also removing the plugin and removing the config for it will not fix the bridge …