Problem is now fixed. I had to upgrade node.js to version 8+
now it patially works.
2019-04-10T05:14:35.403Z [info]: "Server is listening on 0.0.0.0:43839"
2019-04-10T05:14:35.507Z [info]: "New device found: xxxxx(xxxxx), binding..."
2019-04-10T05:14:35.513Z [debug]: "Sending request to 192.168.0.185:7000: {\"mac\":\"xxxxxx\",\"t\":\"bind\",\"uid\":0}"
2019-04-10T05:14:35.530Z [info]: "New device bound: 1e516992 (192.168.0.185:7000)"
2019-04-10T05:14:35.534Z [debug]: "MQTT message: ewpe-smart/xxxx"
2019-04-10T05:14:40.541Z [debug]: "Sending request to 192.168.0.185:7000: {\"cols\":[\"Pow\",\"Mod\",\"TemUn\",\"SetTem\",\"TemRec\",\"WdSpd\",\"Air\",\"Blo\",\"Health\",\"SwhSlp\",\"Lig\",\"SwingLfRig\",\"SwUpDn\",\"Quiet\",\"Tur\",\"SvSt\"],\"mac\":\"xxxxxxxx\",\"t\":\"status\"}"
crypto.js:183
var ret = this._handle.final();
^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (crypto.js:183:26)
at decrypt (/home/pi/ewpe-smart-mqtt/app/encryptor.js:15:48)
at Socket.messageHandler (/home/pi/ewpe-smart-mqtt/app/connection.js:68:34)
at emitTwo (events.js:131:20)
at Socket.emit (events.js:214:7)
at UDP.onMessage [as onmessage] (dgram.js:659:8)
npm ERR!
[email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the
[email protected] start script.
npm ERR! This is most likely a problem with the ewpe-smart-mqtt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ewpe-smart-mqtt
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! cwd /home/pi/ewpe-smart-mqtt
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/ewpe-smart-mqtt/npm-debug.log
npm ERR! not ok code 0