Skip to content

Text color of time didn't update on status change Bug #2461

@bb27k

Description

@bb27k

TFT Version

No response

Firmware Version

No response

Blueprint Version

v4.3.12

Panel Model

US

What is the bug?

Hello,

I use this code for changing the color of time on the home screen

time_label_color: |- {% if is_state("sensor.rte_tempo_couleur_actuelle", "Bleu") -%} [0, 0, 255] {%- elif is_state("sensor.rte_tempo_couleur_actuelle", "Blanc") -%} [255, 255, 255] {%- else -%} [255, 0, 0] {%- endif %}

This code works properly but only when i save the blueprint, if the entity state change, the time_label_color doesn't update automaticly.

I use the same code for home_value01_icon_color and it works as expected.

home_value01_icon_color: |- {% if is_state("sensor.rte_tempo_couleur_actuelle", "Bleu") -%} [0, 0, 255] {%- elif is_state("sensor.rte_tempo_couleur_actuelle", "Blanc") -%} [255, 255, 255] {%- else -%} [255, 0, 0] {%- endif %}

Steps to Reproduce

No response

Your Panel's YAML

ESPHome Logs

No response

Home Assistant Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIdentifies an issue where the system is not functioning as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions