Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Add Huawei Charger R4875G1 support (additional to R4850G2) #1440

Open
gitisgreat2023 opened this issue Dec 3, 2024 · 6 comments
Open
Assignees
Labels
acknowledged enhancement New feature or request

Comments

@gitisgreat2023
Copy link

gitisgreat2023 commented Dec 3, 2024

Is your feature request related to a problem? Please describe.

I would like to use the Huawei R4875G1 in my OpenDTU-onBattery setup. Currently on the Huawei R4850G2 is supported.

Describe the solution you'd like

It seems only a scaling factor has to be adapted. And maybe some CAN IDs.

See here (edit: AndreasBoehm) here for a YAML code for the R4875G1.

Describe alternatives you've considered

No response

Additional context

I'm happy to test the code.

@gitisgreat2023 gitisgreat2023 added the enhancement New feature or request label Dec 3, 2024
@AndreasBoehm
Copy link
Member

We could try to autodetect the exact model of the huawei charger and set the scaling factors accordingly

https://github.com/mjpalmowski/CAN-BUS-control-R4875G1-with-ESPHome-and-MQTT/blob/b8f4bd32a802e63911a6bcb3a90f889bfd6fc157/R48xxGx%20autodetect-autoscaling-dual-inverter-example.yaml#L215-L238

@gitisgreat2023
Copy link
Author

Perfect... happy to test a build (4MB_nota please). Just ordered a R4875G1... :-)

@schlimmchen
Copy link
Member

@AndreasBoehm In that project there is pure gold. This one got me excited a couple of days ago: mjpalmowski/CAN-BUS-control-R4875G1-with-ESPHome-and-MQTT#4 (reply in thread) Had no time yet to explore it... I desperately want that to we know the model, and can at least infer the correct scaling factors. However, I also saw that those guys are onto reading the factor out at runtime. I will probably stumble over that as well.

@gitisgreat2023 I suspect your unit will not set and/or report the correct current limit. Let us know. I will ask you to test stuff once I am ready with something. Thank you for your interest in testing!

@gitisgreat2023
Copy link
Author

@schlimmchen I'm happy to test it! Yeah it won't work, I'm pretty sure. I'll wait until you have a first build to test.

In general, I can't say it enough. Many thanks for this great project, I really appreciate all your efforts to make it the best piece of software for controlling an ESS. It's amazing how much functionality you (as a team ;-)) were able to utilize on such a small CPU with low memory. I really love it. And besides being a fun thing it's contributing to a greener world, big plus as well. ;-)

@schlimmchen
Copy link
Member

@gitisgreat2023 Progress is slow, but there is progress. How is your hardware setup coming along? Please let me know when you are ready. You should be able to talk to the R4875 just fine, but the max current value will not match the actual output.

@gitisgreat2023
Copy link
Author

@schlimmchen the Huawei arrived, but I have to wait for the adapter still though, that might take still some time. I'll write when I've wired it up...
Hopefully I managed to get the G2 running on the Pro PCT, because I want to test and run the G1 on the "old" board.... as you noticed I still struggle to get the G2 running on the Pro PCB ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants