Closed tedstriker closed 7 years ago
Hmmm during devel I test it without Node-RED having access to internet, and it works.
Two things I'm wondering about:
If you go to the Hub configuration and press the button after "API key" field, does it say that the API key is valid? I see that the configuration doesn't require the key field to be supplied, I will add better error handling in the future.
If the above works and you got the output node and press the search icon behind the "Light ID" field does it list all the lights? And does it resolve a light to your current id, or does it say Unknown "1"
?
Upfront it's working now - even without an internet connection. Maybe it started working due to a node red restart. I could just guess. To answer your questions:
So if you're about to investigate on the discovery function we can leave this open as reminder. I'd consider the initial stated "No connection ..." issue rather a glitch than a real issue as it's obviously doing it's job now.
Thank you for your quick response and investigation
The problem was probably that you tried to use "1" as the ID, I'm going to beef up the validation so the node will generate an error earlier (force the id to begin with "light" or "group"). I also probably could generate warning when there is an configured light that doesn't exist in the hub
The status text "unknown" isn't really clear, was thinking of changing it to maybe "undetected" or "unidentified".
Work has been done fix most of the short commings described in this issue
if your node is not able to connect to meethue.com it seems not to work. Even if a valid IP has been provided in the config node, the getter node doesn't receive a thing and its state remains "unknown".
It'd be good, if a valid IP is present, it would try to connect to that bridge.