-
Notifications
You must be signed in to change notification settings - Fork 1
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
Reset at the start of every hour not working + take export power into account #10
Comments
Thank you for the feedback, and sorry for the delayed response, I have been away on vacation. I don't have solar panels my self, so that was a scenario I did not consider when creating this component. But from your description, I am guessing that you have two different sensors, one for imported power, and one for exported power? In order for energytariff to work properly, it needs to know about the flow of energy, e.g. if energy is being consumed or returned to the grid. What you can do, is to create a template sensor in your configuration, something like this:
(I am assuming here that that Replace Let me know how that works out for you 🙂 |
Thank you for replying! One thing that you should take into consideration is the way the energy tariffs is implemented in Norway. Lets say that I want to stay under 5 kWh/h, then there is a possible scenario that my consumption one hour is for example like this: Import energy: 8 kWh This will give a resulting net import energy during that hour of 0 kWh, but my grid provider also will see that I imported 8 kWh, and use that number as one of the three "spikes" when calculating which tariff level to place me on. So, the "available power this hour sensor" must take this into account and probably only look at the import power portion of the energy in order to function as intended. |
I have problems with that sensor.available_power_this_hour does not update at the start of a new hour, and to me it seems to update at any random time, probably only when a change in import power is detected. This is a problem when I start charging my EV towards the end of an hour (and the sensor.available_power_this_hour state returns a large number). When a new hour starts the sensor.available_power_this_hour should update its calculations immediately.
As I have solar panels on my roof, i need the integration to take export power into account. As it is now sensor.available_power_this_hour only updates when my import power changes. On sunny days my import power can be 0 for several hours. This leads to the sensor.available_power_this_hour then is not updated before energy is imported from the grid. When the sensor then is stuck at a value, my automations relying on sensor.available_power_this_hour does work as intended.
The text was updated successfully, but these errors were encountered: