Closed yaggayoyo closed 4 years ago
What macOS version are you on? Does it still support iTunes or has it moved to Music?
Please capture and attach a full debug log file, see https://github.com/ebaauw/homebridge-hue#debug-log-file.
macOS 10.13.6, iTunes 12.8.2.3
Switched to AirFoil and its much better. Wanted both, can i have both? here is my settings
"platforms": [
{
"name": "AirFoil",
"script": "AirFoil",
"service": "switch",
"brightness": true,
"platform": "Music"
}
What do you mean “both”? You use iTunes to play your music and AirFoil to control your speakers. AirFoil replaces the handling of Airplay speakers by iTunes. It doesn’t play any music itself.
I use both to play music via Airfoil (VLC - TuneIn) or iTunes. But this is not how you have designed this. For now I will use it for Airplay speaker on/off and volume which is much better than my HAbridge implementation.
Getting the below errors "set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt")"
[2/15/2020, 2:57:10 PM] [Music] Onelink Speaker Guest: set on from false to true [2/15/2020, 2:57:15 PM] [Music] applescript timeout [2/15/2020, 2:57:15 PM] [Music] applescript: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt") tell lib to setSpeakerOn("Onelink Speaker Guest", true) [2/15/2020, 2:57:15 PM] [Music] Onelink Speaker Guest: could not set on to true [2/15/2020, 2:57:33 PM] [Music] Onelink Speaker Guest: set on from false to true [2/15/2020, 2:57:36 PM] [Music] Onelink Speaker Guest: on changed from true to false [2/15/2020, 2:58:29 PM] [Music] Computer: set on from false to true [2/15/2020, 2:58:31 PM] [Music] Computer: on changed from true to false [2/15/2020, 2:58:44 PM] [Music] Computer: set on from false to true [2/15/2020, 2:58:45 PM] [Music] Computer: could not set on to true [2/15/2020, 2:59:12 PM] [Music] Music: set on from false to true [2/15/2020, 2:59:13 PM] [Music] applescript error execution error: iTunes got an error: Can’t make some data into the expected type. (-1700)
[2/15/2020, 2:59:13 PM] [Music] applescript: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt") tell lib to setPlayerOn(true, "") [2/15/2020, 2:59:13 PM] [Music] Music: could not set on to true [2/15/2020, 3:00:50 PM] [Music] Onelink Speaker Guest: set on from false to true [2/15/2020, 3:00:55 PM] [Music] applescript timeout [2/15/2020, 3:00:55 PM] [Music] applescript: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt") tell lib to setSpeakerOn("Onelink Speaker Guest", true) [2/15/2020, 3:00:55 PM] [Music] Onelink Speaker Guest: could not set on to true [2/15/2020, 3:02:58 PM] [Music] Onelink Speaker Guest: set on from false to true [2/15/2020, 3:03:03 PM] [Music] applescript timeout [2/15/2020, 3:03:03 PM] [Music] applescript: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt") tell lib to setSpeakerOn("Onelink Speaker Guest", true) [2/15/2020, 3:03:03 PM] [Music] Onelink Speaker Guest: could not set on to true