home-assistant-rct-power-integration
home-assistant-rct-power-integration copied to clipboard
Change Request for all negativ values into positives.
For what reasons are the values on the entities are negativ? From my point of view, the values of the entitiy should always are positiv, even if they are consumed. Later on, during calculation in any other application, home assistant or Grafana the values of the entities should be subsctracted from another value, but in the case the value are already negative and you can not subsctract them.
My request would be to change all negative values into positiv.
imho, positive/negative values are pretty fine. One could use one entity for automations etc. Changing all to positive would either cause two entities to be needed for everything (such as battery_power_charge
and battery_power_discharge
) or even more complicated: one entity for the value (battery_power
) and a "type" entity (battery_charging
or battery_discharging
).
I am using Grafana also quite extensively. May I ask what your use case is exactly and what database you use behind the scenes (influx, timescaledb, ...)? Maybe there's a better solution for that?