- Add repository URL to Home Assistant Add-on store
- Install the Add-on in Home Assistant
- Configure the Add-on:
- Region is mandatory
- Carnot Username is required only if using Carnot.dk predictions
- Carnot ApiKey is required only if using Carnot.dk predictions
- Eloverblik Token is not used yet - but may soon replace tariff configuration
- Spot price values are all created as
sensor.energy_manager_* - Confirm the tariff levels in
config/energy_assistant/tariffconfig.json(recommend using Studio Code Server to edit it) - Configure spot price levels in
config/energy_assistant/spotpricelevels.json(recommend using Studio Code Server to edit it) - To add some graphs using ApexCharts (from HACS) see below
Found in config/energy_assistant/spotpricelevels.json
These are the defaults:
{
"free": 0.0,
"cheap": 0.5,
"normal": 1.5,
"expensive": 2.5,
"extreme": 4.0
}Found in config/energy_assistant/tariffconfig.json
These are the defaults:
[
{
"Start": "2024-10-01",
"End": "2025-03-31",
"Intervals": [
{
"From": 0,
"To": 6,
"Tariff": "Low"
},
{
"From": 6,
"To": 16,
"Tariff": "High"
},
{
"From": 17,
"To": 20,
"Tariff": "Peak"
},
{
"From": 21,
"To": 23,
"Tariff": "High"
}
],
"Tariffs": {
"Low": 11.45,
"High": 34.34,
"Peak": 103.02
},
"Fee": {
"Regular": 76.10,
"Reduced" : 0.8
}
}
]type: custom:apexcharts-card
experimental:
color_threshold: true
header:
show: true
title: Elpriser (6 døgn)
now:
show: true
label: Nu
span:
start: day
graph_span: 144h
yaxis:
- min: 0
max: ~4
series:
- entity: sensor.energy_manager_spot_price
name: Spotpris
type: column
show:
extremas: true
stroke_width: 0
data_generator: >
return entity.attributes.extra_values.filter(x =>
x["IsActual"]).map((start, index) => {
return [new Date(start["Hour"]).getTime(), entity.attributes.extra_values[index]["Price"]];
});
color_threshold:
- value: -10
color: blue
opacity: 1
- value: 0
color: darkgreen
opacity: 1
- value: 0.5
color: green
opacity: 1
- value: 1.5
color: orange
opacity: 1
- value: 2.5
color: red
opacity: 1
- value: 4
color: crimson
opacity: 1
- entity: sensor.energy_manager_spot_price
name: Prisgæt
type: area
show:
extremas: true
stroke_width: 0
data_generator: >
return entity.attributes.extra_values.filter(x =>
!x["IsActual"]).map((start, index) => {
return [new Date(start["Hour"]).getTime(), entity.attributes.extra_values[index]["Price"]];
});
color_threshold:
- value: -10
color: blue
opacity: 0.5
- value: 0
color: darkgreen
opacity: 0.5
- value: 0.5
color: green
opacity: 0.5
- value: 1.5
color: orange
opacity: 0.5
- value: 2.5
color: red
opacity: 0.5
- value: 4
color: crimson
opacity: 0.5