-
Notifications
You must be signed in to change notification settings - Fork 9
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
iTunes Volume #3
Comments
Yes, I'm seeing this too, unsure why. I'm just using AppleScript under the hood as well. What actual AppleScript are you using that seems to behave better? |
The AppleScript I use is: "tell application "iTunes" to set selected of AirPlay device "Living Room" to true" |
Um... Okay. That's essentially exactly what I'm doing in here https://github.com/SphtKr/homebridge-itunes/blob/master/index.js#L295 . I just use the |
That's odd! I'll try tonight to do some testing. I noticed there is a 0.2.0 alpha now. How do I install that version to give it a try? |
Don't yet, I discovered that it won't update cleanly from 0.1.x...gotta put in a little migration code somewhere. |
I had uninstalled it previously and went back to my AppleScript plugin so maybe it would work cleanly for me?? Anxious to test it ;) |
So I had some time tonight and did a little testing. Here's my setup, expected behaviour and test results. Now I understand this may not be as you programmed so in your terms in may actually work as expected for you. Setup: 4 AirPlay speakers each named: "AirPlay " and Siri command of: " Speaker" Test 1: Living Room Airplay is Unselected but another AirPlay speaker "Office" is selected and iTunes is Not Playing. From Siri say "Turn on the Living Room Speaker" Test 2: Living Room AirPlay is Selected and iTunes is Not Playing. From Siri say "Turn on the Living Room Speaker" Test 3: Living Room AirPlay is Unselected. The Office AirPlay is Selected. iTunes is Playing. From Siri say "Turn on the Living Room Speaker" Test 4: iTunes is Stopped. Only one speaker is selected. From Siri say "Turn on the Speakers" Test 5: iTunes is Playing. All speakers are selected. From Siri say "Turn off the Speakers" Also I did figure out the volume issue. If all speakers get turned off, and iTunes auto selects "Computer" and sets the volume to 61%. The next time a speaker is turned on it gets the volume level from "Computer" (61%). |
Hey there, the above is great. I'm going to have to dig through it. Test 3 result really puzzles me. I'm going to have to try to reproduce here. Funny, it's always 61% I see here, too...what's magical about that number?? |
So I had to delete all of my homekit accessories and start again because I was having issues with inviting users since the latest iOS update. After I re-installed everything and re-tested #3 it works as it should. No idea what was wrong with my previous set-up. As for the 61%, I'm figuring its an Apple thing and we are stuck with that volume level. To stop that from happening, I always leave one airplay speaker on. |
Need to look into it more, but I think there may be a lurking variable here. Like whether iTunes is set to "single" or "multiple" audio destinations before the plugin gets a hold of it. Could be a red herring though. |
When a speaker is off and then turned back on, it seems to forget the last volume it had. If I use the AppleScript plugin to toggle the AirPlay device on/off it doesn't seem to do this. Any ideas?
The text was updated successfully, but these errors were encountered: