Hi, I am creating a State Of Charge solution that enables monitoring the battery from home assistant. It is all very premature at this moment.
Any comment would be helpful.
More details here:
Hi, I am creating a State Of Charge solution that enables monitoring the battery from home assistant. It is all very premature at this moment.
Any comment would be helpful.
More details here:
Neat. I might give this a go. I had two issues when I attempted this with the INA219:
Power reported is always positive (for both charge and discharge). I had to create a V*I template sensor for power.
I had no idea what the charge/discharge efficiency of my sealed lead acid battery was.
I ended up just using a voltage to capacity calculation as my load currents are very low most of the time so essentially open circuit. These are 18Ah batteries:
Home Assistant SOC template sensor:
- name: "Shed SoC"
unique_id: 6b7013bf-c2ce-464e-a76f-2aa7f4813dd9
unit_of_measurement: "%"
state_class: 'measurement'
device_class: 'battery'
state: >
{% set volts = states('sensor.shed_battery_voltage')|float %}
{% if volts >= 13 %}
100
{% elif volts >= 12.75 %}
90
{% elif volts >= 12.5 %}
80
{% elif volts >= 12.3 %}
70
{% elif volts >= 12.15 %}
60
{% elif volts >= 12.05%}
50
{% elif volts >= 11.95%}
40
{% elif volts >= 11.81%}
30
{% elif volts >= 11.66%}
20
{% elif volts >= 11.51%}
10
{% else %}
0
{% endif %}
availability: "{{ has_value('sensor.shed_battery_voltage') }}"
Hi, does it? I have positive and negative values, but maybe I edited the yaml, I uploaded my latest one.
The whole point of the State Of Charge is not having to rely on voltages.
These are not accurate under load and also impossible to use with LifePo batteries as they are so close to 13v all the time.
I would like to be able to change the upper value of the accumulated Whrs but donβt know how.