Just getting round to implement this. I’ve noticed you need custom components within the ESPhome folder.
Once the esp is flashed does it still require these files? Reason I ask is I program my ESPs on my house HA build that is supervisor with ESPHome built in but in my camper I run HA on docker so no ESPhome but can add them in integrations.
Hi, how do you connect ESP to mppt?
according to the log you have probably connected the wrong ve.direct cable (the connection is in the forum above) Victron Energy VEDirect Bluetooth - #43 by KinDR
I just ordered the Victron SmartShunt. Do I also need the MK3-USB interface? Or can I used two wires from the VE Connect port on the shunt to connect to the GPIO on my Raspberry Pi 4?
Is there a reason this communicates on port 8266? ESPHome seems to not like this port. Also, it seems ESPHome doesn’t like being on the same device as Home Assistant?
As much as I understand 8266 is not a port but device name: esp8266. There is also esp32 device (board) which can be used.
In simple steps (described on KinDR github) you need to:
connect ESP8266 (or ESP32) board (it is separate piece of hardware)to your Victron device with the proper wiring
upload the code to ESPdevice from github
provided that you have HA running make sure your ESP board is integrated
Then you can read the data in HA.
In my view it needs some technica background as it will be more challenging for someone first time exposed to HA, ESPHome or connecting cables.
@KinDR Thanks a lot for your work! I managed to get the data from a SmartShunt with your implementation. I tried with a Wemos d1 mini v3 first, but I couldn’t manage to connect to the network, I think it’s because it was a defective aliexpress clone . But with a nodemcu esp32 it worked flawlessly. I just connected the RX as you said and powered the esp with 5V from an external source (the GND from the shunt and the power source is connected anyway on another part of the circuit). Big thanks again!
Hi All, great stuff and showing results exactly as desired…but…I have a situation where the esp32 is resetting between 3-10 mins when plugged into the mppt. Only tx on mppt is connected to esp32. I have tried a couple other esp32’s but same situation. (all from same supplier so might be low quality). If anyone has experienced this and found a solution, please let me know. If not i’ll chalk it up to bad device uart ports, or some type of interference.
Thanks
Hi. Sorted out. It has to do with the webserver on the esp32. When leaving the web page open of the device, the esp32 did not seem to like the resources it took up and restarted. Closed the page and it kept running ok.