Tibber integration - PriceLevel and PriceRatingLevel

Dear @Danielhiversen

Would it be possible to include/expose the Tibber PriceLevel and the PriceRatingLevel as entities in the HASS integration. This would be extremely usefull when using energy automations.

For example steering my heat Pump with smart grid ready levels based on the PriceLevel etc.

https://developer.tibber.com/docs/reference#pricelevel

best regards and thanks

Hi @roelos

Fully agree on this!
in the meantime this achives the same:

  1. Create a template helper>template sensor
  2. put in this code: {{ state_attr('sensor.YOUR SENSOR_electricity_price', 'price_level') }} like this:

Result:

1 Like

Thanks @matrover for your fast response, that did the trick. \Would it also be possible to retrieve the PriceRatingLevel (Normal, Low or High)?

best regards and thanks!

NP!

i dont get what you mean by “PriceRatingLevel (Normal, Low or High)” the sensor above gives me the Normal, Low or High. values

Hi @matrover ,

The Tibber API exposes the PriceLevel: Tibber Developer

But also the so called PriceRatingLevel:

Ah now i get your question, that value is not present in the current intergration so the trick above wont work. the dev would need to include this in the integration.

This data is present atm:

Thanks @matrover , I also extracted the max-, min- and avg_prices attributes.

best regards