I updated the file app/device_manager.js.
Around line 109, i updated:
Code: Select all
const deviceId = message.cid;Code: Select all
const deviceId = message.cid || message.mac;Moderator: leecollings
Code: Select all
const deviceId = message.cid;Code: Select all
const deviceId = message.cid || message.mac;Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:172:29)
at decrypt (/home/pi/ewpe-smart-mqtt/app/encryptor.js:15:48)
at Connection.handleResponse (/home/pi/ewpe-smart-mqtt/app/connection.js:110:26)
at Socket.emit (events.js:314:20)
at UDP.onMessage [as onmessage] (dgram.js:921:8) {
library: 'digital envelope routines',
function: 'EVP_DecryptFinal_ex',
reason: 'bad decrypt',
code: 'ERR_OSSL_EVP_BAD_DECRYPT'
}
npm ERR! code 1
npm ERR! path /home/pi/ewpe-smart-mqtt
npm ERR! command failed
npm ERR! command sh -c node index.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-01-09T22_35_32_087Z-debug.log
Sorry,
Code: Select all
sudo git clone https://github.com/stas-demydiuk/ewpe-smart-mqtt /opt/ewpe-smart-mqtt
sudo git clone https://github.com/Xenomes/ewpe-smart-mqtt /opt/ewpe-xenomes
sudo chown -R pi:pi /opt/ewpe-smart-mqtt Stolen from zigbee2mqtt
cd /opt/ewpe-smart-mqtt
npm install (Gives vulnerability??????)
In app/device_manager.js, regel 109: message.cid || message.mac Not sure if this is needed
npm start
Below stolen from zigbee2mqtt
Just to autostart after a reboot
sudo nano /etc/systemd/system/ewpe-mqtt.service https://github.com/Xenomes/ewpe-smart-mqtt
[Unit]
Description=ewpe-mqtt
After=network.target
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/ewpe-smart-mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
Save
# Start ewpe-mqtt
sudo systemctl start ewpe-mqtt After a reboot, automatic starting doesn't seem to be working properly. Manual starting with the previous command works fine; let's see if both become active. Apparently, stopping and starting multiple times is sometimes necessary, then turn the hardware in Domoticz off and on...
If the power to the air conditioning has been off, send a message via the app as well.
# Show status
systemctl status ewpe-mqtt.service
Enable automtic start
sudo systemctl enable ewpe-mqtt.service
https://github.com/stas-demydiuk/domoticz-ewpe-smart-mqtt-plugin
Sometimes it helps turning it on/off with the gree app.