diy solar

diy solar

JK BMS CAN bus comms now possible for inverters that support Goodwe and Pylontech batteries

Also i beleive there is an error in the yaml logis as the resistance reported by the esp is incorrect, i know this bcos the bms is correct and it should be whatever the bms gives ESPthat should be reported
1708337244460.png
 
The other issue which i am not sure if its a bug in the yaml code or not is
whenever we try to comment of remove the api settings and uncommenting the mqtt settings the substitution line kicks and error and therefore we cannot compile the code
1708337450802.png

1708337516863.png

1708337551306.png
 
I’m still running 1.16.4 on my M5 stack just for stability testing of the hardware, not using it to control the inverter. So far no issues or disconnects. I saw @Sleeper85 pulled the updated YAML in the thread above. Will test with inverter when new one is out.

Separately, just got a few more ESP32 dev boards to test out a project that can read voltage and send SOC over CAN from a Victron smart shunt. I need multiple batteries and this project has been a great learning experience.
 
I’m still running 1.16.4 on my M5 stack just for stability testing of the hardware, not using it to control the inverter. So far no issues or disconnects. I saw @Sleeper85 pulled the updated YAML in the thread above. Will test with inverter when new one is out.

Separately, just got a few more ESP32 dev boards to test out a project that can read voltage and send SOC over CAN from a Victron smart shunt. I need multiple batteries and this project has been a great learning experience.

I think the new version 1.17.3 will be released by Thursday at the latest.
 
In this case, a leading space has been left before 'mqtt:'. If you remove this, it should work correctly.
Very well sported - that error is gone

would you happen to know why GPIO17/16 would not work with this ESP - the Bluetooth works. see ESP screenshot
1708347886708.png
1708348036717.png
 
Really thanks for your replies - But GPIO18/19 is not a TX/RX Channel - I cant see anything wrong with the cable, is there a test one can do....like we test for 60 ohms on the CAN to Inverter RX (which i have done and its 60 Ohms as expected)
?
1708348893450.png
 
Last edited:
Anyone knows how to get the mqtt configured for Batmon? below is what i have for my config..wondering if there is more to it and how to i get a dashboard for the Batmon?
1708350463030.png
 
Really thanks for your replies - But GPIO18/19 is not a TX/RX Channel - I cant see anything wrong with the cable, is there a test one can do....like we test for 60 ohms on the CAN to Inverter RX (which i have done and its 60 Ohms as expected)
?

The ESP32 has 3 UARTs that you can assign to any pair of GPIOs see the ESPHome doc.


1708353004376.png
 
Separately, just got a few more ESP32 dev boards to test out a project that can read voltage and send SOC over CAN from a Victron smart shunt. I need multiple batteries and this project has been a great learning experience.

Obtaining the SoC via a shunt (Victron or another) is a good idea and I was thinking of setting it up too.
 
Same, I bought a Victron smartshunt late last week for this exact reason.
I intend to design a PCB with:

- ESP32 module
- RJ45 connector
- JK BMS connector
- Smartshunt connector
- Relay (for heater, etc)
- Spare GPIO breakout
- Isolated power from JK BMS

All in a 3d printed housing.
If / when I get it done, I'll share the PCB design files, etc, on GitHub for others.
 
We really appreciate the dedication your guys put into these projects.... it's not really about the money anymore for me, it's just that drive to see something this technical working...and unless you are technical yourself you would not really appreciate the amount of work that has gone into this....just looking at the script will tell you more.

On that note, i would like to know if the Multi configuration ..i.e connecting Master /Slave was ever started...I saw a thread stating it was the next piece of work to join.

Plan is - Once I have this single point working I want to go into configuring my second battery in parallel...

regards
 
We really appreciate the dedication your guys put into these projects.... it's not really about the money anymore for me, it's just that drive to see something this technical working...and unless you are technical yourself you would not really appreciate the amount of work that has gone into this....just looking at the script will tell you more.

On that note, i would like to know if the Multi configuration ..i.e connecting Master /Slave was ever started...I saw a thread stating it was the next piece of work to join.

Plan is - Once I have this single point working I want to go into configuring my second battery in parallel...

regards
I've been thinking about different ways in which multiple BMS comms could be implemented, but it's likely that any real development would take place later this year.
 
Anyone knows how to get the mqtt configured for Batmon? below is what i have for my config..wondering if there is more to it and how to i get a dashboard for the Batmon?
View attachment 196698
so my MQTT is ready and listening
1708360033481.png

I have the below on the logs, not sure where its picking that host name from , thak looks like the HA hostname

1708360148441.png

i can do with some guildians , even willing to look at a youtube video if available ot another guild...i know this one is on me, i am missing out something.

Regards'
 
so my MQTT is ready and listening
View attachment 196723

I have the below on the logs, not sure where its picking that host name from , thak looks like the HA hostname

View attachment 196724

i can do with some guildians , even willing to look at a youtube video if available ot another guild...i know this one is on me, i am missing out something.

Regards'
Yup checked it...its the host name
1708360493623.png
 
Hi All

any one know why we are getting all unknown values even though the CAN is o.k?

View attachment 196537

The Bluetooth code works - suggesting it has to be the GIO Pins wrong, i have tried 16/17 and 01/03 and even swapped them around.

please advise

I have logged 3 issues so far for the developers:

1. CAN wire showing unknown for Sensors that work in the Bluetooth Code
2. Incorrect Resistance calculated by the ESP code (correct in the BMS)
3. Substitution error when removing the esp api to replace with mqtt

hope we sort this out

thanks for the great work...

regards
So i have tried the suggested GPIO still coming up with unknown
1708361218269.png

1708361251539.png

Any Ideas??
 
So i have tried the suggested GPIO still coming up with unknown
Any Ideas??

How did you make the connection to JK-BMS?

Are you connected to the GPS port directly or via an RS485 JK module?

Do you have another BMS or ESP32 trying to isolate the problem?
 

diy solar

diy solar
Back
Top