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

Feature request: Option to show cheapest upcoming window #36

Open
sas413 opened this issue Nov 14, 2024 · 2 comments
Open

Feature request: Option to show cheapest upcoming window #36

sas413 opened this issue Nov 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@sas413
Copy link

sas413 commented Nov 14, 2024

Hello!

At the moment, the sensor only shows the cheapest window on this day. If the window is in the past, no window is displayed.
In many cases it would be nice, to have also displayed the cheapest upcoming window.
Use case: Cheapest window was in the night, I would to like to run the dishwasher on the day a second time. At the moment the sensor gives me no information.

Thank you in advance.

@LotharWoman
Copy link

LotharWoman commented Nov 17, 2024

Yes, two windows per day is a good option.

`{% set intervall_1=state_attr('sensor.xxxx', 'raw_today')[0:9] | sort(attribute='value') %}
{% set intervall_2=state_attr('sensor.xxxx', 'raw_today')[9:20] | sort(attribute='value') %}

    {{ (now() >= intervall_1[0].start and now() <= intervall_1[0].end)
    or (now() >= intervall_1[1].start and now() <= intervall_1[1].end)
    or (now() >= intervall_1[2].start and now() <= intervall_1[2].end)
    
    or (now() >= intervall_2[0].start and now() <= intervall_2[0].end)
    or (now() >= intervall_2[1].start and now() <= intervall_2[1].end)
    or (now() >= intervall_2[2].start and now() <= intervall_2[2].end)
    }}`

In your scenario it is sufficient to allow the time windows to be split? It certainly doesn't always work, but very often.

I think it would be very good if the time windows could also be displayed for the future hours/day and directly under an apex chart of the spot prices.

grafik

@suaveolent
Copy link
Collaborator

I'll have a look at it.

@suaveolent suaveolent added the enhancement New feature or request label Nov 25, 2024
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

3 participants