igdr / node-red-contrib-xiaomi-smart-devices

8 stars 4 forks source link

Can't save Address and Port on Gateway on the latest version, 1.0.15 #12

Closed pilip87 closed 5 years ago

pilip87 commented 5 years ago

I have the same problem and I am on the latest version, 1.0.15. I also updated Node Red to the latest version but the issue remains (I have removed the key from the screenshot). image

Originally posted by @BoMatt in https://github.com/igdr/node-red-contrib-xiaomi-smart-devices/issues/11#issuecomment-486616357

igdr commented 5 years ago

I fixed it v1.0.16, could you check it up?

pilip87 commented 5 years ago

Don't understand why, but I still see only versione 1.0.15 available in palette manager

igdr commented 5 years ago

Could you check it up now, it was some delay on the Node-Red side, now should be ok.

BoMatt commented 5 years ago

Now I can save address and port and add the devices but then Node-Red crashes.

Error: addMembership EINVAL at Socket.addMembership (dgram.js:639:11) at Socket.XiaomiGatewayNode.socket.on (/home/redacted/.node-red/node_modules/node-red-contrib-xiaomi-smart-devices/devices/gateway/gateway.js:88:18) at Socket.emit (events.js:197:13) at startListening (dgram.js:134:10) at state.handle.lookup (dgram.js:307:7) at processTicksAndRejections (internal/process/next_tick.js:76:17)

igdr commented 5 years ago

What address and port did you set as parameters?

BoMatt commented 5 years ago

Address is the Xiaomi Gateway Local IP and port 9898

igdr commented 5 years ago

224.0.0.50?

BoMatt commented 5 years ago

192.168.178.34

igdr commented 5 years ago

You should set 224.0.0.50 or leave the address field empty.

The error occurs when the gateway node cannot connect to the gateway (192.168.178.34), I will fix this error and display the correct error message.

igdr commented 5 years ago

fixed, v1.0.17

beccsjb commented 5 years ago

If we dont put in an IP address how does the gateway node know where to look for the hub?

BoMatt commented 5 years ago

You should set 224.0.0.50 or leave the address field empty.

The error occurs when the gateway node cannot connect to the gateway (192.168.178.34), I will fix this error and display the correct error message.

Thanks, it's working now!

igdr commented 5 years ago

@beccsjb by default 224.0.0.50 is set as IP address and 9898 as a port