Page 1 of 1
meaning of result .getColor()
Posted: Wednesday 27 March 2024 23:20
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
Re: meaning of result .getColor()
Posted: Thursday 28 March 2024 9:31
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
Re: meaning of result .getColor()
Posted: Thursday 28 March 2024 10:27
by BartSr
thanks for your reply Walter but it's about the returned value of .getcolor() not the .setcolor()
Re: meaning of result .getColor()
Posted: Thursday 28 March 2024 19:21
by waltervl
But the values you are getting are described there..... Scroll a little bit down....
Re: meaning of result .getColor()
Posted: Thursday 28 March 2024 20:24
by BartSr
Walter, for me it's weird stuff.
what to do e.g. with ID : 5a0? Or do I overlook something?
Re: meaning of result .getColor()
Posted: Friday 29 March 2024 0:39
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¶m=getdevices&rid=IDX