meaning of result .getColor()

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

Moderator: leecollings

Post Reply
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

meaning of result .getColor()

Post by BartSr »

Hi!

I'm playing a bit with new RGB devices.
Once I use the command .getColor() next is the return:

Code: Select all

setcolbrightnessvalue: ID: 5a0, bri: 1, color: '{m: 3, RGB: 0000ff, CWWW: ca35, CT: 53}'
Is there somewhere documentation which teaches me about the meaning?

TIA Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: meaning of result .getColor()

Post by waltervl »

What did you miss in the dzvents documentation (referring to the API documentation)?
Wiki documentation of setColor() is referring to API documentation: https://www.domoticz.com/wiki/Domoticz_ ... emperature
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: meaning of result .getColor()

Post by BartSr »

thanks for your reply Walter but it's about the returned value of .getcolor() not the .setcolor()
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: meaning of result .getColor()

Post by waltervl »

But the values you are getting are described there..... Scroll a little bit down....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: meaning of result .getColor()

Post by BartSr »

Walter, for me it's weird stuff.
what to do e.g. with ID : 5a0? Or do I overlook something?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: meaning of result .getColor()

Post by waltervl »

5A0 is 1440 in decimal form so perhaps that is the IDX of the device in hex?
You could also do a JSON getdevices API call for that Domoticz device and see if you can relate reported values

Code: Select all

 /json.htm?type=command&param=getdevices&rid=IDX
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest