Correct Integration With Predbat #168
Replies: 8 comments
-
|
You shouldn't use both integrations together because the poll intervall would be to small and Sigenergy give errors. |
Beta Was this translation helpful? Give feedback.
-
|
Here is some configuration I have been able to write together. Home Assistant configuration.yaml additions: BatPred apps.yaml example file: |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your help with this. Using the configs above (changed for UK), predbat returns the following error
|
Beta Was this translation helpful? Give feedback.
-
Did you add the template as above? That is where you should check for errors. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I used the template and I have moved forwards a little.
The above two entities were disabled, which I presume is default. They have now been enabled. Looking in Developer Tools/Entities I have the following entities, with what look to be the correct values and one is *1000 of the other (kW vs W)
Note the _2 instead of the _w I renamed the discharging power entity, restarted the home assistent and the charging entity is now fixed (I dont know why this fixed an unrelated entity). However thr e outcome is that apps.yaml is no longereporting any error. Ill now start try and understand if Predbat is actualy controlling Sigenstore. Im know I making progress as the logs are now stating that Im writing to the invertor register
|
Beta Was this translation helpful? Give feedback.
-
|
ok, My changes above really helped the PredBat Plan and it was alot more obvious that it was trying to import/export energy from the grid at appropiate times. ( There are have a further two changes my side and I think,,,, Im working, as Predbat just started to export all the energy in my battery (as I write this, Im at the point where I would be gain the most value from selling excess energy)
I found 2 using a trace and I noticed an error
Finally, I did come across the following setting that I didnt change, but it might be worth noting. I think the HAC integration defaults to setting the Sigen Plant in "Read Only" mode a) Settings/Devices and Services/Sigen ESS/Sigen Plant |
Beta Was this translation helpful? Give feedback.
-
|
As a small update today, all of my automations had disappeared aside from the two defined above I removed them from the configuration.yaml to the automations.yaml (dropping -automation). Reloading HA, then resolved the issue |
Beta Was this translation helpful? Give feedback.
-
|
I have been watching my Predbat integration and Im not sure if it is behaving as expected when changing state from From what I can see the current configuration sets the following when one of the freeze states is triggered following this the automations are then utilised to return the charge/discharge limits to their correct values.
It is the triggers for these automations, I "think" may need a review. My setup is Octopus Agile/Fixed Export, which means that my electricity import prices vary every 30 minutes and the export price is constant. Prebat over multiple times a day will tranverse between different states.
I can see the automation to return the charge/discharge limits to their correct values does trigger, but not as frequently as expected. Im not sure what is actually causing it to trigger. As an outcome my system is attempting to export at its maximum limit, however it is constained as the discharging limit is still set from the freeze discharge window. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for the work on this integration. I've just recently swapped over to this new integration instead of the older version and just wanted to check I was doing the Predbat integration correctly.
For predbat to talk to the system it is making use of
modbus.write_registerwhich worked fine with the old integration. With the new integration Home Assistant knows nothing ofmodbusand so to get it to work I had to add the following to my configuration.yaml:Obviously this integration is already using modbus in the background so I shouldn't in theory have needed to add that entry to my configuration.yaml. What is the method to actually talk to the battery using the new integration.
This is part of the current code that is being used by Predbat from their docs that was mainly aimed at the old integration:
Without the modbus entry in to configuration.yaml, there is a home assistant log entry that modbus doesn't exist.
Beta Was this translation helpful? Give feedback.
All reactions