Skip to content

Change the color of a sensor entity's value based on the value #7082

@timkoers

Description

@timkoers

The request

I think it is useful it the user can provide a mapping on which colors the value text should get, based on the actual value. So you can more easily see if a sensor's value is worrying or not.

afbeelding

afbeelding

afbeelding

The alternatives

I do not have an alternative, I think it could be made possible using ui mods or something but I don't feel like installing mods.

Additional information

I think it should be done here
https://github.com/home-assistant/frontend/blob/dev/src/panels/lovelace/cards/hui-entity-card.ts#L229

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions