In the battery power sensor there are no negative values, only positive values for both charging and discharging.
I would like to take out a sensor that, depending on the state of the battery direction sensor, can take out battery power watts whether they are charging or discharging.
Example:
If batterypower is: 300W and the state of battery direction: discharged I get an entity of power_battery_discharge