-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
help please :-D #1886
Comments
Very strange issue, never seen that before, the car charges but not the battery. The way you have pasted your apps.yaml into the issue I can't see whether there is a problem with the file layout, but probably not. Looking at the plan I see you have set best_soc_keep to 1.5, _min to 1.5 and _max to 20.9 - I would start with checking those first. If you set best_soc_min then predbat will always ensure you have that amount in your battery, so if your house load exceeds the prediction and the SoC drops below 1.5 then predbat will charge the battery regardless of what the import rate is. Unless you need to keep something back for an EPS and you have lots of power cuts, set this to zero. Can set best_soc_keep if you want, this is a soft constraint, but personally I have mine set to 0 also. best_soc_max I have never seen it set by anyone, how did you come up with this value? This may be the cause of your weird plan as it looks like it could be set to more than your inverter can deliver. Again mine is set to 0. |
best_soc_max will break stuff, that sets the maximum charge level which means you are basically preventing any meaningful charge - like GCoan says set it to 0. |
sorry about the format, you should see the first edit, had too remove all the "#" as it was turning all the comments into sadly i had all these things at 0 already and the issue was the same, i was mucking about trying to make things happen, ill put them all back to 0. one thing to note is that i do have the 3-phase inverter and batteries. i didn't have "sensor.givtcp{geserial}battery_power" as an entity so I created it with a helper, which seems to be working from what I can see as the stats look fine, ill paste code below and add the logs
|
I'd recommend you change the template to being a time based trigger template. The problem with the one you have is that every single change in battery charge or discharge power, even by a single watt will result in a new state record being generated for your battery power entity. You'll fill your database up with unnecessary guff as well as slow HA down a bit. Here's a similar one I have for PV power so I can see total PV power vs Solcast forecast. I trigger this every 3 minutes but I have other sensors for things like net energy today on slower frequencies like 5 or 15 minutes:
|
Thanks for that I'll change the sensor, do you have any ideas to why I don't have charge or export on my plan? |
Another copy of the plan would be useful, and if you can attach the apps.yaml file (just attach is straight into github, don't need to copy/paste it), but in the logfile I see this:
So basically its saying that most of your load today is from charging the car/iboost, leaving you with very little actual house load consumed. Is this correct? It might be why predbat sees no value in charging the battery |
no that doesn't seem to add up to reality at 19:30 unless that is the load number with the EV charging already removed. ](url) |
You can comment all the GivTCP2 lines out (or remove them) Looking at the yaml I can see at least two examples where you have commented out the label but not the sub items. This may cause problems, eg:
Make sure you follow the advice on correct indentation and formatting of apps.yaml https://springfall2008.github.io/batpred/apps-yaml/ |
Looking further I see other formatting errors in apps.yaml where sub-nodes are not indented two spaces, e.g.:
Another thing I notice is you have days previous set to just 4, so Predbat will look at your history from 4 days ago and that's it. Its not the cause of this but it does mean any unusual load on that day will be what predbat plans against. |
Slightly of an aside here, but I seem to recall that history can also be stored in the form of 'long term statistics'? Never looked into it, but if that's the case, then it would give a richer long-term history for this sort of thing. So rather than just looking at 'last Tuesday' or whatever, it could be based on a weighted average of Tuesdays going back further in time. I did very recently increase my history retention to 22 days (to allow 7/14/21 to be picked up by predbat), but I suspect that might cause me data volume & performance issues. So perhaps a long-term-statistics solution would be a better approach in the long run. |
In HA there are three types of history:
Predbat uses number 1. The short term statistics would probably be granular enough but at the moment its not what predbat uses. And yes, keeping lots of history can bloat your database. I have been doing a lot of work on improving this and will update the predbat documentation with some advice soonish |
I've done all this and chanced to the dev givtcp and have a slight improvement could this be part of the issue? Warn: record_status Inverter 0 unable to read REST data from http://homeassistant.local:6345/readData - REST will be disabled there is inverter data at that address |
As far as I know there's only been one other person trying to get Predbat working with a 3 phase inverter, @LeeFarm11 and he raised and has had progressed a number of issues with both givtcp and predbat Predbat issues include #1426 #1607 #1621 #1625 and #1630 I know that there have been dev changes made to givtcp to improve the inverter support. I think its still likely to be trial and error working out what's wrong and fixing it. On the face of it your predbat appears to not be having any issues in reading the data but then you'd think it would devise a sensible plan? |
Yes I have been reading his posts on both predbat and givtcp and tagging
him in was probably my next step so thanks for that.
@LeeFarm11 do you think you would be able to help me? Have you got it
working correctly? Or at least the plan working correctly? I feel of I
can get the plan correct I can automate my way through the rest as I have
automations working for charge and and export already
…On Wed, 22 Jan 2025, 07:29 Geoffrey Coan, ***@***.***> wrote:
As far as I know there's only been one other person trying to get Predbat
working with a 3 phase inverter, @LeeFarm11 <https://github.com/LeeFarm11>
and he raised and has had progressed a number of issues with both givtcp
and predbat
Predbat issues include #1426
<#1426> #1607
<#1607> #1621
<#1621> #1625
<#1625> and #1630
<#1630>
I know that there have been dev changes made to givtcp to improve the
inverter support. I think its still likely to be trial and error working
out what's wrong and fixing it. On the face of it your predbat appears to
not be having any issues in reading the data but then you'd think it would
devise a sensible plan?
—
Reply to this email directly, view it on GitHub
<#1886 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALNYOW5JRJ6IMSQCWOJFFTD2L5CEZAVCNFSM6AAAAABVQ5CCLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBWGQ4DGMJRGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I am not very happy with where I am. I'm not happy with GivEnergy, and not happy that a year down the road the 3 phase Inverter is still not 'supported' by GivTCP. I would like to offer @britkat1980 more support, but I know he is busy. I believe he did spend another day at GivEnergy HQ recently, but I don't know how much progress he made with understanding and interfacing with the 3 phase Inverter. I would like to offer him to come to mine and play with my Inverter as much as he likes in an effort to move forward. Until then, my predbat plan continues to work and my automation script continues to handle the charging and discharging, but I suspect it will be much less successful if we ever get any significant sunshine. I have concerns about the solar forecast data, but not had time to investigate properly. I have not spent much time on it recently, too much other stuff going on. But -
Latest version of my automation is here -
|
I was going to suggest that might be an improvement. Bear in mind that Predbat still uses REST to obtain the inverter information from givtcp, but you have the choice as to whether to use REST to control the inverter or use Home Assistant controls. Commenting the REST line out means Predbat uses the givtcp HA controls which is one thing less to have to be working right Glad to hear you have made some progress @LeeFarm11 and it is working albeit with automation interventions to get around the givtcp control deficiencies. |
Could you share your apps.yaml for comparison please? A d anything else you
might find useful?
…On Wed, 22 Jan 2025, 08:50 Geoffrey Coan, ***@***.***> wrote:
for me I have REST disabled in apps.yaml
I was going to suggest that might be an improvement.
Bear in mind that Predbat still uses REST to obtain the inverter
information from givtcp, but you have the choice as to whether to use REST
to control the inverter or use Home Assistant controls. Commenting the REST
line out means Predbat uses the givtcp HA controls which is one thing less
to have to be working right
Glad to hear you have made some progress @LeeFarm11
<https://github.com/LeeFarm11> and it is working albeit with automation
interventions to get around the givtcp control deficiencies.
—
Reply to this email directly, view it on GitHub
<#1886 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALNYOW27WCNXWSWIH4BYHHD2L5LWBAVCNFSM6AAAAABVQ5CCLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBWGYZDOMBVGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Could your share your apps.yaml and your config settings? All the numbers in my plan look about right to me but even when battery empty and electricity at 7p it will still not plan to charge. All sensors look right too so I must have something wrong |
@lee can you try the latest dev version, which has my updates from time at GivEnergy HQ last month. It should fix some of the control issues you have experienced. I’d be interested in your feedback. |
Hi @Ryuisnod GivTCP Configuration. I see I have set Inverter 1 to only show Battery data. I guess that is wrong. Will try to test what difference it makes later. EVC is disabled for now to save complications. Tariffs are wrong, but predabat is set with correct rates. |
@LeeFarm11 Ok I seem to have it going now thanks for that. @britkat1980 I'm using the givtcp dev fork. Predbat is able to charge and export natively without automations. I didn't have predbat working before so I can't compare but I had made my own automations for charge and export and it required flicking a lot of switches but that seems to not be the case anymore. Only things that haven't worked natively with predbat is battery power as there isn't an entity for that and the formatting of the entity names being different. If there is any other information you want or things I can test from my 3-phase setup just let me know. Thanks for you time and effort on this |
hello,
I feel I've got everything set up correctly but my predbat plan doesn't include any charging or exporting, I have been reading through the Docs for about 2 days checking every setting, any help will be appreciated as im lost. The plan looks reasonable if it only charges my battery!
The text was updated successfully, but these errors were encountered: