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: create Tomorrow sensors #28

Closed Mariusthvdb closed 1 year ago

Mariusthvdb commented 1 year ago

just like

Schermafbeelding 2022-10-18 om 07 35 54
ikke-zelf commented 1 year ago

hopefully they give no errors in the logging till time reaches 3pm as they are not available until that time.

Mariusthvdb commented 1 year ago

that should be handled in the integration indeed

currently we have an empty attribute prices_tomorrow: , which seems a bit odd too:

Schermafbeelding 2022-10-18 om 07 32 11
JaccoR commented 1 year ago

which sensors would you want for tomorrow and how would you use them?

Mariusthvdb commented 1 year ago

Guess it would be awesome to have those same sensors for both today and tomorrow.

Ultimately my goal would be to plan (and hopefully automate ) devices in the home.

Some indication of the cheapest moments in the next X hours would be the ultimate of usefulness...

JaccoR commented 1 year ago

So average, highest and lowest for tomorrow?

Mariusthvdb commented 1 year ago

yes please, and also the time of highest and lowest if possible, those seem very useful for planning any power consumption the next day

JaccoR commented 1 year ago

I'll leave this open for now, if there is more interest for this, i could add it. I do not immediately see how one would use the highest/lowest price and times of tomorrow in automations, as you could also use todays sensors for that right?

Mariusthvdb commented 1 year ago

uhm, no? suppose I have my dishwasher filled and ready, or some other power consuming utility, and I want to activate those tomorrow at the cheapest hour, todays sensors are not very useful? Not even talking about electricity heaters... turning off at peak prices of the next day, activated the evening before next days work day (away from home..)

btw quick question: do you also plan Gas prices? like eg Frank does that?

Schermafbeelding 2022-10-19 om 23 18 41

if you would consider, Ill issue a FR for that

JaccoR commented 1 year ago

Todays sensors update at midnight. So when you have the dishwasher ready after the lowest price of the day has already been, and you use the sensor "time of lowest price today" the dishwasher will turn on at next days lowest price. I guess I can't imagine a scenario where you would rather have the dishwasher (or any other appliance) run at tomorrows lowest price than at todays lowest price.

About the gas prices, ENTSO-e unfortunately does not give the gas prices directly. So I am not planning to add that in the near future.

Mariusthvdb commented 1 year ago

ha well, if you put it like that, I can understand your pov.

but now get a bit more specific: say we want to decide when to run it, today or tomorrow. (actual usecase I this household, concerning dishwasher, washing machine and some other utilities, especially the induction stove for perparing some default food basics)

I always have to 'guess' now, based on the Energy forecast integration.

Having valid today and tomorrow entities to be able to compare those would make this choice more based on factuality.

Unless you say there will never be a moment in time when both today and tomorrow lowest price are available?

About the gas prices, ENTSO-e unfortunately does not give the gas prices directly.

would you know of any other service that does provide these?

Damazinho commented 1 year ago

Gas is also the one i'm really missing. I noticed that allmost all energy providers with flex prices in NL have always the same price for the whole day. From one of the providers I found the API (for today: https://mijn.easyenergy.com/nl/api/tariff/getlebatariffs?startTimestamp=2022-10-20T22%3A00%3A00.000Z&endTimestamp=2022-10-21T22%3A00%3A00.000Z&grouping=) but I don't have the knowledge to get the price of gas from the API into HA.

Mariusthvdb commented 1 year ago

here you go:

Schermafbeelding 2022-10-21 om 16 46 57

je kan de kleuren aanpassen in bijgevoegde configuratie:

rest sensor gasprijzen easyenergy_yaml.txt

kon geen yaml uploaden, dus maar in txt

Damazinho commented 1 year ago

here you go:

Schermafbeelding 2022-10-21 om 16 46 57

je kan de kleuren aanpassen in bijgevoegde configuratie:

rest sensor gasprijzen easyenergy_yaml.txt

kon geen yaml uploaden, dus maar in txt

Wow, thanks! Is er ook nog een manier dat ik op een specifiek moment alleen de prijs ophaal? Aangezien de prijs om 6 uur 's morgens bekend wordt gemaakt en dan voor de rest van de dag geldt?

Mariusthvdb commented 1 year ago

Nee, ik ben daar zelf mee aan het puzzelen ook voor stroom, maar dat lukt nog niet.

Denk aan het hele verhaal in 1 attribute en dan per trigger template (op tijd) laten updaten.

Was mijn hoop....

Voor nu is dit het. Je kunt natuurlijk wel gewoon alles templaten wat je maar wilt op basis van deze test sensor. Zie bv de 3 template sensors die ik er al aan had toegevoegd

Of... is dat eigenlijk wat je bedoelt?

Mss anders beter even een andere topic aanmaken, dit wordt wel erg off topic... tag me gerust

ikke-zelf commented 1 year ago

Q and A topic toegevoegd waar ik een korte uitleg geef hoe de prijzen te koppelen. kan nog gedetailleerder maar het begin is er.

Vinisz commented 1 year ago

here you go:

Schermafbeelding 2022-10-21 om 16 46 57

je kan de kleuren aanpassen in bijgevoegde configuratie:

rest sensor gasprijzen easyenergy_yaml.txt

kon geen yaml uploaden, dus maar in txt

Ziet er cool uit, maar ik ben nogal nieuw in HA, dus , hoe krijg ik dit erin ? copy/paste in een bepaalde config oid ?

Mariusthvdb commented 1 year ago

HI @JaccoR so here we are.... hope this can be re-opened, for the tomorrow sensors request. Please let me explain.

its now 22.45, and I have to decide to turn on the dishwasher now, or maybe do it tomorrow, at some point during the day, when the price might be better. Currently, the prices are still all for today:

Scherm­afbeelding 2023-03-28 om 22 45 13

and dont point to any moment in time tomorrow. The attributes are there, so we could create manual template sensors. Which ofc would be silly if the integration could provide them for us in a whim.

https://github.com/JaccoR/hass-entso-e/issues/28#issuecomment-1285066074 was commented before, but it simply does not hold, nor help to decide in these matters.

other example where we use the 'tomorrow' data:

Scherm­afbeelding 2023-03-28 om 22 49 06

on the left todays sun production, to the right, the forecast for tomorrow. Combine that with Entsoe tomorrow sensors, and we could have a system...

hope you would reconsider, thanks