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

Not stable for SetRGB/temperature/brightness #1

Open
ctangc5 opened this issue Sep 29, 2017 · 12 comments
Open

Not stable for SetRGB/temperature/brightness #1

ctangc5 opened this issue Sep 29, 2017 · 12 comments

Comments

@ctangc5
Copy link

ctangc5 commented Sep 29, 2017

adjust the temperature & brightness many times, it will shows the error info "UnhandlePromiseRejectionWarning: Unhandled promise rejection (rejection id: xx) [object object]"
In addition, cannot right set correct color with "colour picker" node for SetRGB

@Gromina
Copy link
Owner

Gromina commented Nov 14, 2017

Thanks for report. Will dig into it next week.

@ctangc5
Copy link
Author

ctangc5 commented Nov 21, 2017

Hi. There is critical issue for yeelight IP address. For example, the yeelight connect AP and assigned 192.168.1.86, we can command yeelight. But the network is shutdown or AP is shutdown, the node-red will crash. I think the code should add exception function to handle the network issue.

BR,
Chris

@Gromina
Copy link
Owner

Gromina commented Dec 4, 2017

Could you try the latest version?

@ctangc5
Copy link
Author

ctangc5 commented Dec 4, 2017 via email

@ctangc5
Copy link
Author

ctangc5 commented Dec 5, 2017 via email

@glennss
Copy link

glennss commented Dec 7, 2017

I've also had the same issue, when the light is offline, i.e. power is switched off, node-red will crash. The light in this example is found at 192.168.30.49 but is offline:

Dec 7 10:26:52 raspberrypi Node-RED[28092]: 7 Dec 10:26:52 - [red] Uncaught Exception: Dec 7 10:26:52 raspberrypi Node-RED[28092]: 7 Dec 10:26:52 - Error: connect EHOSTUNREACH 192.168.30.49:55443 Dec 7 10:26:52 raspberrypi Node-RED[28092]: at Object.exports._errnoException (util.js:1020:11) Dec 7 10:26:52 raspberrypi Node-RED[28092]: at exports._exceptionWithHostPort (util.js:1043:20) Dec 7 10:26:52 raspberrypi Node-RED[28092]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14) Dec 7 10:26:52 raspberrypi systemd[1]: nodered.service: main process exited, code=exited, status=1/FAILURE Dec 7 10:26:52 raspberrypi systemd[1]: Unit nodered.service entered failed state. Dec 7 10:26:52 raspberrypi systemd[1]: nodered.service holdoff time over, scheduling restart.

@ctangc5
Copy link
Author

ctangc5 commented Dec 8, 2017

Hi,

Please find the "index.js" on C:\Users\xxxx\node_modules\yeelight2 and edit "// this.emit('error', err);" on Line 45. I believe can solve the issue.

BR,
Chris

@glennss
Copy link

glennss commented Dec 11, 2017

Thanks Chris, but nope, still the same issue

@ctangc5
Copy link
Author

ctangc5 commented Dec 14, 2017 via email

@GeeBee93
Copy link

Hey,

I can confirm the issue with SetRGB and Colour Picker. Already got the latest version of node-red-contrib-yeelight along with Colour Picker in "Format: hex" and it's just changing the color to blue, but no other color.

Thank you for your help :)

@davehun
Copy link

davehun commented Jan 12, 2018

its not crashing node-red for me with the current release version but if the bulb is offline at some point the module does not re connect when the bulb is brought back online

@ctangc5
Copy link
Author

ctangc5 commented Jan 16, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants