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...
Retrieve (new) RGB value from virtual RGB switch
Moderator: leecollings
-
- Posts: 4
- Joined: Thursday 18 May 2017 22:06
- Target OS: Linux
- Domoticz version:
- Contact:
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Retrieve (new) RGB value from virtual RGB switch
There are quite a number of topics on this already. Check for example this onewifiminime wrote: ↑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...
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 1
- Joined: Wednesday 20 February 2019 23:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Retrieve (new) RGB value from virtual RGB switch
Hi.
Have you found the solution? I have the same problem. :/
Have you found the solution? I have the same problem. :/
Who is online
Users browsing this forum: No registered users and 1 guest