dansays / homebridge-applescript

Applescript plugin for homebridge: https://github.com/nfarina/homebridge
20 stars 8 forks source link

Error (-1700) when starting Apple Music #10

Open WimBre opened 5 years ago

WimBre commented 5 years ago

Hi,

I started this script in homebridge but when I try to open iTunes via Home-kit on my iPone the script does not respond (also no error message in Log Homebridge).

If I open iTunes manually and then stop the music via Home-kit, it works normally.

But when I try to reopen iTunes in Home-kit I get this error message:

[2018-7-22 08:08:28] [Music] Music: set on from true to false [2018-7-22 08:08:33] [Music] Music: set on from false to true

IN DUTCH [2018-7-22 08:08:33] [Music] applescript error execution error: iTunes kreeg een fout: Bepaalde gegevens kunnen niet in het verwachte type worden omgezet. (-1700) TRANSLATED IN ENGLISH [2018-7-22 08:08:33] [Music] applescript error execution error: iTunes received an error: Certain data can not be converted to the expected type. (-1700)

[2018-7-22 08:08:33] [Music] applescript: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/iTunes.scpt") tell lib to setPlayerOn(true, "Shivers") [2018-7-22 08:08:33] [Music] Music: could not set on to true

Does anyone know what the cause might be?