fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
104 stars 17 forks source link

Possible to add extra sensor "CheapestTime" #74

Closed dennisbrouwer91 closed 9 months ago

dennisbrouwer91 commented 1 year ago

Hi,

Would it be possible to add a new sensor to Home-Assistant with the time of day where the prices are the cheapest? Maybe zonneplan_cheapeast_today: "14:00" ?

Dennis

PeterKawa commented 1 year ago

You mean this sensor I guess? sensor.zonneplan_energie_lowest_hour_this_day

_"lowest" is a bit odd as description, imho it should be lowestprice_hour_this_day or cheapest_hour_thisday

In the screenshot it says 13, so that day the cheapest time was @ 1300h / 1 PM: Screenshot from 2023-08-24 20-32-21

dennisbrouwer91 commented 1 year ago

I suddenly understand why that is not working on my side, my contract at Zonneplan starts coming Monday, the sensor is now unavailable. I will check on Monday. Also : It might be handy to change the sensor from an integer to an actual time?

fsaris commented 9 months ago

if you need a different representation of the value there are template options in HA to create this.

Closing this because value is present as mentioned by @PeterKawa