This binding supports Sony TVs, Blurays, BDVs, AVRs, Soundbars and Wireless Speakers. Please note that low end devices generally are not supported (they either do not have a network connection or do not have the services running on the device to support the binding) - there is NO list of what is not supported (sorry). Eventually I’ll start creating a list of known devices - but for now there is not.
Please note this binding has NOT been merged yet and is still a work in progress. You can find the latest release here:
Note: special thanks to @markus7017 for back porting to 2.4!
Simply download and drop into your addons directory.
How to uninstall/install new version
Here is a pretty complete way to remove an old version of the sony binding and install a new one:
Open the karaf console
From the console - bundle uninstall:org.openhab.binding.sony
Wait about 10 seconds for the bundle to be uninstalled
Shutdown openHAB
Remove all sony jars from the addons directory
Optionally (to fully clean up) - delete the userdata/sony directory
Start openHAB
Wait about 30 seconds for openHAB to startup properly
Copy the new jar into the addon directory
Wait about 30 seconds for the addon to initialize and your things to come back online.
A few notes:
Step 5 is really important. Do not rename the old jar file (like “jar.bak”) or leave multiple versions anywhere in the path. This will confuse openHAB and you’ll get weird behavior or weird exceptions in your logs.
If the version had a lot of channel name changes - would be best to (before step 1) delete all your existing things (both in your inbox and added things). This will allow the system to rediscover and setup with the proper names.
Unresolved Requirements
Please note that you may get unresolved requirement issues in your logs. This happens because dropping bindings into the addons directory will NOT resolve the requirements automatically (when the binding get’s merged - this won’t be an issue).
Here is a list of ‘fixes’ to install the requirements needed (all must be done from the karaf console):
Separating the sony logging into its own file
This is really helpful for me to get ONLY the sony logging into a separate file (that is easy to send to me):
Edit userdata/etc/org.ops4j.pax.logging.cfg
Delete any lines that have “sony” in them
Add the following lines (at the end of the file), save and then restart openhab
Hi Tim
I haven’t been able to get it to work properly. I can turn the tv off,but, can’t turn it on. Having only power on and input function is quite limiting for me.
Work on a full function Sony binding would be a welcome addition!
I coded it all up last night and am in local testing phase today. An interesting tidbit - the API document shows that commands are a 4 letter code. Being the inquisitive person I am - I quickly scanned the TV for all 4 letter codes and found a number of commands that aren’t documented (example: DHPT, DHPU and DRSS - all three return some numeric value). After I’m done testing locally - I’ll want some public testers to try it out before issuing a pull request. While that is happening, I’ll probably investigate what those commands potentially do/return.
I’ll be more than happy to assist with any testing, I’m currently using a very basic setup using a bash script and tcp binding. So anything that allows two way communication would be very useful to have.
I am however still only running on 1.8.3, as I’m still learning how OH fits together. The Wife uses the setup I have in place right now and has accepted this solution. It’s stable and easy. SO I’m hopefully the binding is cross compatible.
I’ve just posted the pull request for this PR-1232 and you can find the zip file on that post. This is a testing implementation and could (probably) does contain some bugs. I’d love to get your feedback and good luck!
I don’t know really - but I’m going to guess no. I quickly looked at the owners manual and it doesn’t appear to have a network port (wired or wireless) does it? This binding is strictly and IP based binding and without a network port - it wouldn’t be able to communicate to it. If your’s does have a network port - then check the settings to see if you can enable “Simple IP Control”. If you can, then it should work. If the setting doesn’t exist - I’d doubt this will work for you.
For broadcast/mac address to work - you need to set the netInterface configuration for the thing. For my X830c, it’s either eth0 (for wired) or wlan0 (for wireless). The addon defaults to eth0 if none was specified. If you are connecting wirelessly, try specifying “wlan0” for that config setting. If neither of those works - try a few variants (eth1, eth2 or wlan1, wlan2 if wired or wireless). If none of those works, either your TV doesn’t support them or they use some weird interface name (ath0?). At any rate, since none of this is documented it’s kinda guess work. Play with them and report back your results if you would.
As for the audio volume (and some of the others as well), the next version will be a bit smarter in handling those. When the TV is off, many of the commands return errors (likewise, channel commands return errors when using hdmi). The current version of this binding just blindly submits everything regardless of state.