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

Request, Today and yesterday #92

Open
Dutchy-79 opened this issue Feb 3, 2023 · 6 comments
Open

Request, Today and yesterday #92

Dutchy-79 opened this issue Feb 3, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@Dutchy-79
Copy link

Hi,

I've been playing with the card and really like it.

Now I'd like to see two cards at the same time today and tomorrow (or any other date)

Is it possible that there will be a option for a date helper input.

So one card with energy_date_selection and the second card with energy_date_helper

@MindFreeze
Copy link
Owner

HA doesn't support that. The date selection card is global.
In theory I could add an offset option but it would not be worth the work IMO. Better to wait until HA's supports multiple dates or some method of direct communication between cards. Don't know of any plans but it seems logical that they would do it.

@MindFreeze MindFreeze added the enhancement New feature or request label Feb 20, 2023
@Dutchy-79
Copy link
Author

I thought HA already supported Today and yesterday or this month and last month. Therefore I thought I would be possible to get yesterday.

I just noticed that I said tomorrow in my first post but this should be yesterday of course because no one knows what I'm going to use tomorrow.

@MindFreeze
Copy link
Owner

It supports only 1 period at a time. So if you add 2 date selection widgets and change one of them, the other will change as well. So both cards will show the same thing.

More over, the sankey card doesn't know what kind of period is selected. It only gets a start and end timestamps. So determining the next/previous period in this card automatically is non trivial as well.

@MindFreeze
Copy link
Owner

@Dutchy-79 HA now has a "Compare data" button that allows you to compare to the previous period.
How do you envision this though? 2 separate sankey charts for today and yesterday? I don't think it makes sense to show everything in 1 chart.
Having 2 charts would mean that after you click the "compare data" button, a second chart would appear below the current one and affect the overall layout. The other option is to reduce the height of both charts to half so they take up the same space

@AleXSR700
Copy link

So should the Sankey card in theory respond to the date picker of the Energy dashboard?

I tried adding one to my dashboard that contains the Sankey card but it does not respond to changes of
type: energy-date-selection

@MindFreeze
Copy link
Owner

So should the Sankey card in theory respond to the date picker of the Energy dashboard?

I tried adding one to my dashboard that contains the Sankey card but it does not respond to changes of type: energy-date-selection

You have to set energy_date_selection: true

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