normen / homebridge-bravia

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)
139 stars 26 forks source link

[Suggestion] Publish all TVs as external accessories #102

Closed MattGerrand closed 4 years ago

MattGerrand commented 4 years ago

Hey, great work on this plugin, it's really amazing!

One thing I have noticed is that if you add multiple TVs only one will show up in the remote widget in control centre, and with further investigation this is because HomeKit only expects one TV per bridge. So, just a suggestion, if it's possible to use API.publishExternalAccessories instead of API.registerPlatformAccessories like other plugins have been (such as homebridge-samsung-tizen or homebridge-harmony) it would solve this issue. Also I know that this would break a few configurations that people already have set up so if this is possible you could add an option in the config like homebridge-harmony did such as "publishAllTVAsExternalAccessory": true?

All good if this isn't possible as it isn't a big issue, just sharing my thoughts!

normen commented 4 years ago

I see, thanks for the info, very interesting. I don't think I'll get around to doing that any time soon but I'll leave this open as a reminder or of anyone wants to take a shot.

SlasherKG commented 4 years ago

I know you said this isn't a high priority, but yours seems to be the only plugin that is working currently that I could find, and it would be great to get both TVs working fully. If not, is there a way to force the 1st TV to work with the Control Center remote and leave the 2nd one off (I really only need the remote control part for my living room as my bedroom physical remote is always nearby)?

normen commented 4 years ago

No there isn't. But a PR is welcome.

normen commented 4 years ago

If not, is there a way to force the 1st TV to work with the Control Center remote and leave the 2nd one off (I really only need the remote control part for my living room as my bedroom physical remote is always nearby)?

For "disabling" or "bypassing" the TV remote functionality the solution suggested in this Issue is probably the only one, I don't see a way to disable homebridges behavior of automatically exposing TV accessories as remotes. What you can always do though is simply set up a second homebridge instance, with the 100 device limit per bridge in HomeKit it makes sense anyway plus you'll see a general performance improvement by splitting the work.

normen commented 4 years ago

v2.3 allows publishing select TVs as external accessories

normen commented 4 years ago

..but apparently theres more to it.. :) I guess I have to set the external accessory type somewhere.

normen commented 4 years ago

Can anyone confirm or deny this works for the multiple TV issue?