A sankey chart used to display energy usage (gas and/or electric) can now convert the native energy units (kWh or cubic feet of gas) into their corresponding monetary cost or CO2 intensity.
Note that while HA's Energy Dashboard knows and tracks utility prices, the API does not make them available to us outside of over-summarizing statistics like total cost. Thus utility cost must be supplied to the sankey config, and only fixed rates are supported.
CO2 intensity:
energy_date_selection: true
convert_units_to: gCO2
unit_prefix: k
For carbon intensity, we are able to use (abuse) the HA API to actually get the carbon intensity of all electricity usage on an hourly basis. Gas is assumed to have a fixed (but configurable) carbon intensity of 66.6 gCO2 per cubic foot.
A sankey chart used to display energy usage (gas and/or electric) can now convert the native energy units (kWh or cubic feet of gas) into their corresponding monetary cost or CO2 intensity.
Cost:
CO2 intensity:
For carbon intensity, we are able to use (abuse) the HA API to actually get the carbon intensity of all electricity usage on an hourly basis. Gas is assumed to have a fixed (but configurable) carbon intensity of 66.6 gCO2 per cubic foot.
Closes #158