setRGB() how to  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
kroonp
Posts: 43
Joined: Friday 17 July 2020 11:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

setRGB() how to

Post by kroonp »

Hello all,

In domoticz I set the color of a lamp to a color that I like. This is FEBC54 in the domoticz color choices. In Photoshop, this color in RGB is 255-205-102. However, if I setRGB(255,204,102) in a dzVents script, I get a different color. Is there a way to set in dzvents a color to match the color set in domoticz's default app?

Thankx,
Peter
kroonp
Posts: 43
Joined: Friday 17 July 2020 11:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: setRGB() how to

Post by kroonp »

setRGB(255,204,102) is a type error must beset setRGB(255,205,102)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: setRGB() how to

Post by waaren »

kroonp wrote: Sunday 15 November 2020 13:54 In domoticz I set the color of a lamp to a color that I like. This is FEBC54 in the domoticz color choices.
FEBC54 should be equivalent to setRGB(254, 188, 84 )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
kroonp
Posts: 43
Joined: Friday 17 July 2020 11:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: setRGB() how to  [Solved]

Post by kroonp »

Thankx Waaren!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest