Replies: 3 comments 1 reply
-
You should be able to create a template sensor that gets the kWh SoC from the existing Predbat base10 sensor attributes for any time you want. You'll need to iterate across the 'results' attribute to find the right time you want (Google search for the template YAML ..) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Indeed. Google and ChatGPT tried but couldn’t get the result I was looking for.
Thought it might be something others without inverter control might want to see:
Mark
On 10 Oct 2024, at 10:57, Geoffrey Coan ***@***.***> wrote:
You should be able to create a template sensor that gets the kWh SoC from the existing Predbat base10 sensor attributes for any time you want.
E06859A1-C4FB-4D39-B3E6-33DADA3695D2.jpeg (view on web)<https://github.com/user-attachments/assets/fcdf845e-dcc2-4a7b-9ef2-dc1cbb4a9f54>
You'll need to iterate across the 'results' attribute to find the right time you want (Google search for the template YAML ..)
—
Reply to this email directly, view it on GitHub<#1519 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM5C5JYRRGALCHYEVOT24ZTZ2ZFQLAVCNFSM6AAAAABPWJ6OV2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJQGIZTEMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Here's an example for min charge just before the cheap rate Flux window - you should be able to adapt this {% set capacity = states('sensor.givtcp_SERIAL_battery_capacity_kwh')| float %}
{% set tomorrow0200 = (today_at('02:00') + timedelta(days=1)).strftime ('%Y-%m-%dT%H:%M:%S%z' )
%}
{% set tomorrow0155 = (today_at('01:55') + timedelta(days=1)).strftime ('%Y-%m-%dT%H:%M:%S%z' )
%}
{% if state_attr('predbat.soc_kw_best','results') [tomorrow0200] is defined %}
{{(100 * state_attr('predbat.soc_kw_best','results') [tomorrow0200] / capacity) }}
{% else %}
{{(100 * state_attr('predbat.soc_kw_best','results') [tomorrow0155] / capacity) }}
{% endif %} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could we have a sensor that tells me either the predicted SOC% or SOC KWh of the battery just before the next cheap rate kicks in (23:30 for me). The reason I want to do this is I want to know if I am going to barely make it to 23:30 on my current/predicted usage or if I can put on the washing machine etc which may not be part of the prediction.
I suggest using BASE10 rather than BEST10 is because BEST10 will try to get to minimum SOC by 23:30 to make the most exporting what's left in the battery. I think using BASE10 would tell me my SOC at at 23:30 without any dump/pump just before the cheap rate comes in.
In summary, I am trying to figure out if I can put the washing machine on, based on the amount of SOC we have left, so that I have 10% or more at 23:30 (and so the battery will still be supplying the home).
Beta Was this translation helpful? Give feedback.
All reactions