grover / homebridge-dacp

Remotely control Apple TV and iTunes via HomeKit.
MIT License
151 stars 14 forks source link

Doesn't load paring code and service name. #11

Closed aaronjamt closed 6 years ago

aaronjamt commented 6 years ago

I have installed this plugin, but when I paired my Apple TV and added the codes to the config like so: { "platform": "DACP", "devices": [ { "name": "Apple TV", "paring": "PARING-CODE-HERE", "serviceName": "SERVICE-NAME-HERE" } ] }, the console still says:

[2018-1-5 14:44:02] [DACP] Initializing DACP platform... [2018-1-5 14:44:02] [DACP] DACP Platform Plugin Loaded [2018-1-5 14:44:02] [DACP] Found accessory in config: "Apple TV" [2018-1-5 14:44:02] [DACP] [2018-1-5 14:44:02] [DACP] Skipping creation of the accessory "Apple TV" because it doesn't have a pairing code or [2018-1-5 14:44:02] [DACP] service name yet. You need to pair the device/iTunes, reconfigure and restart homebridge. [2018-1-5 14:44:02] [DACP] [2018-1-5 14:44:02] [DACP] Beginning remote control announcements for the accessory "Apple TV". [2018-1-5 14:44:02] [DACP] [2018-1-5 14:44:02] [DACP] Use passcode 1501 to pair with this remote control. [2018-1-5 14:44:02] [DACP]

Why isn't it working/what have I done wrong?

grover commented 6 years ago

You misspelled pairing in the JSON configuration: You wrote "paring" instead of "pairing".

aaronjamt commented 6 years ago

Thanks, @grover . That was my issue.