-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support for two different tariffs (Feed-in tariff and purchase tariff) #8
Comments
Interesting request. Let me check. But I think it is not that easy because you need to know upfront when to switch to the feed-in tariff. |
My gross Feed in Tarif is just EPEX Spot AT * 1.2 (20 % VAT). You are right, it would be necessary to "predict" when to switch between tariffs. The underlying logic is simple: Whenever my PV installations produces more energy than I consume in my house, the feed in tariff is used. Whenever I consume more than I produce, the Purchase tarif is used. For the prediction how much energy I will produce in a certain hour in the future, we could probably just use the following sensors provided by Forecast Solar : For the prediction how much energy I will consume I would just simply add a field where the user can enter a value. For example I know that the base load of my house is about 150W (=0,15kWh each hour). What do you think, is this doable? |
A solution that includes solar forecast and (if available) SOC of a battery is on my wishlist. But this is a major enhancement and will take time. |
@mampfes |
Hi,
so far your sensor add-on really works great!
Feature request:
I think many people that use your integration will have a pv panel installation. For example I have a different feed-in tariff and purchase tariff and created two helpers for it:
(both in ct/kWh)
Now I tried to solve that with a helper that combines both tariffs, that changes if I currently have PV surplus electricity:
sensor.my_gross_combined_price =
{% if states('sensor.mySmartmeter_total_power_togrid') | float > 5 %}
{{ states('sensor.my_gross_feed_in_tariff') }}
{% else %}
{{ states('sensor.my_gross_purchase_tariff') }}
{% endif %}
So the value of the sensor.my_gross_combined_price helper switches from sensor.my_gross_purchase_tariff to sensor.my_gross_feed_in_tarif if I am currently feeding in more than 5 Watts into the grid.
This basically works but unfortunately I can not use my sensor.my_gross_combined_price as a Price Input Sensor for your ha_epex_spot_sensor. The reason is, I guess, that my combined price sensor only contains data about the present and no attributes for the future.
So I guess we need a different approach here. My proposal would be, that you add the following fields to the configuration of your EPEX Spot Binary Sensor:
Could you implement this?
Or is there a more elegant way to achieve my goal?
thank you very much!
The text was updated successfully, but these errors were encountered: