ioBroker/ioBroker.vis-2

[bug]: huepi is not defined on using Phillips Hue Colorpicker

Opened this issue · 0 comments

No existing issues.

  • There is no existing issue for my problem.

Describe the bug

Tried to migrate my ioBroker from PC to a new Pi4, and figure that the Colorpicker for Phillips Hue is no longer working (It is not showing up)

IoBroker log gives this Error at line 1182 in jscolor.js:

Error: can't create states object for hue.0.Hue_color_lamp_3.xy(ReferenceError: huepi is not defined): "ReferenceError: huepi is not defined\n at jscolor.fromXY (http://192.168.188.34:8082/vis-2/widgets/colorpicker/js/jscolor.js:1182:20)\n at a.onChange (:531:36)\n at t.dispatch (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:272:72)\n at Object.stop (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:720:96)\n at a._setAttrs (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:972:28)\n at a.attr (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:894:29)\n at Pe.onStateChange (http://192.168.188.34:8082/vis-2/static/js/944.515c2ab3.chunk.js:1:283819)\n at http://192.168.188.34:8082/vis-2/static/js/main.368dc292.js:2:485818\n at Array.forEach ()\n at r. (http://192.168.188.34:8082/vis-2/static/js/main.368dc292.js:2:485790)\n at r.onack (http://192.168.188.34:8082/lib/js/socket.io.js:8:10701)\n at r.onpacket (http://192.168.188.34:8082/lib/js/socket.io.js:8:10069)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.ondecoded (http://192.168.188.34:8082/lib/js/socket.io.js:6:19719)\n at a. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at a.add (http://192.168.188.34:8082/lib/js/socket.io.js:6:12198)\n at r.ondata (http://192.168.188.34:8082/lib/js/socket.io.js:6:19672)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.onPacket (http://192.168.188.34:8082/lib/js/socket.io.js:6:29177)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:6:26789)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.onPacket (http://192.168.188.34:8082/lib/js/socket.io.js:7:9597)\n at r.onData (http://192.168.188.34:8082/lib/js/socket.io.js:7:9546)\n at ws.onmessage (http://192.168.188.34:8082/lib/js/socket.io.js:8:6374)"

Line 1182 is looking like this:
var cieColor = huepi.HelperXYtoRGBforModel(this.xy[0], this.xy[1], 1.0, this.gamut);

It seems the object "huepi" is not existing!

What happend to this object/class?
Where can I find it, or which Adapter do I have to install, to make ioBroker know this class ?

Derrow

To Reproduce

Install colorpicker widgets, choose in editor mode a Phillips Hue Colorpicket, and start the visualitation, and check the ioBroker log file. It will show that the object huepi is unknown.

Expected behavior

A colorpicker should be drawn, but nothing is happing.

Screenshots & Logfiles

Error: can't create states object for hue.0.Hue_color_lamp_3.xy(ReferenceError: huepi is not defined): "ReferenceError: huepi is not defined\n at jscolor.fromXY (http://192.168.188.34:8082/vis-2/widgets/colorpicker/js/jscolor.js:1182:20)\n at a.onChange (:531:36)\n at t.dispatch (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:272:72)\n at Object.stop (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:720:96)\n at a._setAttrs (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:972:28)\n at a.attr (http://192.168.188.34:8082/vis-2/lib/js/can.custom.js:894:29)\n at Pe.onStateChange (http://192.168.188.34:8082/vis-2/static/js/944.515c2ab3.chunk.js:1:283819)\n at http://192.168.188.34:8082/vis-2/static/js/main.368dc292.js:2:485818\n at Array.forEach ()\n at r. (http://192.168.188.34:8082/vis-2/static/js/main.368dc292.js:2:485790)\n at r.onack (http://192.168.188.34:8082/lib/js/socket.io.js:8:10701)\n at r.onpacket (http://192.168.188.34:8082/lib/js/socket.io.js:8:10069)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.ondecoded (http://192.168.188.34:8082/lib/js/socket.io.js:6:19719)\n at a. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at a.add (http://192.168.188.34:8082/lib/js/socket.io.js:6:12198)\n at r.ondata (http://192.168.188.34:8082/lib/js/socket.io.js:6:19672)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:8:12155)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.onPacket (http://192.168.188.34:8082/lib/js/socket.io.js:6:29177)\n at r. (http://192.168.188.34:8082/lib/js/socket.io.js:6:26789)\n at r.emit (http://192.168.188.34:8082/lib/js/socket.io.js:6:13957)\n at r.onPacket (http://192.168.188.34:8082/lib/js/socket.io.js:7:9597)\n at r.onData (http://192.168.188.34:8082/lib/js/socket.io.js:7:9546)\n at ws.onmessage (http://192.168.188.34:8082/lib/js/socket.io.js:8:6374)"

Page or affected widget

Color picker widgets.

Adapter version

2.0.3

js-controller version

5.0.19

Node version

v18.20.4

Operating system

Raspbian OS on a Pi 4 Model.

Additional context

No response