|
|
|
The following page was printed from RemoteCentral.com:
Topic: | Philips HUE controls This thread has 44 replies. Displaying posts 16 through 30. |
|
Post 16 made on Friday January 31, 2014 at 02:08 |
jovank7 Long Time Member |
Joined: Posts: | January 2014 11 |
|
|
Bibi-12, can you share your working module for copy and paste on this Hue set up? I'm not familiar with scripts language and am looking for a quick fix for Hue integration. I 'm not sure where or how to add the above scripts into PEP2 and how it interacts with the GUI/buttons chosen for the actions.. from the looks of it it appears as if this script may be for the scroll wheel to control the light's brightness from an off position brightening to a full on. Is that correct? Thanks!
|
JovanK7 |
|
Post 17 made on Wednesday December 17, 2014 at 17:07 |
DigitalVD Long Time Member |
Joined: Posts: | January 2009 32 |
|
|
Hello,
does anyone have a working configuration file with Philips Hue and Pronto?
I want to control scenes, put on and off. But I can't get it work.
Thank you,
Patrick
|
|
Post 18 made on Thursday December 18, 2014 at 15:47 |
DigitalVD Long Time Member |
Joined: Posts: | January 2009 32 |
|
|
So, it work now. First I registered my Hue system: [Link: developers.meethue.com]Then I use these script: [Link: everyhue.com]But I set each lamp with this line: socket.write('PUT /api/newdeveloper/lights/1/state HTTP/1.0\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands); Best, Patrick
|
|
Post 19 made on Tuesday May 5, 2015 at 04:15 |
larsb Long Time Member |
Joined: Posts: | February 2007 20 |
|
|
Hello Not a profesional installer, so unfortunately I have no experience in scripting Is there a working module/setup for philips hue available somewhere, which I can add to my config in a similar way as I added the sonos module? Would be a welcome addition to my setup. Thanks Lars
|
|
Post 20 made on Tuesday February 23, 2016 at 13:36 |
luke2008 Long Time Member |
Joined: Posts: | August 2008 20 |
|
|
Hi Everyone,
I'm struggling to get this code working, I don't really want anything fancy just want to be able to turn my lights on and off to start. Can anyone help?
Thanks Luke
|
Panasonic TX65-DX902*Onkyo-TX-NR5007*Mordaunt Short Alumni 11.2*Philips Pronto TSU9600/ RFX9600 |
|
Post 21 made on Sunday January 22, 2017 at 09:49 |
calston Long Time Member |
Joined: Posts: | March 2005 115 |
|
|
Not sure if anyone is still following this but I would love some direction on how to get this to work - all I want to do is turn lights on and off. I have managed to register an account and can turn a light on using the script on page one of this thread but changing the status to false in var JSON_on='{"on":false}'; does not work - sorry but I dont understand all the "HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands" bit of the command - what is this?
any help would be appriciated
|
|
Post 22 made on Tuesday January 24, 2017 at 18:49 |
luke2008 Long Time Member |
Joined: Posts: | August 2008 20 |
|
|
I got mine working, not sure if its the most efficient way but it does the job. You will need to change the User ID & IP for it to work with your system.
Hope this helps.
Luke
Turn Lights On --
var socket = new TCPSocket(false); var result="";
var JSON_on='{"on":true, "sat":212, "bri":254,"hue":13123}';
function getInfos(commands) { socket.write('PUT /api/Hue User ID Here/groups/all/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);
}
socket.onConnect = function() { getInfos(JSON_on); };
socket.onData = function() {
};
socket.onClose = function() { socket = null }
socket.onIOerror = function() { System.print("error"); try { socket.close() socket = null } catch(e) {} }
socket.connect('Hue Bridge IP Address Here', 80, 3000);
Lights Off --
var socket = new TCPSocket(false); var result="";
var JSON_on='{"on":false}';
function getInfos(commands) { socket.write('PUT /api/Hue User ID Here/groups/all/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);
}
socket.onConnect = function() { getInfos(JSON_on); };
socket.onData = function() {
};
socket.onClose = function() { socket = null }
socket.onIOerror = function() { System.print("error"); try { socket.close() socket = null } catch(e) {} }
socket.connect('Hue Bridge IP Address Here', 80, 3000);
|
Panasonic TX65-DX902*Onkyo-TX-NR5007*Mordaunt Short Alumni 11.2*Philips Pronto TSU9600/ RFX9600 |
|
Post 23 made on Tuesday January 24, 2017 at 18:50 |
luke2008 Long Time Member |
Joined: Posts: | August 2008 20 |
|
|
If you want to change the colour the lights turn on at just change the settings in this part.
var JSON_on='{"on":true, "sat":212, "bri":254,"hue":13123}';
|
Panasonic TX65-DX902*Onkyo-TX-NR5007*Mordaunt Short Alumni 11.2*Philips Pronto TSU9600/ RFX9600 |
|
Post 24 made on Saturday January 28, 2017 at 07:51 |
calston Long Time Member |
Joined: Posts: | March 2005 115 |
|
|
Many thanks for this - how do I switch a specific light on and off - i've identified the specific reference number for each lamp Is it a case of changing in the following "all" to the specific ID of the lamp? socket.write('PUT /api/Hue User ID Here/groups/all/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);
|
|
Post 25 made on Sunday January 29, 2017 at 10:24 |
luke2008 Long Time Member |
Joined: Posts: | August 2008 20 |
|
|
Yep pretty much, you can control individual lights by changing the number that is assigned to them by the bridge.
socket.write('PUT /api/Hue Login Here/lights/Light Number Here/state/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);
Or if it's useful you can group them and control all lights in a group as well.
socket.write('PUT /api/Hue Login Here/groups/Light Group Here/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);
Luke
|
Panasonic TX65-DX902*Onkyo-TX-NR5007*Mordaunt Short Alumni 11.2*Philips Pronto TSU9600/ RFX9600 |
|
Post 26 made on Sunday February 5, 2017 at 02:36 |
Raggedroy Lurking Member |
Joined: Posts: | February 2017 1 |
|
|
Hi all, how do I request my randomly generated user id from the Hue and use it in the script? Luke's post is very informative and has helped massively. It looks like the request needs to come from my TSU9600 and not another device and transferred across. I would like to be able to control preset scenes on my Hue lighting.
Cheers
Roy
|
|
Post 27 made on Monday February 13, 2017 at 19:48 |
khara Long Time Member |
Joined: Posts: | April 2006 12 |
|
|
Hi, Can someone upload the config templates for some of those? I need a good example to start with...please.
|
|
Post 28 made on Thursday February 16, 2017 at 09:06 |
kapsreiter Long Time Member |
Joined: Posts: | November 2006 48 |
|
|
i Need also help to Switch a hue plug or lamp vie MY pronto 9400
could someone email me his config please
to
pinballer @ gmx.net
thank you
tom
|
|
Post 29 made on Sunday February 19, 2017 at 09:27 |
bobsilesia Lurking Member |
Joined: Posts: | February 2017 1 |
|
|
Does it work with version 1.0 or 2.0 hue bridge?edit: On version 2.0 of the bridge works well. Could connect the wheel to control the colors. Useful link for other users: [Link: developers.meethue.com]edit: Plus color temperature: JSON_on='{"on":true,"hue":10000,"bri":255,"sat":250,"ct":500,"colormode":"hs"}';
Last edited by bobsilesia on February 24, 2017 14:04.
|
|
Post 30 made on Wednesday March 1, 2017 at 19:41 |
khara Long Time Member |
Joined: Posts: | April 2006 12 |
|
|
That sounds awesome. Could you please upload your config file?
|
|
|
Before you can reply to a message... |
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now. |
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.
|
|