#Love the new Live Power Tracking but small problem with the Battery Power Sensor with Libbi

1 messages · Page 1 of 1 (latest)

near canyon
#

I absolutely love the changes to the energy dashboard and quickly added all the power sensors with around 80% of my usages tracked at the device level. The addition a while ago of being able to set the upstream device was such a welcome addition and it just keeps getting better.

My problem is with my battery storage which is a MyEnergi Libbi. It appears my problem is the readings are reversed in the case of the Myenergi integration where charging is shown as a positive and discharge as negative. In the energy dashboard is says to pick a sensor where positive values indicate discharging the battery, negative values indicate charging the battery.

I'm fairly new to HA and believe a helper may help but also wondered if there may be other options for example:
Requestion/suggest a changes to the MyEnergi integration?
Feature request to add option to specify in the Power Sensor picker to reverse the readings?

My other option is to add a Shelly CT clamp on the feed to/from the Libbi and use that as the sensor because I can place the sensor direction as required.

Any input greatly appreciated .

Keep up the great work.

opaque hedge
#

It would be nicest if the integration would reflect how HA does it. You can of course always create a Feature request at the integration.

For now, you can make a template sensor for it.
Settings => Devices & services => Helpers => Create helper => Template => Sensor

State:

{{ - (states('sensor.your_sensor) |float) }}

Unit of measurement:
same as the sensor has now

Device class:
Power

State class:
Measurement

Device:
Not needed, but you can select the battery device you already have to add it to that device

Advanced => Availability:

{{ states('sensor.your_sensor) |is_number}}
near canyon
opaque hedge
#

I did make a small edit a bit after posting. So please check if it is correct 😄

near canyon
opaque hedge
#

You did edit the entity to the correct one I hope?

Or do you get an error?

near canyon
opaque hedge
#

Ah, so it is working? 😊

near canyon
tardy wing
#

Many (most) battery integrations in Home Assistant use the reverse convention and will require an inverter helper sensor, which is complex to set up for inexperienced users.

Some battery cards, allow an invert option for this purpose and this should be raised as a FR.

tardy wing
near canyon