jmcollin78 / solar_optimizer

The Solar Optimizer integration for Home Assistant starts and stops your equipments depending on the Solar net production
MIT License
53 stars 10 forks source link

Add dynamic prices #3

Closed gerione closed 7 months ago

gerione commented 7 months ago

I am getting every day the price for my power for the next 24h. This means a constant input for the price is not possible.

Would you update an input number evey hour or do you think that a direct integration would be possible.

I am using https://github.com/mampfes/ha_epex_spot/ for the prices.

jmcollin78 commented 7 months ago

Prices comes from input_number and are read at each cycle. So it is already available. Do I miss something?

gerione commented 7 months ago

Understood. I thought that you do planning for the future. Then you would need the future prices. Thx for the clarification.

Cyrelion commented 7 months ago

Hi @jmcollin78,

input_number is okay for static prices, I've a tibber integration that stores the actual value (per hour) in a sensor: sensor.electricity_price_street_name so would be great if I could use this directly. Or should I need to copy that value to a custom input_number helper?

Kind regards, Andree

jmcollin78 commented 7 months ago

If I open sensor entity type, people will configure with wrong sensor type. I prefer input_number for which I'm sure to have a number.

But this can be challenged and tested with a PR.