Solar solar power consumed and returned to grid in two entities

Hi, i have a fronius inverter configured in to my home assistant through the fronius integration. This integration doesn’t provide the power consumed by the house and the power returned to the grid separetely, but provides them in one entity, when the value is positive the house is consuming enrgy from the grid, and when is negative the house is returning energy to the grid. So, i wonder if somebody could tell me how to separate the positive and negative values in two different entities by filtering those values or something like this with templates or other tools that has home assistant.