Creating Sensors and filtering specific JSON Value from Curb Energy API

My coding knowledge is based off chatGPT and copying other peoples code :sweat_smile:

I made a new thread with an issue I can’t figure out. One of my sensors from curb I am using to see how much power I am returning to grid (NET) which outputs a negative value. Using the sensor for the energy dashboard gives improper data because of the negative value when I am returning power to the grid. I cannot figure out how to properly utilize this sensor so I can have data on energy returned to the grid.

Heres my thread Energy Dashboard Sensor Help

Let me buy you a beer for at least figuring out how to get the sensors into HA.