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

Fill based on another entity? #1036

Open
fodi666 opened this issue Nov 29, 2023 · 6 comments
Open

Fill based on another entity? #1036

fodi666 opened this issue Nov 29, 2023 · 6 comments
Labels
More info needed More info is required to investigate or resolve this issue

Comments

@fodi666
Copy link

fodi666 commented Nov 29, 2023

Hi,
is it possible to specify that a line should be filled on parts when another entity has a certain value? I have my heating system's data hooked up with this card and I wold like to show when the heating is active. Currently I have a temperature entity which I display and I have a heating active binary entity that I'd like to use to control the fill (fill only when true, similar to the default display of a climate entity).
Thanks

@ildar170975
Copy link
Collaborator

Not possible currently.
You may prepare a DETAILED description of a desired functionality and propose a "Feature request".

Or find another ways.

@fodi666
Copy link
Author

fodi666 commented Nov 29, 2023

how much detail do you need?

@ildar170975
Copy link
Collaborator

How much do YOU need to write a working code?
Principles of making a good technical assignment is an off-topic here.
It should be a complete description for a person who will be able to implement this.

@Glideh
Copy link

Glideh commented Nov 30, 2023

That'd be great to have the same conditional fill under the temperature line as HA's default graph behavior with the thermostat
image
This one is quite ugly but I liked the idea

Maybe we could give the ability to configure a conditional fill property into the entity line like this:

type: custom:mini-graph-card
entities:
  - entity: climate.heater
    attribute: current_temperature
  - entity: climate.heater
    attribute: temperature
    fill:
      type: entity
      entity: climate.heater
      color_mapping:
        heat: red
        cool: blue

@fodi666
Copy link
Author

fodi666 commented Nov 30, 2023

That'd be great to have the same conditional fill under the temperature line as HA's default graph behavior with the thermostat image This one is quite ugly but I liked the idea

Maybe we could give the ability to configure a conditional fill property into the entity line like this:

type: custom:mini-graph-card
entities:
  - entity: climate.heater
    attribute: current_temperature
  - entity: climate.heater
    attribute: temperature
    fill:
      type: entity
      entity: climate.heater
      color_mapping:
        heat: red
        cool: blue

I could also imagine this as having a temperature sensor as the entity for the line and a binary sensor for the fill

type: custom:mini-graph-card
entities:
  - entity: sensor.temperature
    fill:
      type: entity
      entity: binary_sensor.heating

@Glideh
Copy link

Glideh commented Nov 30, 2023

Yes, would be considered as binary when no color mapping specified.
That would still be great to be able to specify the color though.

@ildar170975 ildar170975 added the More info needed More info is required to investigate or resolve this issue label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
More info needed More info is required to investigate or resolve this issue
Projects
None yet
Development

No branches or pull requests

3 participants