We have moved at community.getvera.com

Author Topic: Lua Commands with the AltHue Plugin - Hue, Saturation, Effect etc.  (Read 761 times)

Offline scorp10

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Lua Commands with the AltHue Plugin - Hue, Saturation, Effect etc.
« Reply #15 on: January 05, 2019, 04:06:40 pm »
Hi!

First of all, thank you so much for this plugin, really appreciate it!

I'm trying to create a Vera scene which sets the HueScene "Bright" for all devices. I can see the HueSceneIds in the tab "Hue Scenes" in the plugin device, but with my limited knowledge I'm not sure how the luup code should look like.
From this thread and the XMLs, it looks like I should use RunHueScene(lul_device,hueSceneID)

Could anyone provide some input if for example I want to trigger the two scenes: TQpUirg9QbVwJ9l, yNjl3gxoMhUM6HL which seem to group by room and include multiple devices.

Thanks!
you can use UI7 advanced scene editor and enter the action / parameters.
or better ALTUI.

both screen shot attached.


you can also use the lua section wth the standard lua code for running a device 's action. do not forget the return true
Code: [Select]
luup.call_action("urn:upnp-org:serviceId:althue1", "RunHueScene", {["hueSceneID"] = xxxx }, DEVID_ALTHUE)
return true

Got it! The advanced editor was new to me, thanks!