Luxpower ac inverter integration?

I recently wrote an integration which sends EG4 18kpv and GridBOSS data to MQTT, collecting it via RS485 wired directly to device. These are devices I own, but it could work with other LUX based inverters too. It functions through raspberry Pi or regular PC. Code is here: GitHub - galets/eg4-modbus-monitor

I am open to modding the code to support other devices, if anyone here is willing to be my tester

2 Likes

Does this get the higher registers like Battery Backup Mode etc?

Any chance of converting this directly to esphome or at least an esp32?

Which registers do you want supported? I can add. Open an issue directly in github, and we can take it from there

not sure which it is, but in the UI it’s the Battery Backup Mode. Would love to be able to read and set it. This allows you to have it use the grid and have it charge your batteries at the same time which is great when there is a weather warning (automation kicking it off in home assistant) and then switch back once the warning goes away.

Hello @guybw - can I please have access to this integration? @guybw

Here’s the PDF file describing all registers on 18kpv. Find what you are looking for, and open a feature request here. Please do research and be as specific as possible, what exactly registers do you want, what they do and how to test them

Appears to be 110 bit 11. But would have to experiment with what that does to make sure it’s the correct one in the UI. Just flipping it to battery backup (which I think setting it to 1 does because nothing else matches) charges the batteries to target and powers the load from PV and AC using PV first if possible.

I can’t find anything else it would be. The New UI has this as a separate option and it isn’t obvious in the old interface what it was.

This was stolen code and should not be published. it’s old and it was not authorized.

Guy, suggest you report here: Sign in for Software Support and Product Help - GitHub Support

1 Like

@guybw I have emailed and filled in the office form to gain access. What else shall I do?

Hi, sorry that was my mistake, 2 people with very similar usernames and I clicked the wrong one :crazy_face:

I was planning on trying something like this. Ideally, I want something that can run on an ESP32 and send the data directly to influxdb. I read somewhere the HDMI is just using 4 pins for power and modbus. Sounds like a good candidate for ESP32 + ETH.

Hi there,

Thanx for adding me, I took the plunge to upgrade my HASS as it is notorious to break all my PLC integrations running modbus and it was over a year old (old automation habit - if it works, leave it alone). So yeah, after the upgrade, guess what, everything broken again. After 2 days of working out all the snags and renaming all the new arrays and mappings (trigger → triggers and then - trigger inside etc.) I finally got my system running again.

Then i could start the integration of the LuxPower project of yours. Holeeee worksheet… The integration pulls in data that is no where to be found. It is not in their mobile app, nor on the installers menus. At least not in the new menu they launched not so long ago.

Job well done @guybw and team. Wow.

I actually considered to build something myself by reverse engineering the protocols between the dongle and the inverter (also with ESP32 and ether as it is ā€œmodbusā€), but I am glad I didn’t. All the snags are nicely listed in your repo and catered for by the integration. It saved me months worth of work.

So to anyone that takes exception as to why @guybw does not publicly post, join the team and see for yourself what went into it. You will not regret joining the team!!!

PS: one of the main contributors of the Lux-bridge project, is the uncle of the girlfriend of someone I know well… Small world…

@guybw this looks great!

I’ve sent an email requesting access.
I have 2 SNA5000 inverters connected in parallel. Does this type of installation work with your integration?

I can’t find an email that matches up to your username but I’m totally caught up with requests now so if you DM me on here I will get you sorted (if I haven’t already sent you an invite) oh and yes I support all LUX Inverters and EG4 inverters and also I now cover all dongles :smiley:

1 Like

Hi @poldim I’ve explored this and I did actually get data off the HDMI but it’s incredibly hard and writing is on another level! There is a commercial company that has done this and has created there own LUX approved dongle and he took my work and turned it into a product as I just don’t have the money (and more importantly time / skillset to do it) they do it via MQTT but it’s just as good and is around 2/3 seconds refresh. DM me if you want details.

Thanks for the kind words, yeah, it’s 5 years of work to get it to this point!
I did realise I’ve got about 420+ discussions on it and around 400+ closed issues (I’m not sure that’s a good thing or not :rofl: but they are all resoved now.

@guybw Can I get added to your github, too? I got an EG4 6000xp and a 12k Luxpower hybrid inverter I’d like to add to my HA.

absolutely, DM me or drop me an email at my username on here @hotmail.com and I will get you sorted.

Looks like some great options! Amazing community.