Colorpicker Bug

Hey,
im experiencing a bug when trying the colorpicker “Ackolor style”. Im trying to get the widget to work with my yeelight but its just showing the color. If im trying to click on it the popup does just rarely show up and after picking nothing happens.

Here my error in console: x replaces https and ip:port cuz of restrictions

Content Security Policy: loading Source blocked inline & eval (“script-src”).

Error: l is null
rgbToHsl@x/habpanel/vendor/vendor.js:693:4103
convertTo@x/habpanel/vendor/vendor.js:693:3032
init@x/habpanel/vendor/vendor.js:693:652
link/t.toggleCKoloring@x/habpanel/vendor/vendor.js:693:6751
recurse/<@x/habpanel/vendor/vendor.js:255:335
b@x/habpanel/vendor/vendor.js:127:472
e@x/habpanel/vendor/vendor.js:281:166
$eval@x/habpanel/vendor/vendor.js:147:69
$apply@x/habpanel/vendor/vendor.js:147:302
compile/</<@x/habpanel/vendor/vendor.js:281:217
dispatch@x/lib/js/jquery-1.11.2.min.js:3:8549
add/r.handle@x/lib/js/jquery-1.11.2.min.js:3:5252

could someone help me out?

thanks in advance!

Probably the state of the item is not in the correct format like “10,20,30” (and the error is not caught), can you check?

Hey thanks for reply :slight_smile:
The HSL slider is writing this indeed but I cant trigger the ackolor style to show up and have a look. I’ve also tried the “yeelight widget” from the gallery, its not working either…

No I meant: what’s the item’s state when you open the color picker? You can retrieve it with a dummy widget for example.

The items state is a hexa
grafik|690x135
I tried the color function but it doesnt show up either

i got the popup to show up with the “scene_name” item which is empty and this is what im getting in the iobroker log when i pick a color. The browsers Inspector is showing the same error as meantioned in the first post

host.raspberrypi 2020-05-28 12:36:46.397 info Restart adapter system.adapter.yeelight-2.0 because enabled
host.raspberrypi 2020-05-28 12:36:46.397 info instance system.adapter.yeelight-2.0 terminated with code 0 (NO_ERROR)
host.raspberrypi 2020-05-28 12:36:46.396 error Caught by controller[0]: at processImmediate (internal/timers.js:456:21)
host.raspberrypi 2020-05-28 12:36:46.396 error Caught by controller[0]: at Immediate. (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4855:34)
host.raspberrypi 2020-05-28 12:36:46.396 error Caught by controller[0]: at Adapter.emit (events.js:315:20)
host.raspberrypi 2020-05-28 12:36:46.395 error Caught by controller[0]: at Adapter. (/opt/iobroker/node_modules/iobroker.yeelight-2/main.js:44:21)
host.raspberrypi 2020-05-28 12:36:46.395 error Caught by controller[0]: at uploadState (/opt/iobroker/node_modules/iobroker.yeelight-2/main.js:111:39)
host.raspberrypi 2020-05-28 12:36:46.395 error Caught by controller[0]: at Object.parse (/opt/iobroker/node_modules/circular-json/build/circular-json.node.js:196:32)
host.raspberrypi 2020-05-28 12:36:46.394 error Caught by controller[0]: at JSON.parse ()
host.raspberrypi 2020-05-28 12:36:46.393 error Caught by controller[0]: SyntaxError: Unexpected token N in JSON at position 0
yeelight-2.0 2020-05-28 12:36:45.855 info (14008) Terminated (NO_ERROR): Without reason
yeelight-2.0 2020-05-28 12:36:45.853 info (14008) terminating
yeelight-2.0 2020-05-28 12:36:45.790 info (14008) cleaned everything up…
yeelight-2.0 2020-05-28 12:36:45.786 error (14008) SyntaxError: Unexpected token N in JSON at position 0 at JSON.parse () at Object.parse (/opt/iobroker/node_modules/circular-json/build/circular-json.node.js:196:32) at u
yeelight-2.0 2020-05-28 12:36:45.783 error (14008) uncaught exception: Unexpected token N in JSON at position 0

The official HABPanel is for openHAB only, I’m not involved with the iobroker fork. You should head over their forum for support.