Author Topic: Sample Luup code for HUE integrtion  (Read 254 times)

Offline Kaizen

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
Sample Luup code for HUE integrtion
« on: June 15, 2017, 11:27:33 am »
Hi All,

I need some help in setting the color of a Hue light when a scene is activated. Simply running a scene will use the most recent color used which is what I want to avoid.

Is anyone able to share existing luup code to achieve this?

Thank you

Offline joshewing02

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Sample Luup code for HUE integrtion
« Reply #1 on: August 03, 2017, 04:39:27 pm »
+1

I am having a very hard time finding the LUUP action call for this.

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +33/-2
  • Vera 1,3 & V light
Re: Sample Luup code for HUE integrtion
« Reply #2 on: August 06, 2017, 03:02:25 am »
If you know how to use the Hue API directly then its quite easy.

I think I made a post about this somewhere in one of the hue threads.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +33/-2
  • Vera 1,3 & V light
Re: Sample Luup code for HUE integrtion
« Reply #3 on: August 06, 2017, 03:08:54 am »
....OK found it, and I posted some code snippet examples here:

http://forum.micasaverde.com/index.php/topic,12536.msg286206.html#msg286206

If you know how to use the API, then you can set a color from the app, and query the light status to find out the specific values that you need to reproduce the same color etc through your Luup code.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster