homebridge-harmony: [BUG] After 1.3.8 update, devicesToPublishAsAccessoriesSwitch not working
Describe the bug
After upgrading to 1.3.8, none of the devices listed under devicesToPublishAsAccessoriesSwitches are responsive. They appear in the iOS Home app correctly, but pressing the buttons does not do anything. (I’ve tried removing and re-adding the entire Homebridge Bridge from the iOS Home app, but the issue continues.) The same issue is true of the generalized mute switch under ‘publishGeneralMuteSwitch: true’
To Reproduce Add this to the config file:
"devicesToPublishAsAccessoriesSwitch": [
"Vizio TV|TV Volume Up;VolumeUp|100;VolumeUp|100;VolumeUp",
"Vizio TV|TV Volume Down;VolumeDown|100;VolumeDown|100;VolumeDown",
"Xfinity Box|Watch CNN;Number8|100;Number1|100;Number7|100;Select",
"Xfinity Box|Watch MSNBC;Number8|100;Number1|100;Number8|100;Select"]
Expected behavior When pushing the “Watch CNN” activity tile in iOS Home app, the programmed sequence of button commands should be sent to Harmony Hub. (Note: I’ve double-checked to make sure that the name of the devices are exactly as it appears in Harmony Hub. Also, this was working fine before the update and I have not changed any settings.)
Screenshots When launching Homebridge, the following error message shows up in the log: https://ibb.co/Hd4q1pc
(node:395) UnhandledPromiseRejectionWarning: Error: Cannot add a Service with the same UUID '0 00000DA-0000-1000-8000-0026BB765291' as another Service in this Accessory without also definin g a unique 'subtype' property.
at Accessory._this.addService (/usr/local/lib/node_modules/homebridge/node_modules/hap-nod ejs/src/lib/Accessory.ts:276:17)
at PlatformAccessory.addService (/usr/local/lib/node_modules/homebridge/src/platformAccess ory.ts:92:41)
at HarmonySubPlatform.readTVAccessories (/homebridge/node_modules/homebridge-harmony/harmo nySubPlatform.js:298:24)
at HarmonySubPlatform.readAccessories (/homebridge/node_modules/homebridge-harmony/harmony SubPlatform.js:158:58)
at /homebridge/nodemodules/homebridge-harmony/harmonyBase. is: 93:27
(node:395) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originate d either by throwing inside of an async function without a catch block, or by rejecting a prom ise which was not handled with .catch(). (rejection id: 1)
(node:395) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the f uture, promise rejections that are not handled will terminate the Node.js process with a non-z ero exit code.
IOS (please complete the following information):
- iOS Version 13.4.1
- Device: iPad Pro (2018)
- Homebridge Version: 1.1.0
- Homebridge Harmony Version: 1.3.8
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (7 by maintainers)
Perfect. It’s working perfectly again. Thanks for the quick help! 👍
I can reproduce, working on it
1.3.9 on its way, sorry 😃 You might need to restart twice, Ithe plugin should dleete the faulting service at first start, and will create it again at second start