Skip to content

Reused filters #559

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

Open
FrnchFrgg opened this issue Apr 30, 2025 · 0 comments
Open

Reused filters #559

FrnchFrgg opened this issue Apr 30, 2025 · 0 comments

Comments

@FrnchFrgg
Copy link
Contributor

FrnchFrgg commented Apr 30, 2025

You could put all reused filters in an array once at the root, the extra ones inside the entity and then load them via filters: $ex [...get('reused_filters'), ...get('.extra_filters')] (note the dot on extra_filters, which makes it relative to that part of the yaml)

This does not seem to work. In fact, even using

type: custom:plotly-graph
entities:
  - entity: "sun.sun"
    filters: '$ex [ { "map_y": "0" } ]'
hours_to_show: 24
refresh_interval: 10

does not seem to work. The filters member seems correctly computed and passed to plotly itself (as any member of data would be), but it looks like it does not influence plotly-graph-card, in that the filters themselves are not evaluated.

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

No branches or pull requests

1 participant