Forked from https://github.com/joshjowen/script.json-cec
- 'activate' - Wake up playing device
- 'toggle' - Toggle state of playing device
- 'standby' - Put playing device on standby
curl -X POST -H 'content-type:application/json' http://kodi:8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.module.json-cec","params":{"command":"activate"}},"id":1}'
Clone the project to Kodi addons folder: ~/.kodi/addons/