I've made three addons for controlling Hyperion through Kodi. They are called: Hyperion On, Hyperion Off and Hyperion Toggle. The names are self-explainatory.;)
The Toggle version changes the Ambilight source from Kodi into HDMI/AV and back again. For that, you will need two different configuration files.
One needs to be named "hyperion.config.json" and the other, "hyperion.config1.json". On the first one, leave the grabber on:
"grabber-v4l2" :
{
"device" : "/dev/video0",
"input" : 0,
"standard" : "PAL",
"width" : 300,
"height" : 200,
"frameDecimation" : 2,
"sizeDecimation" : 8,
"priority" : 1100,
"mode" : "2D",
"cropLeft" : 10,
"cropRight" : 8,
"cropTop" : 30,
"cropBottom" : 10,
"redSignalThreshold" : 0.2,
"greenSignalThreshold" : 0.1,
"blueSignalThreshold" : 0.1
},
The second one, leave it off:
/// "grabber-v4l2" :
/// {
/// "device" : "/dev/video0",
/// "input" : 0,
/// "standard" : "PAL",
/// "width" : 300,
/// "height" : 200,
/// "frameDecimation" : 2,
/// "sizeDecimation" : 8,
/// "priority" : 1100,
/// "mode" : "2D",
/// "cropLeft" : 10,
/// "cropRight" : 8,
/// "cropTop" : 30,
/// "cropBottom" : 10,
/// "redSignalThreshold" : 0.2,
/// "greenSignalThreshold" : 0.1,
/// "blueSignalThreshold" : 0.1
/// },
I've done them as Video addons, and not Program addons, because many users tend to hide or not even go to Program Addons.
The code is very simple, and I would be very happy to have some help coding them into one single addon, since I don't have much time and my Python knowledge is still at a beginner's level.
I've been using them for a while now and so far no complaints, so I decided to share with the Hyperion community. Be gentle! XD
They are available on my repo, under video addons: https://github.com/cmvac/demag…rgon.repository-0.0.2.zip