UK Carbon Intensity forecast

The UK’s National Grid system operator has published an API to forecast the carbon intensity of electricity nationally and region by region. The forecasts are quite short (72h max) and relatively precise

There are a couple of integration out there but none useful enough for my taste so I refactored some of the code and can now produce this type of cards in home assistant

UI is a bit suboptimal as I patched it together with the loverly ApexChart Card extension and some markdown. A proper custom card could be better

Code on github https://github.com/jfparis/sensor.carbon_intensity_uk

Hi, this is just what I want to add to my home assistant config and I have just attempted to do so.

I have two issues/ problems:
i) The list of files that should be copied in the readme.md are not all present in the github repository
(Are there files missing or do I only require what is there?)

ii) When I go add the integration I get a popup titled “Carbon Intensity UK” with a required text field. This is not mentioned in the readme.md and can’t find a value that will allow the addition of the integration to complete.

Any thoughts?

Thanks!

2022-07-02_12-48-29