Page 1 of 1
Color slider not visible/available in Dashticz?
Posted: Saturday 04 January 2020 15:11
by Sjonnie2017
I am trying to figure out how to get the color slider to show up in Dashticz. I have been reading through some threads over here after a search for "color slider" but all I found were ancient threads/posts that entailed hacking around in main.js or custom.css. I was under the impression the color slider was added to a version of Dashticz (V2) some time ago but I can't get it to work out of the box.
So probably I am missing something very obvious here...
Some details:
Screenshot of the switch in Domoticz:
Screenshot of details of the switch (122):
The same switch in Dashticz:
Settings in var config:
Code: Select all
config['no_rgb'] = 0;
config['hide_off_button'] = 0;
Changing 'no_rgb' to 1 and/or changing 'hide_button_off' to 1 made no difference
Settings for the block:
Code: Select all
// Dimmers - Eettafel
blocks[eettafel] = {}
blocks[eettafel]['title'] = 'Eettafel';
blocks[eettafel]['width'] = 12;
//blocks[eettafel]['hide_data'] = false;
What am I missing in Dashticz or what do I have to configure?
TIA
Greetz,
Sjonnie
Re: Color slider not visible/available in Dashticz?
Posted: Monday 06 January 2020 0:55
by clinkadink
You could try checking the device's data in Dashticz by ....
The code seems to be looking for a device subtype of RGB, RGBW or RGBWW. If that isn't there, the slide won't show.
Code: Select all
function isRGBDeviceAndEnabled(device) {
return (typeof (settings['no_rgb']) === 'undefined'
|| (typeof (settings['no_rgb']) !== 'undefined'
&& parseFloat(settings['no_rgb']) === 0))
&& (device['SubType'] === 'RGBW' || device['SubType'] === 'RGBWW' || device['SubType'] === 'RGB');
}
Re: Color slider not visible/available in Dashticz?
Posted: Monday 06 January 2020 5:53
by Sjonnie2017
Tx! Will check this evening and post back results.
Greetz,
Sjonnie
Re: Color slider not visible/available in Dashticz?
Posted: Monday 06 January 2020 18:31
by Sjonnie2017
OK, tried to figure out how to use your first code fragment. I pasted it in custom.js like so:
Code: Select all
function getStatus_122(idx, value, device) {
console.log(device.Level)
}
Saved the code and refreshed Dashticz web interface (although I did not believe that would do the trick). Read the docs but couldn't find an indication what to do. Sorry, I am at a loss here.

I know it is silly but can you explain in detail what I should do?
Thank you!
Greetz,
Sjonnie
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 14:23
by Sjonnie2017
Tried the second part of the code but no joy. I am stuck.
One thing I noticed though is that the device is identified in Domoticz as "RGBWWZ". Don't know if the code should be adapted to that
Any tips are highly appreciated!
Greetz,
Sjonnie
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 16:24
by Lokonli
Sjonnie2017 wrote: ↑Friday 10 January 2020 14:23
Tried the second part of the code but no joy. I am stuck.
One thing I noticed though is that the device is identified in Domoticz as "RGBWWZ". Don't know if the code should be adapted to that
Any tips are highly appreciated!
Greetz,
Sjonnie
Yes, probably the code needs to be adapted for that. Can you post the output of:
http://<domoticz-ip>/json.htm?type=devices&rid=122
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 16:37
by Sjonnie2017
Of course
Code: Select all
ActTime 1578670530
AstrTwilightEnd "18:53"
AstrTwilightStart "06:42"
CivTwilightEnd "17:29"
CivTwilightStart "08:06"
DayLength "08:03"
NautTwilightEnd "18:12"
NautTwilightStart "07:23"
ServerTime "2020-01-10 16:35:30"
SunAtSouth "12:48"
Sunrise "08:46"
Sunset "16:49"
app_version "4.10717"
result
0
AddjMulti 1
AddjMulti2 1
AddjValue 0
AddjValue2 0
BatteryLevel 255
Color ""
CustomImage 0
Data "Off"
Description ""
DimmerType "abs"
Favorite 1
HardwareID 11
HardwareName "ConBee2"
HardwareType "deCONZ plugin"
HardwareTypeVal 94
HaveDimmer true
HaveGroupCmd false
HaveTimeout false
ID "GROUP_Verlichting_Tafel"
Image "Light"
IsSubDevice false
LastUpdate "2020-01-10 14:15:36"
Level 0
LevelInt 0
MaxDimLevel 100
Name "Eettafel"
Notifications "false"
PlanID "0"
PlanIDs
0 0
Protected false
ShowNotifications true
SignalLevel "-"
Status "Off"
StrParam1 ""
StrParam2 ""
SubType "RGBWWZ"
SwitchType "Dimmer"
SwitchTypeVal 7
Timers "false"
Type "Color Switch"
TypeImg "dimmer"
Unit 7
Used 1
UsedByCamera false
XOffset "0"
YOffset "0"
idx "122"
status "OK"
title "Devices"
Thank you for your support!!
Greetz,
Sjonnie
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 17:11
by Lokonli
Could you test latest beta?
(I don't have a RGBWWZ device, so I was not able to test)
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 17:13
by Sjonnie2017
I would be happy to. I am currently on 3.3.0. Is there an even newer version?
Greetz,
Sjonnie
EDIT: Would it be helpful to post a bug report on github?
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 17:55
by Lokonli
Sjonnie2017 wrote: ↑Friday 10 January 2020 17:13
I would be happy to. I am currently on 3.3.0. Is there an even newer version?
Greetz,
Sjonnie
EDIT: Would it be helpful to post a bug report on github?
I did not change the version number yet. It's the version of one hour ago.
Re: Color slider not visible/available in Dashticz?
Posted: Friday 10 January 2020 18:32
by Sjonnie2017
At least there is no discussion if I use the latest version
