Retrieve (new) RGB value from virtual RGB switch
Posted: Wednesday 16 January 2019 0:28
Hi
I would like to use a virtual RGB dimmer (created via "Create virtual sensors"' on Dummy hardware device)
to control an RGB strip via HTTP. When i change the RGB value via the color picker in domoticz UI, i see the following log entry:
2019-01-16 00:09:17.225 Status: setcolbrightnessvalue: ID: 29aa, bri: 94, color: '{m: 3, RGB: 40ff1b, CWWW: 0000, CT: 0}'
So via the log entry the information that i am after (want to use it in a script) is available...
My script is triggered but i cannot retrieve the value for RGB in the scripts, how do i do this?
I managed to retrieve previous RGB value via this script line:
setting = domoticz.devices(idx).color
After this setting = {m: 3, RGB: 40aa1b, CWWW: 0000, CT: 0} (or something similar) but it contains the previously selected RGB value and not the value as indicated in the log entry, the new value
Note : domoticz.devices(idx).rawData[1] only contains the level of the dimmer (aka "bri" value above. no further raw data available.
Thanks for responding...
I would like to use a virtual RGB dimmer (created via "Create virtual sensors"' on Dummy hardware device)
to control an RGB strip via HTTP. When i change the RGB value via the color picker in domoticz UI, i see the following log entry:
2019-01-16 00:09:17.225 Status: setcolbrightnessvalue: ID: 29aa, bri: 94, color: '{m: 3, RGB: 40ff1b, CWWW: 0000, CT: 0}'
So via the log entry the information that i am after (want to use it in a script) is available...
My script is triggered but i cannot retrieve the value for RGB in the scripts, how do i do this?
I managed to retrieve previous RGB value via this script line:
setting = domoticz.devices(idx).color
After this setting = {m: 3, RGB: 40aa1b, CWWW: 0000, CT: 0} (or something similar) but it contains the previously selected RGB value and not the value as indicated in the log entry, the new value
Note : domoticz.devices(idx).rawData[1] only contains the level of the dimmer (aka "bri" value above. no further raw data available.
Thanks for responding...