SphtKr / homebridge-itunes

Control iTunes on a Mac from HomeKit and Siri
53 stars 9 forks source link

Problems with Mac Mini #1

Open jer78 opened 8 years ago

jer78 commented 8 years ago

First off, thanks for making this plugin for HomeKit. Previously I was using AppleScript to control iTunes and my AirPlay Speakers.

I have not been able to get this to work properly and believe it has to do with a long-standing Apple bug since Yosemite. If the TV and Receiver are off, which are connected to my Mac Mini by HDMI and I attempt to play iTunes with only the "Computer" it freezes iTunes up completely making it unusable. The work around for me, is to never select "Computer" but have other AirPlay devices selected instead and just pause iTunes when not in use

I think since this plug-in is programmed to turn off all other AirPlay devices and use the "Computer", it makes it unusable for Mac Mini's when the display is off.

SphtKr commented 8 years ago

You're welcome!

Hmm...Actually it shouldn't do that. Now, if you turn off every other AirPlay device, iTunes will automatically enable "Computer". You could be seeing that happen. but without you telling it, it shouldn't turn off anything.

Are you still having this issue? (Sorry, I apparently didn't turn on email alerts for this new project, so I just saw this.) I noticed you put in issue #3, so maybe you got past this issue.

On a side note, are you actually using the Audio channel of the HDMI connection to send audio to your TV? If I were in your shoes I'd try hooking up a SPDIF or even analog line to wherever your audio was going (TV or receiver) and try switching the audio output port on the Mac (via option-clicking the volume control in the menu bar, for example) to something other than the HDMI audio output--not elegant, but see if that alleviates the issue.

jer78 commented 8 years ago

I'll try again later tonight or tomorrow. It may have also been the way homebridge works. I'm on 9.3.2 beta and I find every beta makes a small difference to HomeKit (mostly annoying changes lol). For instance if I say, turn off the living room speakers (the name of the AirPlay device as I've configured it) it somehow turns off everything in the living room including hue lights and cycles through every harmony hub activity (another homebridge plugin) so it's not limited to your script.

I used to use a SPDIF cable but my newer amplifier only has one input and it's used for something else at the moment. :(

Once I figure out the best way to setup the device names and Siri commands I'll probably end up using your plugin as its better than the simple AppleScript on and off plugin I currently use.

Thanks again!!