Sony devices like receivers and soundbars should work with this driver. I have tested it on my sony soundbar and all listed functions should work on the compatible devices. This API also works on many other undocumented sony devices. This uses the REST API verses IRCC commands or SOAP calls that some other drivers use. I was not as interested in emulating button clicks, but wanted to know which value the device is currently to optimize settings. I can now change to nightmode and turn down the sub when the kids go to bed.
I plan to add a few more features to this driver soon, but thought I would throw it out in beta to see if anyone with other Sony devices would like to tell me what works or doesn't for their specific device before i add that integration. Please let me know if you have any issues or errors with the driver.
To Install,
- import the driver from the URL
https://raw.githubusercontent.com/jonesalexr/hubitat/master/Drivers/SonyAudio/SonyAudioControl.groovy - Create virtual device with the new driver
- Input the IP address and leave the port alone (unless your specific device is weird and says to use something else), NO PSK or WOL needed that i know of, but I added this in case some devices need it (TV's do)
- Save the settings, the device will start polling for updates on your chosen cycle.
Below are the screenshots from the driver
Todo List
Switching/Setting inputs
Play/Pause Skip
Play Spotify radio channel, etc
thank you to @snell for his help getting me through my groovy questions and hubitat methods!