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

state_color not working #103

Closed
SupremeSports opened this issue May 23, 2020 · 2 comments
Closed

state_color not working #103

SupremeSports opened this issue May 23, 2020 · 2 comments

Comments

@SupremeSports
Copy link

SupremeSports commented May 23, 2020

A device (switch, sensor, etc.), that has some custom icon_color, works perfectly out of the fold card, but inside the fold card, no more colors
Untitled

The first Pool Pump is the normal switch with colors set up. The second one is a binary sensor with colors set up. then the third one is the same switch as the top one and has colors set up

    - type: entities
      title: Pool pump and heater
      show_header_toggle: false
      state_color: true
      entities:
        - switch.pool_pump
        - type: custom:fold-entity-row
          head: binary_sensor.poolpump_status
          entities:
          - switch.pool_pump
          - input_select.poolpump_mode
          - type: custom:fold-entity-row
            head:
              type: section
              label: Automations
            entities:
              - automation.pool_pump_control
@SupremeSports
Copy link
Author

If you look at the device, you see that color is correct, and it was working in 0.109.x

Untitled

@SupremeSports
Copy link
Author

SupremeSports commented May 27, 2020

Ok, it appears to be a much more complex issue that has NOTHING to do with fold-entity card. It has to do with HA icon managing. So, in the example I put above, it was a switch and switches were still working and that's why it was still working outside the fold-entity.Once inside the fold-entity, it's using custom-UI and this was broken.

On the other hand, sensors, vacuum, locks, binary-sensors, etc. were not working either. But since almost all my stuff is under fold-entity, I wrongfully assumed it was a card issue. after pulling some sensors out of the card, I realized it was much more complex.

After many hours working on this, I've been able to get a fix/workaround to get it to work with Thomas' suggestion in 6028 and solution is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant