Closed jsiegenthaler closed 3 years ago
As far as I'm aware, the icon corresponding to the category only shows when newly adding the accessory. Can you please post a screenshot?
the icon appears when newly adding and stays after the accessory is added. FWIW: my plugin works very much the same as yours: it auto-discovers the accessories and exposes them, and I give the user the option of TV or audio receiver. Let me do a screenshot later...
Cool, hadn't seen that before. The only reason I expose the zone player as TV is for the input selection, but that just continues to work. I think it would make most sense to use a SPEAKER category, wouldn't it? Or HOMEPOD, just to annoy people.
Somehow the setting is locked in HomeKit after pairing. When I change it in the plugin, Home doesn't pick up the new category. You need to remove the external accessory from HomeKit and re-add.
Still, category seems to do nothing for bridged accessories.
I honestly cannot say if category SPEAKER could be used: I only tried the TV categories: TELEVISION, AUDIO_RECEIVER, TV_SET_TOP_BOX and TV_STREAMING_STICK, and notice no difference when switching between them.
I'll try it and see what happens... ...5 min later...
It appears that Category controls the icon only... and I am guessing that it makes a difference to Siri control, as Siri would understand it to be a Speaker now instead of a TV.
How about making it a configurable item, allowing the user to choose between Television, AudioReceiver and Speaker? And I'd recommend letting people test it for a while... I'm happy to be one of the testers....
By the way: my plugin where I did my testing is an External Accessory.
Not a fan of another config.json
setting.
The TV accessory is external (not bridged); the bridged accessories don't show the category.
OK. Continued testing by me shows that Category=Speaker has no apparent adverse impact at all. And the tile icon is a much better fit to the Sonos speakers. So I recommend changing to Category = Speaker ;)
Hi, I wanted to help by forking and trying it out, but I cannot run this plugin in my Win10 dev environment: npm link throws errors.
So I thought I'd ask if you'd consider the possibility of making a alpha or beta version with the category changed so I can test it?
OK, I created a PR for you
v1.2.1 uses SPEAKER. Note that you will need to remove the external accessory and re-pair it to HomeKit, to make it show with a speaker icon in Home.
Thanks. I found that a Homebridge restart was enough... i see the accessory the Serial Number is the Sonos MAC prefixed with "TV". That prefix should now be changed to "SPKR"
Why? It's still a TV accessory with a Television service. We just changed the accessory category, to show a different icon.
Issue
This is a great plugin and written very well.
I'd love the option to have my ZP Speakers be displayed as an Audio Receiver instead of a Television, as the image on the Home app tile fits their purpose much better as a "radio". You could make this a user-configurable option.... for those that prefer TV vs Audio Receiver
To do this you only need to change the Accessory Category in this file: https://github.com/ebaauw/homebridge-zp/blob/master/lib/ZpAccessory.js
Line 181 is the line that sets the category:
The category that shows the device as an audio receiver is AUDIO_RECEIVER I have been making my own plugin where the user can change the category between Television, AudoReceiver and SetTopBox, so I can report from experience that all other functionality stays working exactly the same. The category controls primarily the icon on the Home tile.