Skip to content

Condition Template is not working #58

@Kilowatt-W

Description

@Kilowatt-W

Hello,

thank you for this cool custom addon :-)

When I try to use a Custom Template thats not working.

- entity_id: sensor.anniversary*
state: < 25
options:
type: custom:secondaryinfo-entity-row
secondary_info: '[[ if({entity}.attributes.years_at_anniversary != "undefined", {entity}.attributes.years_at_anniversary, ""]] Years"'

In my case I would like to get rid of Years too, but the template is not rendered because of errors

If template is working I would like to try the following 👍

- entity_id: sensor.anniversary*
state: < 25
options:
type: custom:secondaryinfo-entity-row
secondary_info: '[[ if({entity}.attributes.years_at_anniversary != "undefined", {entity}.attributes.years_at_anniversary && "Years", ""]]"'

It would be nice to be able to add some text to a entitiys attribute.

Greetings

Kilowatt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions