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

Icon - entity state #25

Closed
majdzik84 opened this issue Jan 11, 2020 · 6 comments
Closed

Icon - entity state #25

majdzik84 opened this issue Jan 11, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@majdzik84
Copy link

Is it possible to make the icon change (or change the color) as the entity state changes? (e.g. windows open / close)

@benct benct added the enhancement New feature or request label Jan 11, 2020
@benct
Copy link
Owner

benct commented Jan 11, 2020

It's most likely possible! I'll have a look at how to implement that soon.

@ZioTitanok
Copy link

ZioTitanok commented Feb 11, 2020

Is it possible to make the icon change as one of the entity state change (those listed in a row))?
Take the code below as example: can the icon change if switch1 or/and switch2 change state?

  - entity: switch.livingroom_tv
    type: custom:multiple-entity-row
    name: Multiple toggles
    name_state: main
    toggle: true
    primary:
      entity: switch.livingroom_light
      name: toggle1
      toggle: true
    secondary:
      entity: switch.livingroom_light_2
      name: toggle2
      toggle: true`

@jacekpaszkowski
Copy link

Or maybe it is just possible to display icon which set for entity object? For some entities i use icon_tamplate.

@benct benct closed this as completed in d87310a Feb 14, 2020
@jacekpaszkowski
Copy link

@benct so in v 3.0.0 it is possible to display entity icon instead of state?

@benct
Copy link
Owner

benct commented Feb 14, 2020

It's been possible to display icons for additional entities since v2.0.0. Version 3 made the icons change color based on entity state, as referenced by the topic of this issue.

The main entity object supports icon in the same way as other entity rows, and displays it to the left of the name. If you want the same icon instead of the state value, you could use show_state: false and add en additional entity object with icon: true?

@jacekpaszkowski
Copy link

Thanks, now i was able to get it work :)

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

4 participants