homebridge-apple-tv-remote icon indicating copy to clipboard operation
homebridge-apple-tv-remote copied to clipboard

Problem with commandswitches

Open giuse93or opened this issue 4 years ago • 1 comments

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

giuse93or avatar Jan 26 '21 19:01 giuse93or

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

mac89muc avatar Jan 31 '21 22:01 mac89muc