Colorpicker not shown Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Colorpicker not shown

Post by michelscholte »

I have several Philips Hue White Ambiance lights (no color). In Domoticz I can control the colortemperature, but in Dashticz the colorpicker is not shown. I've added the colorpicker-setting to the generic settings and the block settings in the config.js file, but no result.

blocks['lamp eettafel'] = {
idx: 1116,
title: 'Lamp Eettafel',
last_update: false,
colorpicker: 2,
}


config['auto_positioning'] = 0;
config['colorpicker'] = 2;
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
Lokonli
Posts: 2296
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Colorpicker not shown

Post by Lokonli »

Maybe it's not working with your device type yet (Philips Hue)

Can you post the Domoticz json device info:

Code: Select all

http://<domoticz ip:port>/json.htm?type=devices&rid=123
(replace 123 with your Domoticz device id)
Lokonli
Posts: 2296
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Colorpicker not shown

Post by Lokonli »

and what is your exact Dashticz version?

If you open Dashticz in Chrome, press F12 to open DevTools, and refresh Dashticz:
Do you see any error in the DevTools console tab?
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Colorpicker not shown

Post by michelscholte »

Lokonli,

I'm using version 3.6.6 (beta branch)

Below the Json device Info:
{
"ActTime" : 1604740178,
"AstrTwilightEnd" : "18:59",
"AstrTwilightStart" : "05:53",
"CivTwilightEnd" : "17:40",
"CivTwilightStart" : "07:12",
"DayLength" : "09:15",
"NautTwilightEnd" : "18:20",
"NautTwilightStart" : "06:32",
"ServerTime" : "2020-11-07 10:09:38",
"SunAtSouth" : "12:26",
"Sunrise" : "07:49",
"Sunset" : "17:04",
"app_version" : "2020.2 (build 12501)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Color" : "{\"b\":0,\"cw\":70,\"g\":0,\"m\":2,\"r\":0,\"t\":185,\"ww\":185}",
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"DimmerType" : "abs",
"Favorite" : 0,
"HardwareID" : 8,
"HardwareName" : "Philips Hue",
"HardwareType" : "Philips Hue Bridge",
"HardwareTypeVal" : 38,
"HaveDimmer" : true,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "1",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2020-11-06 23:18:25",
"Level" : 51,
"LevelInt" : 51,
"MaxDimLevel" : 100,
"Name" : "Lamp Staand TV Hue",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "WW",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Color Switch",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "1081"
}
],
"status" : "OK",
"title" : "Devices"
}
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Colorpicker not shown

Post by michelscholte »

I only have 2 warnings:


bundle.js?t=6:345 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ bundle.js?t=6:345
(anonymous) @ bundle.js?t=6:345
__webpack_require__ @ bundle.js?t=6:1
(anonymous) @ bundle.js?t=6:281
__webpack_require__ @ bundle.js?t=6:1
(anonymous) @ bundle.js?t=6:1
(anonymous) @ bundle.js?t=6:1
content.js:5 --------init----------- http://192.168.1.115:8082/
VM219:121 {AddjMulti: 1, AddjMulti2: 1, AddjValue: 0, AddjValue2: 0, BatteryLevel: 255, …}
VM219:121 {AddjMulti: 1, AddjMulti2: 1, AddjValue: 0, AddjValue2: 0, BatteryLevel: 255, …}AddjMulti: 1AddjMulti2: 1AddjValue: 0AddjValue2: 0BatteryLevel: 255CameraIdx: "2"CustomImage: 101Data: "On"Description: ""DimmerType: "none"Favorite: 0HardwareID: 1HardwareName: "Dummy"HardwareType: "Dummy (Does nothing, use for virtual switches only)"HardwareTypeVal: 15HaveDimmer: falseHaveGroupCmd: trueHaveTimeout: falseID: "72"Image: "Foscam"IsSubDevice: falseLastUpdate: "2020-11-02 20:33:53"Level: 0LevelInt: 0MaxDimLevel: 0Name: "Camera Havendijk 38"Notifications: "false"PlanID: "0"PlanIDs: [0]Protected: falseShowNotifications: trueSignalLevel: "-"Status: "On"StrParam1: ""StrParam2: ""SubType: "X10"SwitchType: "On/Off"SwitchTypeVal: 0Timers: "false"Type: "Lighting 1"TypeImg: "lightbulb"Unit: 10Used: 1UsedByCamera: trueXOffset: "0"YOffset: "0"idx: "2610"__proto__: Object
VM219:135 On
VM219:135 On
bundle.js?t=6:305 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
handleStringBlock @ js/blocks.js:529
getBlock @ js/blocks.js:66
buildScreens @ js/main.js:676
onLoad @ js/main.js:398
(anonymous) @ js/main.js:293
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
(anonymous) @ js/main.js:241
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
(anonymous) @ js/main.js:217
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
(anonymous) @ js/main.js:210
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
(anonymous) @ js/dashticz.js:81
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
Deferred.jQuery.each.Y.<computed> @ bundle.js?t=6:305
(anonymous) @ js/domoticz-api.js:101
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
jQuery.each.jQuery.<computed> @ bundle.js?t=6:305
newRequest @ js/domoticz-api.js:76
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
add @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
Deferred @ bundle.js?t=6:305
then @ bundle.js?t=6:305
domoticzRequest @ js/domoticz-api.js:53
requestSettings @ js/domoticz-api.js:440
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
Deferred.jQuery.each.Y.<computed> @ bundle.js?t=6:305
(anonymous) @ js/domoticz-api.js:101
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
setTimeout (async)
(anonymous) @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fire @ bundle.js?t=6:305
fireWith @ bundle.js?t=6:305
done @ bundle.js?t=6:305
(anonymous) @ bundle.js?t=6:305
load (async)
send @ bundle.js?t=6:305
ajax @ bundle.js?t=6:305
jQuery.each.jQuery.<computed> @ bundle.js?t=6:305
newRequest @ js/domoticz-api.js:76
mightThrow @ bundle.js?t=6:305
F @ bundle.js?t=6:305
Lokonli
Posts: 2296
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Colorpicker not shown

Post by Lokonli »

You can ignore the warnings.

I'll check your device type.


Sent from my SM-A320FL using Tapatalk

Lokonli
Posts: 2296
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Colorpicker not shown

Post by Lokonli »

michelscholte wrote: Saturday 07 November 2020 10:18 Lokonli,

I'm using version 3.6.6 (beta branch)

Below the Json device Info:
{
"ActTime" : 1604740178,
"AstrTwilightEnd" : "18:59",
"AstrTwilightStart" : "05:53",
"CivTwilightEnd" : "17:40",
"CivTwilightStart" : "07:12",
"DayLength" : "09:15",
"NautTwilightEnd" : "18:20",
"NautTwilightStart" : "06:32",
"ServerTime" : "2020-11-07 10:09:38",
"SunAtSouth" : "12:26",
"Sunrise" : "07:49",
"Sunset" : "17:04",
"app_version" : "2020.2 (build 12501)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Color" : "{\"b\":0,\"cw\":70,\"g\":0,\"m\":2,\"r\":0,\"t\":185,\"ww\":185}",
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"DimmerType" : "abs",
"Favorite" : 0,
"HardwareID" : 8,
"HardwareName" : "Philips Hue",
"HardwareType" : "Philips Hue Bridge",
"HardwareTypeVal" : 38,
"HaveDimmer" : true,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "1",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2020-11-06 23:18:25",
"Level" : 51,
"LevelInt" : 51,
"MaxDimLevel" : 100,
"Name" : "Lamp Staand TV Hue",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "WW",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Color Switch",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "1081"
}
],
"status" : "OK",
"title" : "Devices"
}
I've added support for dimmers with SubType 'WW' to latest beta.

Can you test?

(I don't have Philips Hue WW lights, so I can't test myself)
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Colorpicker not shown

Post by michelscholte »

It is working perfectly.

Thanks again.

Regards,
Michel
Post Reply