JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
159 stars 25 forks source link

Feature request: Option for prices in c/kWh #24

Closed Skippereezi closed 1 year ago

Skippereezi commented 1 year ago

Cents/kWh in my opinion are easier to handle than prices in euros, so it would be nice to have an option in integration setup to use cents instead.

JaccoR commented 1 year ago

Why is it easier to handle exactly? If there are more people interested in this I can probably build this in.

Skippereezi commented 1 year ago

I mean for humans it's easier to talk and compare cents than euros and for displaying in dashboards etc. E.g. current cost is 8c/kWh vs. 0,08€/kWh. At least in Finland this is quite common way providers and people talk about it.

SVH-Powel commented 1 year ago

You can have a template like this: {{(current_price * 100.0) | float}}

JaccoR commented 1 year ago

thats a solution, however the unit will still be wrong. I might make an option to select your unit so it matches the currency of your template.

Skippereezi commented 1 year ago

I believe that solves only the current price, but not the prices in the attributes etc. When used in graphs for example, it should be same unit price that is used elsewhere.

JaccoR commented 1 year ago

The template should change all prices accordingly, so it should work in graphs as well.

Skippereezi commented 1 year ago

Oh yeah, thats true. I mixed it with templates inside Home Assistant.