Color slider not visible/available in Dashticz?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Color slider not visible/available in Dashticz?

Post 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... :oops:

Some details:

Screenshot of the switch in Domoticz:

Image

Screenshot of details of the switch (122):

Image

The same switch in Dashticz:

Image

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 :cry:

Code: Select all

var eettafel                   = 122;
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
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Color slider not visible/available in Dashticz?

Post by clinkadink »

You could try checking the device's data in Dashticz by ....

Code: Select all

console.log(alldevices[122]);
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');
}
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post by Sjonnie2017 »

Tx! Will check this evening and post back results.

Greetz,
Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post 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. :oops: I know it is silly but can you explain in detail what I should do?

Thank you!

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post 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
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Color slider not visible/available in Dashticz?

Post 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
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post by Sjonnie2017 »

Of course :D

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
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Color slider not visible/available in Dashticz?

Post by Lokonli »

Could you test latest beta?
(I don't have a RGBWWZ device, so I was not able to test)
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post 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?
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Color slider not visible/available in Dashticz?

Post 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.
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Color slider not visible/available in Dashticz?

Post by Sjonnie2017 »

At least there is no discussion if I use the latest version 😉
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest