We have moved at community.getvera.com

Author Topic: Setting Hue Scene in luup  (Read 1008 times)

Offline actran70

  • Newbie
  • *
  • Posts: 18
  • Karma: +3/-0
Setting Hue Scene in luup
« on: November 19, 2017, 06:32:02 pm »
Hi everyone,

I am using Philips Hue 2 plugin with my recently bought Hue color bulbs and hub.   I am able to switch Hue scenes in UI7.  I have a Vera Plus.

I would like to set my Hue to a specific Hue scene using luup code.  Here my function:

function set_hue_scene(deviceID,sceneValue)
  luup.call_action("urn:micasaverde-com:serviceId:PhilipsHue1","SetTarget",{ newTargetValue=sceneValue },deviceID)

My Hue plug is deviceID = 94.
For Hue scene, I want to set it to "Concentrate" preset where sceneValue = Ycxb2OsdyMOPPyL
Does the call_action above look right to you?  What shoud "newTargetValue" be?

Thank you.