lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

Problem with commandswitches #88

Open giuse93or opened 3 years ago

giuse93or commented 3 years ago

Hello, I'm trying to write the correct config file for two commands, but i can't. this config file don't run in my homebridge config.

if i don't type "commandSwitches" it work

WORKING config.json { "platform": "AppleTvPlatform", "devices": [ { "name": "AppleTvHomebridge", "credentials": "X-X-X-X", "isOnOffSwitchEnabled": false, "isOnOffTvEnabled": false, "isPlayPauseSwitchEnabled": true, "playPauseSwitchName": "RiproduzioneAppleTV" } ] },

NOT WORKING config.json { "platform": "AppleTvPlatform", "devices": [ { "name": "AppleTvHomebridge", "credentials": "X-X-X-X", "isOnOffSwitchEnabled": false, "isOnOffTvEnabled": false, "isPlayPauseSwitchEnabled": true, "playPauseSwitchName": "RiproduzioneAppleTV" "commandSwitches": [ { "name": "Pausa AppleTv", "commands": [ { "key": "pause", "longPress": false } ] } ]
} ] },

Can you help me? i try to find a solution in other topic, but the homebridge istance don't run

mac89muc commented 3 years ago

give it a try with a comma behind the "playPauseSwitchName": "RiproduzioneAppleTV" line "playPauseSwitchName": "RiproduzioneAppleTV",