-
Notifications
You must be signed in to change notification settings - Fork 3
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
(mac user) Initialize lights no respond #24
Comments
hi @owenchiouu - thanks for logging the report here. After you've initialized lights what do you see on the control pages for "all lights" and "individual lights"? Usually it's getting this far that's the hard part. You might also try saving your project network, and then restarting to the project to see if there's a problem with the initial connection. You can also remove this TOX, and start the connection process over again. If there was an issue due to a system update that should resolve that problem. |
hey @owenchiouu - I'm going to give this issue a few more days, and then I'm going to close it since I haven't heard back about if there need to be any changes. |
Hi @raganmd , Thank you once again, and attaching some screenshots and pictures :) Screen.Recording.2024-05-07.at.22.07.40.mov0"> |
@owenchiouu interesting - I haven't tested with only the warm lights. So there could be something there. Unfortunately, I don't have one of those to test with. Can you share a screen shot of what you see on this tab of the hue tox? Also - is anything printed in the text port? It does seem like we're doing a handshake with the hue bridge and lights, so that's good news... I just don't happen to know if the warm lights behave differently than the full color lights. |
@owenchiouu - your video finally loaded for me. Now I can see that there's nothing on those pages. That's super strange - do you get any errors? Without having one of these warm only lights I don't have a good way to test what might be happening here. |
Hi @raganmd, thank you for addressing the issue of @owenchiouu. I have a comparable situation and can add this textport behavior to the situation, where I have succesfully linked the bridge with a device user name and client key generated. The all light and the individual lights tabs do not show any newly created parameters after linking to the bridge. When running the Initializelights command, the Textport returns: running Initializelights
Traceback (most recent call last):
File "</project1/base_hueControl/pargroupexec_hue_controller>", line "args[0].Add_pars_for_lights()"
File "/project1/base_hueControl/TDHueControllerEXT", line 234, in Add_pars_for_lights
File "/project1/base_hueControl/TDHueControllerEXT", line 239, in _add_light_pars
AttributeError: 'NoneType' object has no attribute 'get'
python >>>
Furthermore I have a Hue account to get to the bridge-app on phone. Would you have any clue in a solving direction? |
@VertigoCorp - I think the issue here is probably anchored in the difference for the lights that are warm / cool rather than RGB. I think the only way to get to the bottom of this is to test with one of those fixtures. How comfortable with Python are you? Happy to point you to where you might make some updates to the extension code. |
@raganmd I did some research after getting the same issue on windows. I have both rgb and ambiance white lamps so could see the difference quite clearly. I was trying to adjust the code to account for the different json data but I'm not a python expert and figured it's better to tell you about it since you know it better. For an rgb light the color response looks like this (the one you know):
and for ambiance light it looks like this (instead of xy it uses mirek values ??)
I'll include the full responses below. Hoping this makes the changes very obvious for you. I am not familiar with the term mirek or how that translates to color temps, but it seems like gradient going from 153 (cold) to 454 (warm). Hope this helps! Cheers, |
@NilsJohannesson oh sheesh. So fun fact about phillips Hue RGB lamps color is represented as an xy value on the device, which has a conversion that looks like this: https://gist.github.com/bgromov/d721f020694abda3ad3dba0c49113376 You'll see in the extension that I currently convert from a set of color pars to xy, and back to pars to make this bit work. It looks like the color temperature fixtures instead use a Mirek color temperature that's instead represented as a single integer in the range of 153 to 500. That does give me a better hint here - I can't say for sure when I'll be able to update this. I'd probably need to get my hands on a lamp to actually test, and I need to rethink how those parameters get generated to account a different control schema. 🤔 |
Hello! I have no coding background and I'm trying to use this TOX on touchdesigner.
The Link to Bridge process worked where the DeviceUserName and ClientKey appeared after linking, but after clicking initialize lights nothing happen and so the control doesn't work at all.
Things I think that might have caused the problem:
Thank you for this code, I really wish it could work for me as it is so porwerful and I would benefit greatly using this for my bachelor degree show!!! Wondering if anyone might know what happened? Thank you, once again
The text was updated successfully, but these errors were encountered: