Set RGB colour - Philips Hue lamps

Moderator: Telldus

Post Reply
jacke
Posts: 3
Joined: Fri May 25, 2018 8:32 am

Set RGB colour - Philips Hue lamps

Post by jacke » Thu Nov 01, 2018 7:45 pm

Hi

The Philips Hue Plugin works fine for me to switch on/off and dim my Hue lights however each time the power is switched off to any of them I have to reset the colour settings from the Hue App, is it possible to control the colour of the Philips Hue lamps from a LUA script?

Looking at the code for the Hue plug-in it looks to me as if the function is there and the actual plug-in does handle colour.
I have also found the function "rgb" in a LUA example but can´t get the Hue plugin/lamps to react on this command.

See attached picture of the script I´m trying, (I have used the dim command to make sure the connection to the lamp is working).

Does anyone have an idea/solution for this?

/ Jakob
Attachments
Skärmklipp.PNG
Skärmklipp.PNG (12.32 KiB) Viewed 390 times

micke.prag
Site Admin
Posts: 2225
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Re: Set RGB colour - Philips Hue lamps

Post by micke.prag » Fri Nov 02, 2018 7:56 am

The color value must be a number. Try 0xFF0000 instead.

Also, swedish characters does not work so well in lua scripts...
Micke Prag
Software
Telldus Technologies

jacke
Posts: 3
Joined: Fri May 25, 2018 8:32 am

Re: Set RGB colour - Philips Hue lamps

Post by jacke » Fri Nov 02, 2018 8:32 am

OK

I thought since it was working with the dim command the name wasn't the problem..

Anyway, updated the script to use a different lamp and entered the hex-number correct but still nothing.

Dim and on/off work but not changing colour.

/ Jakob
Attachments
Skärmklipp.PNG
Skärmklipp.PNG (11.38 KiB) Viewed 375 times

micke.prag
Site Admin
Posts: 2225
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Re: Set RGB colour - Philips Hue lamps

Post by micke.prag » Fri Nov 02, 2018 12:25 pm

Do you get anything in the device log?
Micke Prag
Software
Telldus Technologies

jacke
Posts: 3
Joined: Fri May 25, 2018 8:32 am

Re: Set RGB colour - Philips Hue lamps

Post by jacke » Fri Nov 02, 2018 12:53 pm

From this script, only for the dim command, nothing from rgb command.
Attachments
Skärmklipp3.PNG
Skärmklipp3.PNG (23.15 KiB) Viewed 368 times

TellHasse
Posts: 1
Joined: Mon Dec 03, 2018 9:43 am

Re: Set RGB colour - Philips Hue lamps

Post by TellHasse » Mon Dec 03, 2018 3:47 pm

Jag kan konstatera samma sak. Finns det någon lösning för att styra RGB för HUE lampor? Bara dimring fungerar för mig.
/Hasse

Post Reply