Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
DerrowBond opened this issue Aug 1, 2024 · 0 comments
Open
1 task done

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

DerrowBond opened this issue Aug 1, 2024 · 0 comments
Labels
bug 🐞 Something isn't working

Comments

@DerrowBond
Copy link

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

@DerrowBond DerrowBond added the bug 🐞 Something isn't working label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant