KinDR007 / VictronMPPT-ESPHOME

Victron Mppt charger ve.direct to esphome node
MIT License
291 stars 64 forks source link

ESPHome update to uart compiling error #110

Closed mynarrowboat closed 1 year ago

mynarrowboat commented 1 year ago

Hi, I'm not sure if this is universal now after updating ESPHome, but in case it helps someone...On trying to install the code via ESPHome from the sample code for a Victron (100/30) MPPT controller to a esp8266 d1_mini, flagged a compiling uart error on that line (two errors flagged). From another thread (https://community.home-assistant.io/t/esphome-update-and-uart2/562633/16) changes to ESPHome and uarts used internally, uart0 can no longer be used. Changing "uart: id: uart0" from uart0 to uart_0 and again "victron: uart_id: uart0" to uart_0 seems to fix the issue for me.

I'm using and updating ESPHome within Home Assistant. I have a Victron MPPT 100/30 controller and your code works great. Thank you so much for your work.

mynarrowboat commented 1 year ago

Yours compiled and uploaded, and you just don't receive data you mean? TX from Victron to ESP Pin D7 on the sketch.

MNB

On Sun, 30 Apr 2023, 18:47 gabcraftia, < @.***> wrote:

Hi, I also always run the latest version of esphome. Now i tried your fix because i was having the same issue. But i still get no reading from my victron controller. And i don't know what i did wrong. DuckDuckGo removed 1 tracker. More →

https://duckduckgo.com/-BhYN3Hm3itRh6Rucl_pDHLP0SYM3BzgcGL5LjyY2vKURZgWaJhhYOTBUQMeW6ERAz243PAg7FTNo7BalatZ6Sz2dY-oTGK4xmefpeE2F4BDhBYfg62Je8DCAvDoIwbvZ5h58_XRXexR38MImXwkV-CYm_xtqk_fHl8k6B3gkqOMxLJLuP2H5o1NxKs5sYyBMafWNsKC5ocNe-r1-x-CoXTobwKjTA2FeWNLaO8AxI57bjw5VrRKBfyPWpALub74gRBg57jMRbMN8C9UXfOCnQYZBA9ALmEGbYjbHbL5-GrEgDQ

Hi, I also always run the latest version of esphome. Now i tried your fix because i was having the same issue. But i still get no reading from my victron controller. And i don't know what i did wrong. I connected the gnd to gnd and the TX pin of the controller to the D8 pin. Is there any way to troubleshoot it? And check if there is a connection between the 2?

Kind regards,

— Reply to this email directly, view it on GitHub https://github.com/KinDR007/VictronMPPT-ESPHOME/issues/110#issuecomment-1529094206, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2JRCUAHJDPSKSD5T3GIVQDXD2QTZANCNFSM6AAAAAAXQ5NPIE . You are receiving this because you authored the thread.Message ID: @.***>

gabcraftia commented 1 year ago

Yes that is the problem but it i think it just needs a level shift converter. from 5v to 3.3V ordered some and i will see what it does.

Garfs-Homassistant commented 1 year ago

eAusweis

Yes that is the problem but it i think it just needs a level shift converter. from 5v to 3.3V ordered some and i will see what it does.

Die Daten kommen auch ohne Level Shift, aber auf Dauer ist das nicht gut. Eventuell RX und TX vertauscht? Ging mir so.

gabcraftia commented 1 year ago

Guten tag, Ich habe nur diesem video gefolgt. https://www.youtube.com/watch?v=D08sjKWBW7o&ab_channel=KPeyanski Ab 3:33 kansst du sehen das pin eins und drei verbinded sind das habe ich auch gemacht. eins to GND und drei to pin D7. wenn ich in die logs siehe ist da keine data von der victron. Entschuldigung fur meiner deutsch das ist nicht perfect :)

Garfs-Homassistant commented 1 year ago

Nicht schlimm, mein Englisch ist dafür nicht so gut.

Ich hatte mit meinem esp8266 auch Probleme, als der Laderegeler viel Strom aus den Paneelen bekommen hat. Bin auf einen esp32 umgestiegen, seit dem läuft es super.

gabcraftia commented 1 year ago

Ich habe das nur getested mit der batterie angeslossen nicht mit paneelen.

Garfs-Homassistant commented 1 year ago

Ok, da lief es bei mir mit dem esp8266 noch fehlerfrei. Hast Du mal einen anderen esp versucht?

gabcraftia commented 1 year ago

ja das haben ich versucht. aber kein unterschied.