Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103349

Split sensor state in multiple entities - energy

$
0
0

Hi, I’m setting energy panel in my setup.
My inverter sends two entities via modbus: one for grid consumption/return and one for batteries charge/discharge.
A positive value in battery sensor means charging, a negative discharging.
The same for grid sensor (positive means returning, negative consuming).

However HA requires 4 separate entities (battery charge, battery discharge, grid consumption, grid return)
I’m searching for a way to split those negative/positive values in 4 distinct entities, each with positive values:

when “battery sensor” sends value “-1.5 kW”, “battery charging” sensor should show “0 kW” and “battery discharge” sensor “+1.5 kW” and so on.
Is there a way to do that?

Thank you for your support.

cheers!
Paq

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>