Hey, thanks for the feedback. My answers will be in the same order as your questions:
- I wasn’t able to figure out a good way of doing it, using HA sensors. Not sure how exactly to present it. Having a text variable isn’t going to do it. It should be something consumable by automations. Any idea on how the data would be presented?
- The value is not shifted - the way they represent it on the website is not intuitive. They start the day from first hour, and finish it with 24th. Meaning that line 8 in their table means 7:00 to 7:59, and 24 is 23:00 to 23:59.
- That’s same as #1 i can retrieve the values, but no idea what kind of sensor to use. I’d be able to return a true value for cheapest hour of the day so you could use it in automations like if cheapest hour is true - start dishwasher, problem is that various programs are longer than 1 hour and you risk to start charging your car during cheapest, but then continue charging it during the most expensive 4-5 hours… I’m thinking about passing time periods to the automation - like charge periods. 1 hour, 3 hours, 7 hours - and the integration would return if the condition is met (from now next N hours are going to be the cheapest). But that has another problem - you may have different tariff that is not accounted for - so I need to introduce factoring in the cost of transport into the calculation. Making it slightly more complex. It’s not impossible to do, just not trivial and I didn’t have much time to work on it. Have it on my to-do list though. But most importantly, the counters used by PRE, and other companies in CR do not send realtime data. The company selling you energy has no idea if you consumed the electricity at 5pm or 7 pm at night. They only know how much was total consumption in a given period during specific tarif (HD0). The energy companies are using some kind of models to estimate when an usual household uses how much energy based on some statistical data, so the information provided by this integration is mostly informational - so you’d have an idea of how much your household consumes.