Search the Community
Showing results for tags 'hue'.
Found 4 results
-
So it's been driving me nuts the past few nights running upstairs to attempt to fix code, then test it out back downstairs (yeah I could do it downstairs but trying to read the code on the TV screen from the couch hurts my eyes ) Anyways. My pain, is your gain, incase anyone else is wanting to do the same. I will have 5 hue lights, two on the sides of the couch, and 3 shining on the walls, however right now I only have 2, with a 3rd on the way today. When it's time for Trivia, I use the Vibrant slides, so I want the lights to do a color loop, however I want each light independent of the other bulbs, basically I don't want the whole room green, then red, then blue, etc. What I've been running in to is one light does job, but the others just stay at a constant color Heres my code: (IP and Username removed) # Turn the lights on to a white with a 3 second transitiontime http://<removed>/groups/10/action PUT:{"on":true,"sat":75,"bri":254,"hue":41432,"effect":"none", "transitiontime":30} # Turn on each light and start the color loop, wait 1 seconds before turning on the next light # else they all turn the same color at once http://<removed>/lights/30/state PUT:{"sat":254, "effect":"colorloop"} #wait 1 second before setting the next light sleep://1000 http://<removed>/lights/29/state PUT:{"sat":254, "effect":"colorloop"} So ideally what should happen is the lights turn on to their white-ish color, and then 1 by 1 they should be all color looping after waiting 1 second before going on to the next light. However what's happening is just the one light is color looping while the other transitions to a blue light (the bulb is already at Hue: 41432 and Bri: 254 so when I tell it to saturate to 254 it goes from white to blue) but not picking up on the color loop It took me a while to figure out why, turns out it's that initial transition time of 3 seconds. While the bulb is transitioning it's not paying attention to the effects command, but does listen to the saturation command. So how to fix this? While I could remove the initial transition time I don't want the lights to abruptly turn on, so instead let's pause the script again. This time adding an additional sleep command right after all the lights turn on. so my final code looks like: # Turn the lights on to a white with a 3 second transitiontime http://<removed>/groups/10/action PUT:{"on":true,"sat":75,"bri":254,"hue":41432,"effect":"none", "transitiontime":30} #wait 3 seconds for the transition to finish sleep://3000 # Turn on each light and start the color loop, wait 1 seconds before turning on the next light # else they all turn the same color at once http://<removed>/lights/30/state PUT:{"sat":254, "effect":"colorloop"} #wait 1 second before setting the next light sleep://1000 http://<removed>/lights/29/state PUT:{"sat":254, "effect":"colorloop"} Now like I said I only have 2 bulbs in the room right now and I imagine if I had all 5 (god these buggers are expensive!) right away I suspect I would have picked up on the problem right away because as I sleep for 1 second between each bulb that transition would have eventually been completed on the other bulbs leaving it look like only 1 or 2 bulbs didn't catch the code while the rest did.
- 2 replies
-
- 2
-
-
- colorloop
- transitiontime
-
(and 1 more)
Tagged with:
-
So I don't know much about scripting in whatever language CV is using, my programing knowledge comes from Turbo Pascal learned in the 90s and BASIC back on an Atari 800 in the 80s so forgive me here but I'm assuming there is some sort of IF THEN statement that I can use in .cvaction files that basically says If its after 9pm set my hue lights to this color temperature, otherwise use this one. I just don't know what that code looks like. During the day I like my lights in a Daylight color temperature, and at night to help ya sleep by reducing the "blue light" having my bulbs be a Warm White light, so after a movie ends I'd like to set the action to turn on the lights to a warm white temperature if its after a certain time when the script is ran, otherwise use my daylight temp.
- 2 replies
-
- time of day
- hue
-
(and 1 more)
Tagged with:
-
Version 1.0.0
7,018 downloads
These are some examples of actions files that work with Philips Hue to control your lighting. You'll need to configure Hue, and then modify these action files to include the appropriate bridge IP address, username, lights and groups for what you configured. Instructions are included in each action file, as well as Hue API references. Available Actions Action File Description Hue-TriviaLights.cvaction Use this as an example of what to do with your lights during Trivia. Hue-TrailerLights.cvaction Use this as an example of what to do with your lights during Trailers. Hue-FeatureLights.cvaction Use this as an example of what to do with your lights during your Feature Presentation. Hue-SequencePause.cvaction Use this as an example of what to do with your lights when you pause your sequence. Hue-SequenceResume.cvaction Use this as an example of what to do with your lights when you resume your sequence. Hue-SequenceAbort.cvaction Use this as an example of what to do with your lights when you abort your sequence and stop playback. Hue-ColorLoopStart Start a color loop using a single Hue light. Start a color loop using a Hue group containing multiple lights. Hue-ColorLoopStop Stop a color loop using a single Hue light. Stop a color loop using a Hue group containing multiple lights. Hue-ColorBlueOnFull Set the color of a single Hue light to blue and turn it on full. Set the color of a Hue group containing multiple lights to blue and turn it on full. Hue-ColorGreenOnFull Set the color of a single Hue light to green and turn it on full. Set the color of a Hue group containing multiple lights to green and turn it on full. Hue-ColorPurpleOnFull Set the color of a single Hue light to purple and turn it on full. Set the color of a Hue group containing multiple lights to purple and turn it on full. Hue-ColorRedOnFull Set the color of a single Hue light to red and turn it on full. Set the color of a Hue group containing multiple lights to red and turn it on full. Hue-ColorYellowOnFull Set the color of a single Hue light to yellow and turn it on full. Set the color of a Hue group containing multiple lights to yellow and turn it on full. Hue-LightsOff Turn off all lights in a group.- 6 comments
-
- 2
-
-
- philips
- home automation
-
(and 3 more)
Tagged with:
-
I just got a Philips Hue Lux and and I am having problems getting it to work with CinemaVision. When ever I try to test the action file I get an error in the log it doesn't do anything with my lights. I have used the same command that is in the action file in the CLIP API debug tool and the command works with that so I know the address, API key, and command is correct. This the error in the log, if you need the entire log I can post that as well. 14:25:29 T:6612 NOTICE: Thread LanguageInvoker start, auto delete: false 14:25:29 T:6612 NOTICE: -->Python Interpreter Initialized<-- 14:25:29 T:6612 NOTICE: [- CinemaVision -]: Passed args: ['addon.py', 'test.actions', 'PAUSE'] 14:25:29 T:6612 NOTICE: [- CinemaVision -] (API): Rating Systems: 14:25:29 T:6612 NOTICE: [- CinemaVision -] (API): MPAA: [NR, G, PG, PG-13, R, NC-17] 14:25:29 T:6612 NOTICE: [- CinemaVision -] (API): FSK: [18, 16, 12, 6, 0] 14:25:29 T:6612 NOTICE: [- CinemaVision -] (API): DEJUS: [18 Anos, 16 Anos, 14 Anos, 12 Anos, 10 Anos, Livre] 14:25:29 T:6612 NOTICE: [- CinemaVision -] (API): BBFC: [R18, 18, 15, 12, 12A, PG, U, Uc] 14:25:29 T:6612 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.AttributeError'> Error Contents: 'NoneType' object has no attribute 'decode' Traceback (most recent call last): File "C:\Users\Brian\AppData\Roaming\Kodi\addons\script.cinemavision\addon.py", line 52, in <module> settings.testEventActions(args[0]) File "C:\Users\Brian\AppData\Roaming\Kodi\addons\script.cinemavision\lib\settings.py", line 233, in testEventActions cvutil.evalActionFile(path) File "C:\Users\Brian\AppData\Roaming\Kodi\addons\script.cinemavision\lib\cvutil.py", line 233, in evalActionFile abortPath = kodiutil.getSetting('action.onAbort.file').decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode' -->End of Python script error report<-- I also cant get the XBMC Philips Hue addon to work so I am not sure what I am doing wrong. Might be something with the firmware on the hub or my network. For the Hue addon it will detect the address and API key when I press the link button but fails and wont connect.