Har tenkt på noe slikt jeg også, men endte opp med 4 horisontale linjer istedenfor. Tallene 0.6 0.9 1.15 og 1.4 er de samme som Tibber bruker for billig, normal, dyr og veldig dyr pris.
- entity: sensor.nordpool
show:
in_header: false
name: Snitt
type: line
curve: straight
float_precision: 4
stroke_width: 1
opacity: 0.4
color: green
data_generator: >
return [[start, entity.attributes.average*0.9],[end,
entity.attributes.average*0.9]];
- entity: sensor.nordpool
show:
in_header: false
name: Snitt
type: line
curve: straight
float_precision: 4
stroke_width: 1
opacity: 0.4
color: green
data_generator: >
return [[start, entity.attributes.average*1.15],[end,
entity.attributes.average*1.15]];
- entity: sensor.nordpool
show:
in_header: false
name: Snitt
type: line
curve: straight
float_precision: 4
stroke_width: 1
opacity: 0.4
color: red
data_generator: >
return [[start, entity.attributes.average*1.4],[end,
entity.attributes.average*1.4]];
- entity: sensor.nordpool
show:
in_header: false
name: Snitt
type: line
curve: straight
float_precision: 4
stroke_width: 1
opacity: 0.4
color: gray
data_generator: >
return [[start, entity.attributes.average*0.6],[end,
entity.attributes.average*0.6]];