Set RGB colour - Philips Hue lamps

Moderator: Telldus

Post Reply
jacke
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Set RGB colour - Philips Hue lamps

Post by jacke »

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 10797 times
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Set RGB colour - Philips Hue lamps

Post by micke.prag »

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 Mar 17, 2023 9:45 am

Re: Set RGB colour - Philips Hue lamps

Post by jacke »

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 10782 times
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Set RGB colour - Philips Hue lamps

Post by micke.prag »

Do you get anything in the device log?
Micke Prag
Software
Telldus Technologies
jacke
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Set RGB colour - Philips Hue lamps

Post by jacke »

From this script, only for the dim command, nothing from rgb command.
Attachments
Skärmklipp3.PNG
Skärmklipp3.PNG (23.15 KiB) Viewed 10775 times
TellHasse
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Set RGB colour - Philips Hue lamps

Post by TellHasse »

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