CurrentCost data into Home Assistant?

If anyone is interested, I’ve created a custom component for CurrentCost: