Skip to content

FR allow entity input_select on min_state #256

@Mariusthvdb

Description

@Mariusthvdb

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

we need to use config-template card to be able to have dynamic redrawing of the chart for different min_state values

Describe the solution you'd like
A clear and concise description of what you want to happen.

allow the min_state to be also configured as an entity eg: input_select.sankey_min_state
selecting an option of tha input_select (could also be an input_number and even allow live user input)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

now using config-template-card

type: custom:config-template-card
entities:
  - input_select.sankey_min_state
variables:
  min_state: states['input_select.sankey_min_state'].state
card:

and use that variable in the charts config:

min_state: ${min_state}

the FR would allow for:

min_state: input_select.sankey_min_state

Additional context
Add any other context or screenshots about the feature request here.

config-template-card is a resource hog, and it would be much better to be able to set the option within the card config.

compare the on_state color:

          color_on_state: true
          color_limit: 0
          color_above: var(--error-color)
          color_below: var(--success-color)

we can use to make it more dynamic. Something like that for min_state would be great,
hope you can consider,
thanks

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