Hi there,
New to Home Assistant.
Im looking for some help as im not sure where im going wrong.
The solarman intergration for my Solar only has 1 sensor for battery charge and discharge Positive and negative values
I have setup two template sensors to split it out but the reporting is way higher than expected.
- sensor:
name: Battery_Charge1
state: >-
{% if states('sensor.solarman_battery_charge_discharge_power') | float
>= 0 %} {{ states('sensor.solarman_battery_charge_discharge_power') }}
{% else %}
{{ 0 }}
{% endif %}
state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
unique_id: EnergyToBattery1
- sensor:
name: Battery_Discharge1
state: >-
{% if states('sensor.solarman_battery_charge_discharge_power') | float
<= 0 %} {{ states('sensor.solarman_battery_charge_discharge_power') | float | abs }}
{% else %}
{{ 0 }}
{% endif %}
state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
unique_id: EnergyFromBattery1
When i look at the sensor via Dev Tools the value being displayed is correct the values are just way to high for the total increasing