Kodi addon allowing HDMI-CEC control via Kodi's JSON-RPC.
Requires at least XBMC v13 Gotham and currently supports latest version Kodi v17 Krypton.
Download the project as Zip and rename it as script.json-cec.zip. Use the GUI interface to install it in Kodi.
Clone the project and copy it to Kodi's addons directory, example: ~/.kodi/addons/
- 'activate' - Wake up playing device via a CEC peripheral
- 'standby' - Put playing device on standby via a CEC peripheral
- 'toggle' - Toggle state of playing device via a CEC peripheral
https://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec","params":{"command":"activate"}},"id":1}
curl --header 'Content-Type: application/json' --data-binary '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec","params":{"command":"activate"}},"id":1}' https://kodi/jsonrpc