arthurkrupa / gree-hvac-mqtt-bridge

MQTT Bridge for controlling Gree smart air conditioners, e.g. with Home Assistant or OpenHAB
GNU General Public License v3.0
132 stars 63 forks source link

Deprecation Warning for Socket.prototype._handle #56

Open aaronsb opened 4 years ago

aaronsb commented 4 years ago

Starting up container emits

DeprecationWarning: Socket.prototype._handle is deprecated

in log file.

Are UDP datagram calls private? In the future public calls may not function as intended.

https://nodejs.org/api/deprecations.html#deprecations_dep0112_dgram_private_apis

danieletdg commented 4 years ago

Same here with multiple AC's Home Assistant Addon. This is the YAML configuration:

mqtt: broker_url: 'mqtt://my-broker' username: my-user password: my-psw devices: - hvac_host: ip_fist_hvac mqtt_topic_prefix: home/greehvac - hvac_host: ip_second_hvac mqtt_topic_prefix: home/greehvac2

mqtt: broker_url: 'mqtt://my-broker' username: my-user password: my-psw devices:

This is the log:

0|HVAC_0 | [MQTT] Connecting to mqtt://my-broker as "my-user"... 0|HVAC_0 | [MQTT] Connected to broker 0|HVAC_0 | [UDP] Connected to device at ip_first_hvac 0|HVAC_0 | [UDP] New device registered: 1e20047a 0|HVAC_0 | [UDP] Device 1e20047a is bound! /root/.pm2/logs/HVAC-1-error.log last 15 lines: /root/.pm2/logs/HVAC-0-error.log last 15 lines: 0|HVAC_0 | (node:234) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated /root/.pm2/logs/HVAC-1-out.log last 15 lines: 1|HVAC_1 | [MQTT] Connecting to mqtt://my-broker as "my-user"... 1|HVAC_1 | [MQTT] Connected to broker 1|HVAC_1 | [UDP] Connected to device at ip_second_hvac 1|HVAC_1 | (node:257) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated

so the second hvac is not in bound.

cej0t4 commented 4 years ago

I have the same problem...

[TAILING] Tailing last 15 lines for [/HVAC_/] process (change the value with --lines option)
/root/.pm2/logs/HVAC-0-error.log last 15 lines:
/root/.pm2/logs/HVAC-0-out.log last 15 lines:
0|HVAC_0   | [MQTT] Connecting to mqtt://my-broker as "my-user"...
0|HVAC_0  | [MQTT] Connected to broker
0|HVAC_0  | [UDP] Connected to device at ip-gree-hvac
0|HVAC_0  | [UDP] New device registered: 1e72643c
0|HVAC_0  | (node:234) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated