KinDR007 / VictronMPPT-ESPHOME

Victron Mppt charger ve.direct to esphome node
MIT License
301 stars 66 forks source link

Wrong values if 2x 24V Batterycharger is turned on #136

Open jrnas opened 11 months ago

jrnas commented 11 months ago

I recorded a Screen video to demostrate what happens: https://www.youtube.com/watch?v=OX9RYDU59Ns

1x 24v Charger: https://www.amazon.de/gp/product/B08ZN5ZPMK/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1 1x 24v Charger https://www.amazon.de/gp/product/B099X1RQCV/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

Im using a ESP32 connected with two Devices 1x SmartShunt and 1x SmartSolar 150/45.

i got really strange logs and the voltage and soc data drops to NaN when i turn my two 2x 24v battery charger on... when only 1x 24v charger is on the values are not beeing updated....very strange i got a ErroCode 2 from the SmartShunt i dont know what that means...

[09:10:07][D][victron:1024]: Unhandled property: P 354 [09:10:07][D][victron:1024]: Unhandled property: \x84CE -73\xb789 SO\x86 2u' [09:10:07][D][victron:1024]: Unhandled property: TE /1Adarm ONFAR 0BMV Rm`\xe6tShunt 500A51mW [09:10:07][W][victron:093]: Last transmission too long ago

[08:56:49][D][victron:1024]: Unhandled property: \xff\xff\xff\xff\xff\xff\xdf\xff\xff\xff\xf7\xff\xff\xef\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xf7\xfb\xff\xef\xff\xdf\xff\xff\xff\xff\xff\xff\xff\xad\xff\xff\xb7\xff\xff\xff\xff\xff\xff\xbd\xff\xdf\xff\xff\xff\xfd\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xe7\xbf\xff\xff\xff\xf7\xff\xff\xdf\xff\xff\xff\xff\xff\xef\xff\xfb\xdf\xff\xbf\xff\xff\xfd\xff\xff\xff\xff\xff\xff\xbf\xff\xff\xde\xff\xff\xff\xff\xff\xff\xff\xff\xdd\xff\xff\xff\xff\xff\xff\xbf\xff\xff\xef\xff\xff\xff\xff\xfb\xff\xff\xff\xff\xff\xff\xff\xff\xef\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xf5\xfd\xff\xff\xfe\xff\xff\xff\xff\xff\xff\xef\xff\xff\xff\xff\xff\xff\xff\xff\xff\xbf\xff\xffo\xff\xdf\xff\xf7\xff\xfd\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xff\xff\xdf\xff\xff\xff\xff\xff\xff\xff\xff\xff\xdf\xff\xff\xff\xff\xff\xbf\xff\xff\xbf\xff\xf7\xff\xff\xef\xff\xdf\xff\xf5\xdf\xff\xff\xbf\xbf\xff\xff\xdf\xf6\xff\xff\xff\xfb\xfb\xff\xff\xf7\xff JV 26435 [08:56:49][D][victron:1024]: Unhandled property: \x92 !3679 [08:56:49][D][victron:1024]: Unhandled property: \x8a\xd0 362 [08:56:49][D][victron:1024]: Unhandled property: \x88SOC 24\xb7 [08:56:49][D][victron:1024]: Unhandled property: larm ODF [08:56:49][D][victron:1024]: Unhandled property: AR 
[08:56:49][D][text_sensor:064]: 'SmartShunt model description': Sending state 'R\xed\xc1r\xe8ShunT 500Au0iF'

[08:56:50][W][victron:093]: Last transmission too long ago [08:56:51][D][victron:1024]: Unhandled property: \xff\xff\xff\xff\xff\xbf߿\xf7\xff\xff\xff\xff\xff\xef\xfb\xff\xff\xff\xff\xff\xff\xff\xfd\xfe\xff\xff\xee\xff\xff\xbb\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xefo\xbf\xff\xff\xbf\xfe\xff\xff\xff\xff\xfe\xff\xff\xfe\xff\xfb\xff\xff\xff\xef\xff\xf7\xfe\xff\xff\xff\xfd\xff\xff\xcf\xff\xff\xff\xff\xfe\xff\xbf\xff\xff\xff\xff\xff\xff\xef\xff\xff\xf7\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xf7\xff\xff\xf7\xfe\xff\xff\xff\xff\xff\xa7\xff\xff\xff\xff\xff\xdf\xff\xff\xff\xfb\xfe\xff\xff\xff\xff\xff\xff\xfa\xff\xff\xde\xf7\xfe\xff\xff\xdf\xef\xff\xfe\xdf\xff\xff\xff\xff\xff\xfd\xff\xff\xff\xff\xef\xff\xff\xff\xff\xff\xef\xfd\xff\xff\xff\xfb\xff\xff\xef\xbf\xff\xff\xff\xff\xfb\xff\xff\xff\xdf\xe7s\xff\xff\xfe\xff H9 -03400

can you please help me? in Victron Connect everything shows right and no problems or can you at least explain me what that logs mean?

KinDR007 commented 11 months ago

Hi, according to your description it is not possible to determine what kind of connection you have, can you draw a wiring diagram and attach it? How / what do you feed the ESP32?

jrnas commented 11 months ago

uart:

GND of Smarthunt ------------------------------------------------------ GND ESP32 GND of SmartSolar Charger 150/45------------------------------------- GND ESP32 RX Smarthunt----------------------------------------------------------- GPIO01 ESP32 RX SmartSolar Charger 150/45------------------------------------------ GPIO23 ESP32

with the JST-PH jack

KinDR007 commented 11 months ago

what is the power source for ESP32?

if the esp32 is powered by a battery pack that is connected to the mppt, disconnect all gnds for the ve.direct ports (gnd between esp and mppt and smartshut and esp) because gnd is connected via the power supply. if you try to operate the esp32 power supply through the ve.direct port, it will not work and there is a risk of destroying the port!

jrnas commented 11 months ago

5V 1A USB to Micro USB https://www.amazon.de/gp/product/B099K38CK7/ref=ppx_yo_dt_b_search_asin_image?ie=UTF8&th=1

jrnas commented 11 months ago

IMG_0997

https://imgur.com/a/r2P4cYf

and my config: https://pastebin.com/yzaVrcyz

KinDR007 commented 11 months ago

leave only one gnd connected, it doesn't matter which if smartshunt and mppt work on the same battery pack

jrnas commented 11 months ago

yes same battery pack.... il disconnected the smartshunt gnd and same problem.. I also had the problem with just the mppt connected

KinDR007 commented 11 months ago

try powering the esp32 from some galvanically isolated source, for example an external lipo /liion battery (18650, etc.)

jrnas commented 11 months ago

il tried a powerbank still same problem but it seems better then before but still loosing values and the logs are flooded by the messages above

[08:56:49][D][victron:1024]: Unhandled property: \xff\xff\xff\xff\xff\xff\xdf\xff\xff\xff\xf7\xff\xff\xef\xff\xff\xff..... and many [09:10:07][W][victron:093]: Last transmission too long ago

if only one 24v charger is turned on it works but if i turn both 24v on the data is loosing after 1 minute.... like in the video above

jrnas commented 11 months ago

oh and - filter_out: nan is not working.... really strange