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

Node-RED crashes right after node-mihome install #57

Open
Tazintosh opened this issue Aug 26, 2024 · 3 comments
Open

Node-RED crashes right after node-mihome install #57

Tazintosh opened this issue Aug 26, 2024 · 3 comments

Comments

@Tazintosh
Copy link

Hi,

I've got node-mihome installed via node-red-contrib-miio-localdevices and right after the palette install, Node-RED crashed.
Here's the last log:

[error] Error: getsockname EBADF
    at Socket.address (node:dgram:777:11)
    at Socket.<anonymous> (/Users/tazministrator/.node-red/node_modules/node-mihome/lib/protocol-miio.js:34:36)
    at Socket.emit (node:events:531:35)
    at startListening (node:dgram:184:10)
    at node:dgram:372:7
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Line 34 of protocol-miio.js is const address = this._socket.address();

I'm usually running Node-RED without issues with this config:

Node-RED version: v4.0.2
Node.js  version: v20.13.1
Darwin 23.4.0 arm64 LE

Any idea?
Thanks a lot in advance, kind regards.

@kspgithub
Copy link

Hi!
Did you find any solution?
Faced a similar problem when adding yeelink.light.colorc

Previously added viomi.aircondition.y116 and had no problems, although both have miot-local support.

https://home.miot-spec.com/s/yeelink.light.colorc
https://home.miot-spec.com/s/viomi.aircondition.y116

@Tazintosh
Copy link
Author

Nothing new sorry.

@smarthomenow
Copy link

Same problem. Current solution is to use node-red version 3.0.2. Newer versions crash with EBADF error

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
@Tazintosh @smarthomenow @kspgithub and others