Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now

Question

Hi ladies and gents, new to this app, kind of getting the gist of it all and then i hit a wall.

Currently im stuck on the whole philips hue intergration.

I have downloaded ragnoroks philips hue action files. But i have no idea how to get them to work with kodi or install them????

 

Any help on this would be amazing 

Im using pc format with kodi 17.

Many thanks in advance.

  • Upvote 1

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0

I do no have this myself, but according to this page, it requires the Hue Ambilight addon to integrate the smart bulbs with Kodi and then CinemaVision should be able to control them.

http://kodi.wiki/view/Philips_Hue 

Someone else here can probably tell you how to utilize this functionality in CinemaVision, but it looks like the Hue Ambilight addon takes care of the dimming automatically when a movie starts to play, if that is what you are looking for.

Edited by OtisPresley

Share this post


Link to post
Share on other sites
  • 0

I will try to help you the best that I can.

For the action files that you downloaded, you will need to edit them so they will work with Hue.  Save the files somewhere where Kodi can have access to them.  I have mine in a folder called "actions" which is in a folder with the rest of CV folders and files.

The first thing you will need to do is find the ip address of the Hue Hub.  You can use this to find the ip address of the hub.  

https://www.meethue.com/api/nupnp

 

Once you get your ip address you will need to go here

http://<bridge ip address>/debug/clip.html

 Change <bridge ip address> to the address of your hub.  For example 

http://192.168.1.124/debug/clip.html

This will open the Hue API page for your hub.  On the Hue Hubs API page, you will see a line labeled "URL", make sure it says 

/api

On the line labeled "Message Body" put in 

{"devicetype":"newuser"}

Then push the link button on the Hue Hub.  Within 30 seconds of pushing that, click on the button labeled "Post" on the Hubs API webpage.  In the "Command Response" box you should get something that looks like this

[
	{
		"success": {
			"username": "IvLrovGs3so2zSIortEfEPYcH8dr8uJWR1k2trDL"
		}
	}
]

Save the generated username in a text document, you will need it again.  In this example my generated username is IvLrovGs3so2zSIortEfEPYcH8dr8uJWR1k2trDL.  Now go back to the line labeled "URL" and change it to say

/api/Genrated User Name Goes Here/groups

Put your generated username where it says "Generated User name goes Here"  Should look like this

/api/IvLrovGs3so2zSIortEfEPYcH8dr8uJWR1k2trDL/groups

Now click on the Get button, this will give you a response that will list your groups.  If you don't have any groups you can create one in the Hue app on your phone.  Groups will make it easier to control multiple hue bulbs at one time.

Now open one of the cv action files so you can edit it.  I am going to use Hue Trivia Lights for my example.  You should a line in there that looks like this.

http://<hue-bridge-ip>/api/<hue-bridge-user>/groups/<hue-light-group>/action
PUT:{"on":true,"sat":255,"bri":160,"hue":10000,"transitiontime":30}

Change the <hue-bridge-ip> to the ip address of the hue hub.

Change the <hue-bridge-user> to the generated username we made.

Change the <hue-light-group> to the name of the group you want to use.

You should now have something that looks like this

http://192.168.1.124/api/IvLrovGs3so2zSIortEfEPYcH8dr8uJWR1k2trDL/groups/Theater/action
PUT:{"on":true,"sat":255,"bri":160,"hue":10000,"transitiontime":30}

Save the file.

Now go to Kodi and open the CV addon and open it.  It should go to the screen you can set up the sequence.  On mine, the first one is "Trivia action".  Select edit and change the file path so it points to the file we just saved. Click on "Test" after you tell it where the file is at.  If everything works correctly you should see your lights dim and get a new window that opens up and has a green "OK" which means the test worked.  You can select no to "run abort action".  It won't work until you set that up.  Repeat the editing of the files for the rest of the actions you want to set up. After you save the files be sure to update the path locations for them in the CV addon.

 

By using the actions files with CV you will not need any other addons to control your Hue lights when you use CV addon to watch movies.  If you have problems or questions please ask and I will do my best to answer them,

 

  • Like 1
  • Upvote 2

Share this post


Link to post
Share on other sites
  • 0

Hi there. i was also struggling with the tutorial on CV. Now this explanation was way better in my opinion. I got it running and i wanna thank you for the big help out there.

 

I just got one question. Is there any way i can create a custom color for the Action files? And whats the easiest way to accomplish this?

Edited by Paynemaster

Share this post


Link to post
Share on other sites
  • 0
21 hours ago, Paynemaster said:

I just got one question. Is there any way i can create a custom color for the Action files? And whats the easiest way to accomplish this?

 

Try this.  Replace  "hue":10000 in what I have in my post above with something like "hue":46920.  This should give you a blue color.  I dont have colored bulbs so I can't check.  For more ideas on colors options you can try here.  https://www.developers.meethue.com/documentation/core-concepts  about half way down is the info about colors

 

Supposedly  HTML color names work as well so you could try these as well. https://en.wikipedia.org/wiki/Web_colors  so something like "hue":green should work. 

Go ahead and test this and let us know how it works for you.  If you need anything else feel free to ask

 

Edited by block134
typo

Share this post


Link to post
Share on other sites
  • 0
On 26-3-2018 at 1:43 AM, block134 said:

 

Try this.  Replace  "hue":10000 in what I have in my post above with something like "hue":46920.  This should give you a blue color.  I dont have colored bulbs so I can't check.  For more ideas on colors options you can try here.  https://www.developers.meethue.com/documentation/core-concepts  about half way down is the info about colors

 

Supposedly  HTML color names work as well so you could try these as well. https://en.wikipedia.org/wiki/Web_colors  so something like "hue":green should work. 

Go ahead and test this and let us know how it works for you.  If you need anything else feel free to ask

I got it working. Only i get a weird error. I tried to create a new file, but the same error. I don't get that error with my previous set up cvaction files.

This is the error: https://imgur.com/a/sTDi0

Edited by Paynemaster

Share this post


Link to post
Share on other sites
  • 0
On 4/1/2018 at 8:27 AM, Paynemaster said:

Would be nice to receive a reply by now.

Hey! Sorry for the delay. I've sent your error over to our developer to see what he thinks. Could we also get a debug log from you?

Share this post


Link to post
Share on other sites
  • 0

Thanks for the reply. Sadly i don´t have any logs anymore. My audio was having issues with Kodi. so i removed Kodi. with these issues i also saw something like an external script error. This might be something to do with the lights. I will try to create a clean install with a CinemaVision scene including lights and will give an update if i get the same errors again.

 

Regards.

Tim

Share this post


Link to post
Share on other sites
  • 0
On 4/15/2018 at 5:08 PM, Paynemaster said:

Thanks for the reply. Sadly i don´t have any logs anymore. My audio was having issues with Kodi. so i removed Kodi. with these issues i also saw something like an external script error. This might be something to do with the lights. I will try to create a clean install with a CinemaVision scene including lights and will give an update if i get the same errors again.

 

Regards.

Tim

Much appreciated! If it's a bug, we certainly want to squash it. If you were having trouble with audio, I'd recommend going to Settings > System Settings > Audio and changing the decoder until everything passes through correctly. When I hook my Kodi box up to my AVR, I have to set everything to WASAPI to my AVR in order for everything to come through correctly. DIRECTSOUND isn't reliable for me. Maybe that's the issue you had.

Share this post


Link to post
Share on other sites
  • 0

Hello everyone. How is everyone doing in here? I just upgraded my Hue Light system with a light strip. Now i created a new group only for that light strip. But I am having dificulties only putting that light on. No matter what i fill in the <hue-light-group>. It always putts on all the lights.

 

Here an overview of the two groups

 

{
    "1": {
        "name": "Cinema",
        "lights": [
            "5",
            "6",
            "7"
        ],
        "type": "Room",
        "state": {
            "all_on": false,
            "any_on": false
        },
        "recycle": false,
        "class": "Recreation",
        "action": {
            "on": false,
            "bri": 254,
            "hue": 14957,
            "sat": 254,
            "effect": "none",
            "xy": [
                0.5196,
                0.4365
            ],
            "ct": 484,
            "alert": "select",
            "colormode": "hs"
        }
    },
    "2": {
        "name": "Screen Light",
        "lights": [
            "8"
        ],
        "type": "Room",
        "state": {
            "all_on": false,
            "any_on": false
        },
        "recycle": false,
        "class": "Hallway",
        "action": {
            "on": false,
            "bri": 254,
            "hue": 14957,
            "sat": 254,
            "effect": "none",
            "xy": [
                0.3868,
                0.5371
            ],
            "ct": 258,
            "alert": "select",
            "colormode": "hs"
        }
    }
}

Share this post


Link to post
Share on other sites
  • 0

The thing about controlling groups and controlling lights is they have different ways of executing the same thing.   Make sure you are using the group commands and not the light commands

groups/<hue-light-group>/action

vs

/lights/<hue-light>/state

 

If all you have is one light in a group try controlling just the light, it appears in your example that your screen light in group 2 is using light 8 so just do ".../lights/8/state.    

Personally I wouldn't create a group just for one light, the Hue Hub only has a limited amount of space on it and I don't wanna fill it up with useless groups....not to mention it would also make a mess of my iConnectHue app group selection screen :)

Share this post


Link to post
Share on other sites
  • 0

Hi there,

Very interesting topic !

I was wondering if, to make it easier, it would be possible to assign, within an action file, a light profile (or scenario, I'm not sure the correct term) previously created with the hue app ?

What would be the way to write the PUT section in that case?

Many thanks for your help.

Thanks Guillaume

Share this post


Link to post
Share on other sites
  • 0

Hi ,

In addition to my previous question, I have set a bunch of actions file following the steps described in this topic, but when I try to lunch those for test in Cinema vision, I have the following error message "This action is not set or not yet applied". 

You will find enclosed the files for review.

Thanks in advance for your help.

Guillaume

Hue lights off.cvaction

Hue purple.cvaction

Hue red.cvaction

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!

×

Important Information

By using this site, you agree to our Guidelines and Terms of Use.