OpenEVSE MQTT Plugin
Posted: Tuesday 14 April 2020 17:43
Code: Select all
2020-04-18 10:05:25.180 Error: Error parsing http request.
2020-04-18 10:05:25.230 Error: (ProcessInbound) MQTT protocol violation: Invalid message flags 8 for packet type '4'
2020-04-18 10:05:25.231 Error: (ProcessInbound) MQTT protocol violation, sending DisconnectedEvent to Connection.
2020-04-18 10:05:25.231 Error: (OpenEVSE) 'onMessage' failed 'TypeError':'a bytes-like object is required, not 'str''.
2020-04-18 10:05:25.231 Error: (OpenEVSE) ----> Line 309 in '/home/pi/domoticz/plugins/OpenEVSEPlugin/plugin.py', function onMessage
2020-04-18 10:05:25.231 Error: (OpenEVSE) ----> Line 278 in '/home/pi/domoticz/plugins/OpenEVSEPlugin/plugin.py', function onMessage
2020-04-18 10:05:25.231 Error: (OpenEVSE) ----> Line 155 in '/home/pi/domoticz/plugins/OpenEVSEPlugin/mqtt.py', function onMessage
Code: Select all
2020-04-18 18:46:31.199 (OpenEVSE) Heartbeating...False
2020-04-18 18:46:31.199 (OpenEVSE) Reconnecting
2020-04-18 18:46:31.199 (OpenEVSE) MqttClient::open
2020-04-18 18:46:31.199 (OpenEVSE) MqttClient::close
2020-04-18 18:46:31.199 (OpenEVSE) Deallocating connection object '127.0.0.1' (127.0.0.1:1883).
2020-04-18 18:46:31.199 (OpenEVSE) Protocol set to: 'MQTT'.
2020-04-18 18:46:31.199 (OpenEVSE) Transport set to: 'TCP/IP', 127.0.0.1:1883.
2020-04-18 18:46:31.199 (OpenEVSE) Connect directive received, action initiated successfully.
2020-04-18 18:46:31.249 (OpenEVSE) Failed to connect (111) to: 127.0.0.1:1883 with error: Connection refused
2020-04-18 18:46:31.250 (OpenEVSE) Disconnect event received for '127.0.0.1:1883'.
2020-04-18 18:46:31.250 (OpenEVSE) onDisconnect called
Code: Select all
sudo apt-get update
sudo apt-get install mosquitto
You do not have Python installed (correctly) on your server.
Code: Select all
pi@raspberrypi:~ $ mosquitto_sub -v -t OpenEVSE/#
OpenEVSE/amp 7480
OpenEVSE/wh 18480341
OpenEVSE/temp1 132
OpenEVSE/temp2 -2560
OpenEVSE/temp3 -2560
OpenEVSE/pilot 8
OpenEVSE/state 3
OpenEVSE/freeram 26984
OpenEVSE/divertmode 1
Code: Select all
#modified 2022-12-27 , see https://www.domoticz.com/forum/posting.php?mode=reply&t=32189
#OLD: if (mqttpath[1] == "temp"):
if (mqttpath[1] == "temp1"):
unitname="Temp"
subval="temp"
I think everyone creating software (c++/vb/scripts) should program in Englishayasystems wrote: ↑Monday 02 January 2023 11:37 Could you help to make an English documentation? Any help is welcome
Indeed, but if you want a bigger audience for your hard work creating a nice plugin we only advise you to create an English manual. We cannot help (as being Dutch) because we are not good enough in Spanish language.ayasystems wrote: ↑Monday 02 January 2023 22:21 You also can use the google translate ... Sorry man.