Skip to content

How to get the lowest or highest price?

Malene Trab edited this page Oct 28, 2024 · 2 revisions

To get the lowest or highest price for today or tomorrow, simply use one of these templates
Remember this is an example - replace the sensor name with the name of your sensor

Lowest price today

{{ state_attr('sensor.energi_data_service','today_min').price }}

Highest price today

{{ state_attr('sensor.energi_data_service','today_max').price }}

Lowest price tomorrow

{{ state_attr('sensor.energi_data_service','tomorrow_min').price }}

Highest price tomorrow

{{ state_attr('sensor.energi_data_service','tomorrow_max').price }}