Hi,
Really like this. I just had solar installed and this is the first time I have used home assistant.
Not fully setup powercalc however the automation triggered last night and failed due to this error - Any ideas what the issue is?
Battery - Disable forced charge uses an unknown service
The automation "Battery - Disable forced charge" (automation.battery_disable_forced_charge) has an action that calls an unknown service: rest_command.solax_local_set_forced_charge_start.
Set Solar Battery Target Level uses an unknown service
The automation "Set Solar Battery Target Level" (automation.set_solar_battery_target_level) has an action that calls an unknown service: rest_command.solax_local_set_charge_battery_from_grid.
Solved it! The register numbers for ‘setReg’ are not a zero-based array, they’re a 1-based array. So it’s 28 and 36 to set, rather than the 27 and 35 that I read!
Gotta love Solax, feels like they’re never knowingly logical or consistent.
That looks like HA doesn’t know those REST commands, which suggests they’re not in your configuration or the names are mis-typed. Have you added kamilb’s rest_command definitions to your configuration somewhere and did you reload or restart HA after adding them?
If you think they’re okay, enable the developer tools and try calling the service from the services page there.
I’ve implemented the Solax local settings and these are great - thank you! I’m on Intelligent Octopus so when my car is charging, to stop the battery discharging I set the Minimum State of Charge to 100% - this works fine! However, when the car stops charging and I go to reset the minimum State of Charge parameter back to the usual 10% it fails. Looking into this in more detail, it fails because the inverter has gone into idle mode. According to Solax, idle mode will be exited when either the battery starts charging (this won’t happen as it’s at 100%) or the PV starts generating power - but at 6:00am it’s dark!! Is there a way I can stop it going into idle mode or alternatively is there another way to stop the battery discharging whilst the car is charging!?
Merci Kamilb pour tous vos recherches, elle mon été très bénéfique.
J’ai démarré Home assistante il y a 6 mois et je m’intéresse sur la suite de l’intégration avec la gestion intelligente de la batterie.
Cependant je ne comprends pas pourquoi mon code ne fonctionne pas.
Je souhaite juste passer l’état :
“solax_local_set_inverter_mode”
- “Self Use” vers “Manual” respectivement “0” vers “3”
-“solax_local_set_manual_mode_behaviour”
- “Do Nothing” vers “Forced charge” respectivement “0” vers “2”
Comme je ne suis pas alèse avec le codage j’utilise NODE-RED pour tous les déclanchement et gestion qui suivrons.
Pour information si je modifie a la main les paramètre sur l’onduleur ou sur solax cloud j’ai bien les modification des ID suivent:
- “sensor.solax_local_inverter_mode”
- “sensor.solax_local_manual_mode_behaviour”
- “sensor.solax_local_manual_mode_behaviour”
Je ne comprends pas trop mon erreur ci quelqu’un veux bien prendre de temps de me lire merci a vous
@kamilb really thanks for the help to integrate solax into Home Assistant, i followed your instruction and i have no issue haveing both cloud and local values, but… after a system restart i don’t see cloud values, only local and i don’t know how to debug it…
Amazing work! Used all your insights to build my own automation for X1 G4.
Have you found a way to update advanced settings registers via local API. Due to cold weather I’m looking to automate battery heating management, however API always response with failed status.
Thanks for the reference. I’ve read your comments on Modbus and tried it. But for some reason it shows Disabled even when I enable it via the app. I’m a bit concerned about reliability of Modbus over tcp that I saw in several discussions. So I decided to go with http api.
I’ve sorted the issue - totally forgot that with HTTP API reading and writing registers are zero-based and not zero-based accordingly.
Now it’s working perfectly
That’s interesting, that’s different to how my SolaX behaves. I have two inverters - the one with the battery is always online. What model is yours? It seems that no two SolaX models behave the same way!
Another way to achieve what you want, is to change the operating mode to ‘backup’ while charging the car. That should stop the battery discharging unless the grid power fails. Then set it back to ‘self-use’ when done.
Whether that will keep the inverter online for API access, though, only testing will find out!
The sensor does not exist even if is in the sensor.yaml with “solax_rest_local” and “solax_rest_local_settings” (both working)… any suggestion?
Thanks for all
Been trying to get this to work but keep getting 401 unauthorized error message, I’ve changed the REG_NO and can access the inverter using a web browsers on the same network, only thing is, it doesn’t ask for a password to access the site and I think this might be complicating the process? any thoughts as I’m slowly going out my mind!
I’ve tried admin, ADMIN, Admin, the inverter 4 digit pin, blank (removing the pwd prompt) and all sorts… this really is the last part of a puzzle as we use Agile and I would really like some intelligence as to when the batteries are charging etc
Just a Note for Connections with Wifi Sticks V2 (tested with Version 2.033.20 and 2.034.22).
It seems not necessary using a reverse Proxy setup with nginx to map the IP 5.8.8.8 or use downgraded Firmware to access the API on a local IP, its enough to add a “X-Forwarded-For: 5.8.8.8” header to the request.
The device shows up at my local Network as “MXCHIP”. Using: