The Big Picture
At the end of this guide, you will have integrated your Philips Hue solution into your Kodi HTPC with CinemaVision. CinemaVision will be able to control lighting and set the scene as your Sequence is played, or as Pause/Resume/Abort events occur, giving you complete control over your movie theater experience.
What you won't need:
-
To be a programmer, or have working knowledge of any programming language.
What you will need:
-
Kodi installed and configured on an HTPC, with content scraped into the local Kodi database (not streaming).
-
The Kodi CinemaVision Add-on installed, with a working Sequence (a working knowledge of setting up CinemaVision).
-
A working Philips Hue Bridge with scenes programmed in, and some knowledge of the Hue interface.
-
Notepad++ installed, or a similar plain text editor other than Notepad.
-
Sample Action Files for your Hue solution.
-
The patience to do some work to get the solution up and running. It's not hard, but it's not plug-and-play either.
Seting Up Groups
While CinemaVision is capable of controlling individual lights, to get a clean, uniform look when controlling lights it is recommended that you create Groups on the Hue Bridge and trigger those Groups using CinemaVision. Each Group can contain specific lights connected to your Hue Bridge.
Let's say, for example, that you have 3 lighting zones in your theater room controlled by your Hue:
Zone 1: Entrance Lights
Zone 2: Seating Lights
Zone 3: Screen Wall Lights
You would likely want to set up 5 Groups for the theater room that CinemaVision will use during the Sequence:
Group 1: Preshow - Seating & Entrance Zones set to 50%, Screen Wall Zone set to Off
Group 2: Trailers - Seating & Entrance Zones set to 20%, Screen Wall Zone set to Off
Group 3: Feature - All Zones set to 100% On or Off
Group 4: Pause Event - All Zones set to 20%
Group 5: Browsing Library & Abort Event - Seating Zone set to 20%, Entrance & Screen Wall Zones set to Off
When you've finished setting up the Groups on your Hue Bridge, copy down the number that the Bridge assigned to each Light or Group. We'll call the Light number your Light ID, and the Group number your Group ID. You'll use the Light ID to replace <hue-light> in your Action Files later in this guide. You'll use the Group ID to replace <hue-light-group> in your Action Files later in this guide. The advantage of using Groups is that it's far easier than trying to control each individual Light separately, and will save you some headaches.
Get Your Username
-
Open Google Chrome or another browser.
-
Using the address bar, browse to the following URL to find the internal IP Address of your Hue Bridge.
-
Copy the internal IP Address for use later in this guide.
-
Using the address bar, browse to the following URL to open the CLIP API Debugger.
-
http://<hue-bridge-ip>/debug/clip.html

-
Type /api in the URL: field.
-
Type {"devicetype":"CinemaVision"} in the Message Body: field.
-
Press the button on your Philips Hue Bridge.
-
Click on the Post button in the CLIP API Debugger.
-
In the Command Response: field, you'll see a long string of characters after the word Username. These characters are your Username.
-
Copy your Username and save it for later use in this guide.
Edit Your Action Files
For those who aren't familiar with CinemaVision Action Files, you'll find a guide here that covers the syntax, commands, modules and protocols of Action Files. That should help you get a better understanding of how they work and how to set them up.
Now that we have the Scene IDs and our Username, it's time to get into the fun stuff. Using Notepad++ or a similar plain text editor other than Notepad, open one of the CinemaVision Action Files that we downloaded earlier. There are instructions in each file, and all that you should have to do is replace some text per those instructions and you'll be on your way to a complete movie theater experience! We suggest you create one Action File per Scene that you created earlier in this guide.
When you have your Action Files ready, save them in your %CVROOT%\Actions directory.
Testing Your Action Files
Now that we have our Action Files configured, using the CLIP API Debugger, paste the commands from your Action File in the appropriate fields. If it's working properly, you will notice your Scene change each time you run the command.
If your Scene did not change, ensure that your IP Address and your Username are correct, and that you're attempting to control the right Light or Group. Case does matter, so make sure that your URL is typed correctly, or the command will fail. If the Light or Group did change, the test was successful. Now it's time to edit the CinemaVision Sequence, so let's open Kodi and launch the CinemaVision Add-on.