Virtual RGBW dimmer

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post
cherowley
Posts: 81
Joined: Tuesday 24 February 2015 16:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Virtual RGBW dimmer

Post by cherowley » Tuesday 09 February 2016 13:12

At present this device is not usable as it does not pass values to blockly or lua scripts.

Is it on the roadmap to make this device functional?

Which devs look after this?

Thanks!

daandamhuis
Posts: 23
Joined: Tuesday 19 January 2016 11:47
Target OS: Raspberry Pi
Domoticz version: 2.4608
Location: 's-Hertogenbosch
Contact:

Re: Virtual RGBW dimmer

Post by daandamhuis » Tuesday 09 February 2016 13:49

I Would like it, since I have some device with RGB Leds strip and i would like to pass RGB values to it!
RPi Model 2: Domoticz Server (Beta)
RPi Model B+: Smart Meter Slave (Stable)
Particle Photon (2x): Prototyping, Controlling LEDS and gathering Sensor data for Domoticz
Arduino Uno R3: with CC2500 Shield for Philips LivingColor Lights 1st Gen.

niceandeasy
Posts: 146
Joined: Thursday 28 January 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Virtual RGBW dimmer

Post by niceandeasy » Wednesday 24 February 2016 0:36

The web GUI shows the color picker. A color can be picked. Every time you pick a color, the GUI sends this to Domoticz:
domoticz-host:8080/json.htm?type=command&param=setcolbrightnessvalue&idx=313&hue=343&brightness=97&iswhite=false

Domoticz answers:
{
"status" : "OK",
"title" : "SetColBrightnessValue"
}

But the hue-value is not known, if you would ask Domoticz about this switch:

Code: Select all

      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level, Level: 97 %",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "Dummy",
         "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
         "HardwareTypeVal" : 15,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "00082312",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2016-02-23 22:41:13",
         "Level" : 97,
         "LevelInt" : 97,
         "MaxDimLevel" : 100,
         "Name" : "RGBW test",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 97 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBW",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Lighting Limitless/Applamp",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "313"
      }
Please fix this: make the hue value passed by the GUI available as a value that can be queried by json and LUA.
Or, better yet: make it a hex RRGGBB value.
After that, please look into the colorpicker and make it pass not only hue but also the saturation or the hex RRGGBB value, so it becomes really usable.

niceandeasy
Posts: 146
Joined: Thursday 28 January 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Virtual RGBW dimmer

Post by niceandeasy » Wednesday 24 February 2016 20:06

The Domoticz colorpicker returns hue and brightness and therefore it cannot be used for white-ish light colors. Other users which have compatible hardware report that only disco-like colors can be selected, so we must assume, saturation is fixed at 100% by the switch/device that receives the color value from the picker. ...or should receive, because I didn't find any evidence that the dummy RGBW switch receives it in a usable form.
And if it's usable, somehow, it's not documented anywhere.
- So the GUI needs to be changed: the colorpicker should pass saturation, too.
- And the dummy RGBW switch needs to be changed. It should store the color info in a usable form.

I'm planning to work around that. I found a nice, configurable colorpicker here: https://github.com/vanderlee/colorpicker
I want to use a text switch. I learnt in this forum that HTML in the text is supported, so, I need to 'craft' some HTML that needs to popup the colorpicker and after selecting the color, it needs to output the color values to a user variable or maybe via another way that is usable in LUA. Starting with a 3-byte hex RGB string, because that's how my LED controllers like to receive their color.

Unfortunately, I'm newbie at html/jquery/events and all that, so it could take a long time. Any help is appreciated.

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Virtual RGBW dimmer

Post by gizmocuz » Wednesday 24 February 2016 20:14

We are aware of this, and it looks we are going to rebuild everything to RGB(W/CW)
the target was to do this in release 3.x scheduled 1 march, but it is to much work and need a lot of time

Then we have a user on github wanting to keep the Hue...

Anyway, going to pick this up in March
Quality outlives Quantity!

niceandeasy
Posts: 146
Joined: Thursday 28 January 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Virtual RGBW dimmer

Post by niceandeasy » Wednesday 24 February 2016 22:07

That's great news, Gizmocuz. Thank you.

RGB WW CW systems are already widely available so Domoticz needs to catch up.
Good to know that you're planning on a complete overhaul.

I'd be happy to help testing.

deennoo
Posts: 897
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Virtual RGBW dimmer

Post by deennoo » Thursday 25 February 2016 0:25

Great !! Please don't forgert MiLight and Svalues
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

gartensofa
Posts: 1
Joined: Thursday 10 March 2016 1:04
Target OS: -
Domoticz version:
Contact:

Re: Virtual RGBW dimmer

Post by gartensofa » Thursday 10 March 2016 15:51

Is it possible by now to ask domoticz for a hex RRGGBB (or similar) of a dummy rgb-dimmer? Cause i have no luck finding it on the latest beta. If anybody knows, please give me a nudge in the right direction. Thanks :-)

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Virtual RGBW dimmer

Post by gizmocuz » Friday 11 March 2016 10:07

No, not yet.
This was to much work to do in version 3.xxxx, and needs to be picked up by someone with a lot of patience and time
Quality outlives Quantity!

niceandeasy
Posts: 146
Joined: Thursday 28 January 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Virtual RGBW dimmer

Post by niceandeasy » Monday 13 June 2016 23:56

How are things going? I'd love to test a new RGB dummy switch.
gizmocuz wrote:...
Then we have a user on github wanting to keep the Hue...
...
...Hue without saturation as it is now? ...poor user... I feel sorry for that user.

Anyway... plz keep us posted.
Thanks.

shkaff
Posts: 24
Joined: Friday 11 December 2015 11:29
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Virtual RGBW dimmer

Post by shkaff » Tuesday 20 September 2016 10:31

Folks, I wonder if this functionality became available

According to advertisement of app Domotix at the apple store, it's usable.
So if I have this app on my iPhone then it should somehow control my RGB devices, shouldn't it?
Image

Cornholio1234
Posts: 28
Joined: Thursday 03 March 2016 12:01
Target OS: Windows
Domoticz version: V3.4964
Location: Germany
Contact:

Re: Virtual RGBW dimmer

Post by Cornholio1234 » Tuesday 20 September 2016 10:55

I am quite sure controlling RBG (and brightness) is possible in many ways (like in the app you are pointing to). Missing is just a nice feature to control the 4th channel of RBGW controllers and strips (to make fancy pastel colors).
Windows Server, Aeotec Z-Stick Gen5, V3.4964

shkaff
Posts: 24
Joined: Friday 11 December 2015 11:29
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Virtual RGBW dimmer

Post by shkaff » Tuesday 20 September 2016 14:46

According to my understanding of the situation, there is an RGB switch with a dimmer and color picker, however it does not send any info of RGB values and therefore LED devices cannot be controlled in terms of setting variable colors.

So if you know those ways of controlling RBG it would be much appreciated if you share the info!

Cornholio1234
Posts: 28
Joined: Thursday 03 March 2016 12:01
Target OS: Windows
Domoticz version: V3.4964
Location: Germany
Contact:

Re: Virtual RGBW dimmer

Post by Cornholio1234 » Wednesday 28 September 2016 10:23

What do you mean with "variable colors" do you want something like "if blue make it red, if red make it green, if green make it blue"?

If you just want to change the color, just use the api as described above like

commandArray['OpenURL']='http://127.0.0.1:8080/json.htm?type=com ... hite=false'
Windows Server, Aeotec Z-Stick Gen5, V3.4964

shkaff
Posts: 24
Joined: Friday 11 December 2015 11:29
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Virtual RGBW dimmer

Post by shkaff » Wednesday 28 September 2016 10:50

I expected to use this control widget at the web interface of Domoticz to pick a color and send the RGB information to the backend where it could be processed by many ways (LUA scripts, MQTT processing by Node Red...)

However when I setup this widget in the web interface of Domoticz and try to pick a color then nothing useful happens and I cannot catch the RGB information at the backend because it is not sent to the backend

MQTT topic domoticz/out provides no RGB information, and JSON requests returns no RGB information of the color I picked



Отправлено с моего iPhone используя Tapatalk

Cornholio1234
Posts: 28
Joined: Thursday 03 March 2016 12:01
Target OS: Windows
Domoticz version: V3.4964
Location: Germany
Contact:

Re: Virtual RGBW dimmer

Post by Cornholio1234 » Wednesday 28 September 2016 11:18

now I finally get it... I dont know any way to get the current color for a RGB device :( If you are using a Fibaro Z-Wave RGB Device you can grab the color parts (0%-on) from the corresponding devices for each channel.

Just out of curiosity - what do you want to do with the color? Make a second RGB the same color like the triggered device?
Windows Server, Aeotec Z-Stick Gen5, V3.4964

niceandeasy
Posts: 146
Joined: Thursday 28 January 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Virtual RGBW dimmer

Post by niceandeasy » Saturday 05 November 2016 1:12

gizmocuz wrote:No, not yet.
This was to much work to do in version 3.xxxx, and needs to be picked up by someone with a lot of patience and time
Blimey!
Well, I hope, there will be time to implement some kind of RGB(w) colourpicker dummy switch in Domoticz, soon. Or a page under 'custom' that will show a colourpicker that will put its input in a uservariable.
So, IMHO, it can happily exist in Domoticz, next to what is already there for coloured lights.
There's so many kinds RGB LED stuff out there, nowadays. That is what we all want, except for that one GitHub user that is clinging to HSB.

I have reverted to stable for now, but I'd be happy to go beta again, for testing this, as soon as it will be available. I've been waiting for it since I started to use Domoticz.

Anyway, I'm very happy with the latest stable. A big THANK YOU. Keep up the good work.

User avatar
sincze
Posts: 686
Joined: Monday 02 June 2014 22:46
Target OS: Linux
Domoticz version: 3.7546
Location: Netherlands
Contact:

Re: Virtual RGBW dimmer

Post by sincze » Tuesday 27 December 2016 11:25

Did not know this command.
Overlooked in the wiki I think.

'http://127.0.0.1:8080/json.htm?type=com ... hite=false

Let me see if I can work with it in combination of my milights :)
Running Domoticz since 2013 with Cubietruck
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Swifty
Posts: 64
Joined: Saturday 31 December 2016 22:03
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Virtual RGBW dimmer

Post by Swifty » Sunday 03 September 2017 18:34

Did anything ever come of getting a virtual RGB device that makes selected colour available to lua etc?

Its the only thing that I'm currently not able to achieve in my domoticz setup.. Even though it seems like it would be a fairly common requirement.

Wob76
Posts: 50
Joined: Wednesday 19 April 2017 6:31
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual RGBW dimmer

Post by Wob76 » Tuesday 12 September 2017 11:29

Also interested in this, and some sort of documentation on the mqtt commands for a rgbw switch, at the moment all is see is some odd nvalue and svalue cahnges that I can't work out.

Wob

Sent from my SM-G935F using Tapatalk


Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests