Closed ildar170975 closed 4 months ago
@thomasloven I tried replacing light.
in the js with binary_sensor.
and that seems to have fixed it on my instance. Since no entity_id is specified, it uses the defaults in there that set the type to light which I guess as of 2022.12 now has some special styles for rgb lighting. I put up #96 that I think should fix this.
@alexives , did you try to manipulate state? I tried to have state: on/off/true/false and unfortunately icon always stays with default color (it should have active when on/true)
Always yellow now. Before last update, it works ok: as 'lime' when 'home' and grey when 'not home'...
color: >- {% if is_state('device_tracker.nox', 'home')%} lime {% else %} dimgrey {% endif %}
Hopefully there will be a solution for the change they made
@alexives , did you try to manipulate state? I tried to have state: on/off/true/false and unfortunately icon always stays with default color (it should have active when on/true)
Ahh, you're right @michalolborski, I specify the secret color option, so the state issue isn't there for me. Looking at the css, it looks like it's not applying the active style to the item anymore.
Consider this example:
There is no entity specified. And yet the icon's color is set like for a "light" domain:
![изображение](https://user-images.githubusercontent.com/71872483/206367025-469d22e3-b169-4231-b5f7-41ad6f8005d7.png)