Skip to content
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

Suggestion: color for ranges #71

Open
antonio1475 opened this issue Oct 4, 2024 · 2 comments
Open

Suggestion: color for ranges #71

antonio1475 opened this issue Oct 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@antonio1475
Copy link

Ability to customize ranges or thresholds for prices, with color.

For example, the background:
image

Alternative: the graph line is colored instead:
image

Note: images badly done with Photopea, for illustrative purposes only.

Thanks 😄

@danimart1991 danimart1991 added the enhancement New feature or request label Oct 4, 2024
@danimart1991
Copy link
Owner

Good idea, but I see some limitations here.

The prices are so variant to stablish a common threshold in distinct days. How to configure it? 🤔

@antonio1475
Copy link
Author

In my personal case: I'm interested in fixed ranges because for example periods below 0.10€ are a good time to do certain power consuming things like dishwasher, laundry, air conditioning... And if it's above 0.20€ it's best to turn on the heater instead of the AC heat.

Of course you already see this on the graph, colors are just to make it visually easier/faster 😅

Another way is to make it relative to the max & min of the day...? 🤔 but that wouldn't really solve my use-case (eg if the day min is 0.12€ it would be green, but that doesn't mean that it's a great day for laundry.

Maybe supporting templating in the configuration solves this: leave it up to the user to figure out the right value or formula. All the needed information is in the sensor.pvpc attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants