-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zone 2 + Pandora #7
Comments
There are two commands involved, at least that seems to be how it works. SLI changes the source. 2B is net. NSV changes music service. 04 = net is Pandora (0A is Spotify). def msg = getEiscpMessage("SLI2B") I had gotten really close, but could not figured out that I needed the trailing 0 on the service designation until I saw this blog post. Yeah, the YAML file is a bit confusing, but remember that it's not meant to be human-readable. It's easier to look at form within Github than, say a straight text editor. Even better if you put it into a YAML-aware IDE. Even still, you have to spend time making heads or tails of the format that EISCP is trying to generate. There are hints, such as this formatting which I still have yet to learn how to decipher: 'NSV': {'service-id': u'ssiaaaa\u2026aaaabbbb\u2026bbbb'}, I'm sure this is the thing that says "It can be these chars and those but not those with these"... basically like some convoluted regex. Those \u2026 unicode chars are ellipses, but other than that, I'm still trying to figure this out. Anyhow, you're welcome ;). By the way, have you noticed that volume changes work (with some tweaking, at least with my Pioneer VSX LX503), but the device in the SmartThings UI just spins? I slide the volume slider, it makes the change on the receiver, but never seem to receive a satisfactory response from the cloud/hub. After a while it times out and the slider goes to 0. The receiver is fine though.... weird |
Hey @robross0606 @jasongabler - feel free to openly discuss this here but I've moved everything to Home Assistant a few years ago and obviously haven't maintained this at all. I'm happy to take a pull request since it seems my repo still gets some attention once in a while, but this has been forked 40 times and I assume someone has built on my work since then. Cheers |
@allanak , I've looked through every single one of the the forks and absolutely no one has done anything of consequence :D A few spelling corrections and code reformats here and there. Anyhow... The most interesting part of your work is your deciphering of the highly over-engineered eISCP libraries in Python floating around Git. (If that is, in fact, where you learned to construct the ISCP messages in getEiscpMessage().) I had really tried to avoid wading through how miracle2k's Python code where takes Onkyo's commans definition tables, gronks them into YAML, and then reinterprets all that to produce binary commands to send to the receiver. My laziness has really paid off since finding your oh so simple Groovy code that gets it natively into a SmartThings device handler. Thanks for that, and I will do my best to pay it back with a pull request. |
@jasongabler Hey did you ever figure this out? I'm trying to do the same thing with a raw eiscp command like this. The eiscp-commands.yaml file doesn't make sense with the aaaa..aaaa bbbb.bbbb placements of username/password since there are multiple aaaa's and bbbb's in the string: NSV: |
Been trying like made to figure out a way to automate turning on Zone 2 of my Onkyo receiver and switching to Pandora. I've tried with Harmony and Alexa and several other ways, but none of them seems to know how to toggle Pandora as a discrete command. Now I see some EISCP commands that look like they might work (i.e. "NSV") but I'll be damned if I can figure out what the YAML file means. Any ideas would be greatly appreciated!
The text was updated successfully, but these errors were encountered: