Skip to content

Reused filters #559

@FrnchFrgg

Description

@FrnchFrgg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions