Hi
Has anyone successfully managed to get Philips hue feedback working? for some reason I just can get mine working?
I can send a command no problem to all my lights, using the Hue debug I get this response each time I turn light on or off.
[
{
"success": {
"/lights/1/state/on": false
}
}
]
So, In feedback I setup "feedback matches specific data" = "/lights/2/state/on": false. Setup up a standard label (with text saying light off)l and attached label to a button in text section dynamic label. I've also tried "feedback matches a pattern"
In feedback response terminator i have tried \x0D & \x0A and both, nothing works
Any help appreciated
Philips Hue Feedback
Re: Philips Hue Feedback
Just a hunch but have you tried to debug with Hercules or whatever to visualize what the Hex terminator actually is in the Hue responses?
Just a wild guess, but that double quote, although legal AFAIK, might cause issue. You may want to replace it with a dot.
Just a wild guess, but that double quote, although legal AFAIK, might cause issue. You may want to replace it with a dot.
Re: Philips Hue Feedback
Did anyone get this working?
Re: Philips Hue Feedback
response terminator I have }
Command used to get all light info
GET /api/Y1Vpd5qwJVnjsRIdxFThJR0jxcrnZaEvrQVe0NYM/lights HTTP/1.1\x0D\x0AHOST:192.168.1.127:80\x0D\x0A\x0D\x0A
If I remember correctly I believe every time you send a command to change light you will get a response.
Command used to get all light info
GET /api/Y1Vpd5qwJVnjsRIdxFThJR0jxcrnZaEvrQVe0NYM/lights HTTP/1.1\x0D\x0AHOST:192.168.1.127:80\x0D\x0A\x0D\x0A
If I remember correctly I believe every time you send a command to change light you will get a response.
Re: Philips Hue Feedback
Thanks. Will give it another go!
Re: Philips Hue Feedback
Hi - still struggling with the feedback.. it's just come back to the front of my mind so thought I would try again!!
I absolutely get the command to send... and I can see the response format using the Hue API debug tool. I am successfully using the commands to control the lights, but what I can't do is to get the 2-way feedback configured properly in Demopad.
What I am trying to achieve is... if the feedback says light 1 is on, then set a flag so that I can highlight the "on" button. Likewise for "off". And then repeat for each of my lights!
So, can anyone help with the format they have used in the Demopad 2-way feedback section in order to capture the correct status? I think the response Hue send is still in the same format as @starwarsmike originally posted... so what would the capture phrase me in the two-way feedback?
I absolutely get the command to send... and I can see the response format using the Hue API debug tool. I am successfully using the commands to control the lights, but what I can't do is to get the 2-way feedback configured properly in Demopad.
What I am trying to achieve is... if the feedback says light 1 is on, then set a flag so that I can highlight the "on" button. Likewise for "off". And then repeat for each of my lights!
So, can anyone help with the format they have used in the Demopad 2-way feedback section in order to capture the correct status? I think the response Hue send is still in the same format as @starwarsmike originally posted... so what would the capture phrase me in the two-way feedback?
Re: Philips Hue Feedback
I'm looking at this myself so if anyone has any tips I'd appreciate it.