I don’t really understand why HA’s energy dashboard is so specific about kWh stuff when it’s a simple calculation to convert it over. Instead of making various helpers and calculations, I just use the below card which lets you use W and will work it all out for you. Work perfect for me.
new version 1.7.0 released
I have released a new version of my SAJ H2 integration.
There is now a switch in HA to change the working mode from “Self-Consumption.Mode” to “Time-of-Use” mode to charge the battery with mains power. see info in Readme
If not yet available in HACS, then install manually.
Looking forward to your feedback
Excellent! I have updated and will test over the next few days. Thankyou for the work you’ve put in.
Thank you very much for your work!
I will give it a try in the next days.
Also - I have been amiss with the coding of switches in HA - thank you for this! I will try to take a different approach, and present this with a pull request "soon"™
Hi @stanus74 I have been playing with charging control on the AI03 (not using Elfin atm). I am finding that if I just click the toggle switch on my dashboard, it just turns back to the opposite of what I am trying to do after a few seconds. However, if I click on the toggle and then activate the yellow switch below, then it work every time. I find that the Yellow switch seems to hold for an amount of time or maybe it repeats the command? Whereas the standard dashboard switch just seem to give it a go once and then go back to where it was?
Might be a latency issue with the AI03 too so I will try with the Elfin over next few days.
the status of the switch is only updated after 1 interval. i will try to adjust this in the next version of my integration so that it is updated immediately.
No probs. I also found when ran as a automation the switch runs fine. I have been testing it using the live pricing from my electricity provider and the Grid Charging On/Off is working fine.
I just have a issue atm where the battery will only discharge @ ~995W when it is off. I tried setting discharge time and days to 00-23:59, everyday and discharge power to 2500W but no luck. I will keep playing around.
In “Time-of-Use” mode with “Discharging”, the discharge power is not set to the home power grid, but to the public grid.
I assume this to be the case
I ended up fixing it by using Qmodmaster on address 364E to set the discharge rate.
Hey SAJ H2 Inverter users,
I’ve created a new topic for my SAJ H2 Inverter Modbus integration under Custom Components! Check it out here:
Custom Component: SAJ H2 Inverter
New Version avaiable 1.8.0
It now includes charging control and more – looking forward to your feedback!
Hi! I have a eSolar AIO3 on my R6 inverter. Does this have a web interface? According to the saj-electric portal data sheet for this model there is but i have no acess to my module from a browser. Any tricks to verify this? Postman?
Hi all. Has anyone managed to get the R6 working over Modbus? I have configured an Elfin EW11 and connected to the port. This integration can see the inverter - I see traffic passing on the EW11, but all the sensors report as unknown - I assume in typical fashion they’ve changed stuff between the R5 and R6. Is there any advice on how I can adapt for the R6?
Edit: I can get the serial number so it looks like registers 8F00H align, but the real time data registers don’t report back so clearly not. I don’t suppose anyone has the R6 Modbus doc kicking around?
Oh my, I just saw the uploaded Modbus doc has the R6 data in it!
Now to get to modifying for R6.
I have created an update to hub.py based upon the stellar work of wimb0
I have only edited hub.py and have not pushed it into HACS etc. My advice at this stage is to simply take the R5 version and update the hub.py file to work with an R6, or if you’re so inclined, take my code and publish it.
Look at my Modbus alternative below for the R6
But then I loose the connection to the cloud don’t I?
Hey all,
I’m trying to use winb0’s R5 integration with no success. I installed it, ran config, added IP (double checked), didn’t touch port (502), but all the sensors are Unknown or 0. The inverter has internet connection, I can see it in Elekeeper app and it’s on the same network as HA.
My guess is the port can be wrong, but I have no idea how can I check if port 502 is used by the inverter.
This is in my log:
"This error originated from a custom integration.
Logger: pymodbus.logging
Source: custom_components/saj_modbus/hub.py:65
integration: SAJ R5 Inverter Modbus (documentation, issues)
First occurred: April 28, 2025 at 20:19:55 (1215 occurrences)
Last logged: 17:08:17
Connection to (192.168.50.65, 502) failed: timed out
Connection to (192.168.50.65, 502) failed: [Errno 113] Host is unreachable
Connection to (192.168.50.65, 502) failed: [Errno 111] Connection refused"
Do you have any advice?
most likely your R5 inverter makes uses a AIO3 wifi/ethernet adapter?
you seem to be one of the unlucky ones (just like me) that have a AIO3 adapter that doesn’t have port 502 (or any other port) open… no clue why, but it means you can’t use modbus over tcp, it seems
This is my wifi module. Is it AOI3?
Can I change it to a modbus module? I have SAJ R5 2.5K-S1 inverter.
Or is there any other method to integrate this to HA? I don’t mind if it’s web based.
Edit:
I found this and it seems to be working: GitHub - erelke/ha-esolar: Custom Integration of SAJ elekeeper