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

"bug": latest update screwed - state_color: true - #45

Closed
mbt45 opened this issue Feb 20, 2020 · 3 comments
Closed

"bug": latest update screwed - state_color: true - #45

mbt45 opened this issue Feb 20, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@mbt45
Copy link

mbt45 commented Feb 20, 2020

latest update linked "state_color: true" of the first entity, to ALL the icons that follows at the same time, whether they are active or not.

@mbt45
Copy link
Author

mbt45 commented Feb 20, 2020

`entities:

  • entity: cover.tous_volets
    name: Tous Volets
    state_color: true
    entities:
    • icon: 'mdi:arrow-down'
      service: cover.close_cover
      service_data:
      entity_id: cover.tous_volets
    • icon: 'mdi:stop'
      service: cover.stop_cover
      service_data:
      entity_id: cover.tous_volets
    • icon: 'mdi:arrow-up'
      service: cover.open_cover
      service_data:
      entity_id: cover.tous_volets`

@mbt45 mbt45 changed the title latest update scewed state_color: true latest update scewed state_color: true "bug" Feb 20, 2020
@mbt45 mbt45 changed the title latest update scewed state_color: true "bug" "bug": latest update screwed - state_color: true - Feb 20, 2020
@benct
Copy link
Owner

benct commented Feb 25, 2020

Well, not quite, but I understand this can be confusing.. You have one entity here (cover.tous_volets), which also acts as the state object for all the icons because they don't specify entity IDs themselves. So when the cover entity is active, the other icons are active too.

I should probably add a state_color option for each icon instead.. Meanwhile, I think you can "fix" this by adding 'entity: sensor.some_non_active_entity' to each icon config.

@benct benct added the bug Something isn't working label Feb 25, 2020
@mbt45
Copy link
Author

mbt45 commented Feb 28, 2020

I tried your suggestion. unfortunately it render the icon button unusable since it will now just popup the status of the 'sensor.some_non_active_entity'.

@benct benct closed this as completed in bcd56ee Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants