argh - it appears that a change by sony, sometime since I wrote the first version, has made it that some of the services will only respond when the device is on. That creates an issue for some of the services since I need information from the service to dynamically create the channels for the device. Current example is audio - I need to contact the device audio service to find out what audio channels are available (headphone, speaker, etc). If the device isn’t on, the audio service doesn’t respond and I can’t setup those channels.
That creates the problem that if you restart openhab and the device isn’t on - those channels will suddenly disappear even though they are valid once the device is on.
The ONLY way I can think to get around this is to go the zwave route and start creating thing definitions with specific channel setups for all the various devices (using the generic one as a default device when we don’t have a specific definition). I really didn’t want to do that because, like zwave, there is a ton of devices the binding supports and I don’t have the time to manage creating every little device.
The generic scalar device would still be the default if no specific device setup was found (and it will continue with it’s dynamic creation).
So here’s what I was thinking about doing. We’ll create device definitions from this beta group as well as we can (I’ll try to publish [later on]what you’ll need to give me to have it included). I’ll furthermore create a special xml registry that you can define/load your own definitions as well from some local files (this will allow new models to be defined without really having to change the binding each time).
Here’s an example:
<description>Sony Bravia XBR-X830C TV</description>
... the various channel definitions specific to the 830C
<config-description-ref uri="thing-type:sony:scalarconfig" />
Note that I’m using the lower case “x” as a wildcard since TVs generally have some model format where the screen size is part of it (and usually screen size doesn’t matter from a channel perspective).
What do you all think?