kkapitan / homebridge-homesung

A Homebridge plugin for Samsung SmartTV H and J models with the pairing protocol
MIT License
30 stars 5 forks source link

Config file problem #20

Open larsoss opened 4 years ago

larsoss commented 4 years ago

Hello people.

I'm not a programmer, and don't know how to get the config file working.

i want to get this in the Homebridge, but can't save the file. Because of Json error. Maybe you can help me? And if you want you can help me in dutch. ;-) I want to change volume, and open netflix and youtube. And if its possible to change the channel.

{ "bridge": { "name": "Homebridge 0163", "username": "****", "port": 51950, "pin": "197-45-161" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" }, { "name": "Domoticz", "server": "192.168.1.171", "port": 8080, "roomid": 0, "mqtt": true, "ssl": false, "dimFix": 0, "platform": "eDomoticz-ui-x" }, { "name": "Google Smart Home", "token": "***", "notice": "Keep your token a secret!", "platform": "google-smarthome" }, { "platforms": [ { "platform": "SamsungTV", "devices": [ { "name": "SamsungTV", "ip": "192.168.1.224", "identity": { "sessionId": "<id of the pairing session - obtained after pairing>", "aesKey": "<key of the pairing session - obtained after pairing>" }, "power": { "name": "", "key": "", "enableCEC": "<whether to use hdmi-cec as a power on/off method>", } "switches": [ { "name": "Vol Down 5", "delay": 1000, "command": "5KEY_VOLDOWN" }, { "name": "Channel 12", "command": [ "KEY_1", "KEY_2" ] }, { "name": "Play with sound", "command": [ "5KEY_VOLDOWN", "5KEY_VOLUP" ] }, { "name": "Do something", "command": { "keys": "5KEY_VOLDOWN", "delay": 2000 } }, { "name": "Do more of something", "command": { "keys": [ "KEY_1", "KEY_2" ], "delay": 1000 } }, { "name": "Launch Netflix", "command": [ { "keys": "KEY_CONTENTS", "delay": 2000 }, { "keys": [ "3*KEY_LEFT", "KEY_ENTER" ], "delay": 1000 } } ] } ] } ] }