You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that the money view currently doesn't support having variable tariffs based on time of use, but would like to propose a design solution for allowing it to do so.
I don't have that much programming experience, but here's how I'd envisage it in my head. The logic should check if energy_consumption_rate or energy_production_rate are List/Dict types. If they are, it should look for the rate and entity variables under each, then run calculations based off those.
Generating these sensors with templates shouldn't be particularly difficult, and can easily have a combined sensor too. Correct me if I'm wrong, but I believe this is likely the most elegant solution for this problem.
The text was updated successfully, but these errors were encountered:
Good thinking! Since both the money view and the energy view are closely related, this also has to be done for the energy view. You could say that users currently supply their sensor.energy_consumption_total and they should supply the parts (shoulder, peak and offpeak sensor) which this total is made of.
I understand that the money view currently doesn't support having variable tariffs based on time of use, but would like to propose a design solution for allowing it to do so.
I don't have that much programming experience, but here's how I'd envisage it in my head. The logic should check if
energy_consumption_rate
orenergy_production_rate
are List/Dict types. If they are, it should look for therate
andentity
variables under each, then run calculations based off those.An example of the adapted configuration would be:
So this would equate to:
consumption_shoulder
sensorconsumption_peak
sensorconsumption_offpeak
sensorGenerating these sensors with templates shouldn't be particularly difficult, and can easily have a combined sensor too. Correct me if I'm wrong, but I believe this is likely the most elegant solution for this problem.
The text was updated successfully, but these errors were encountered: