We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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"'
- 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", ""]]"'
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
The text was updated successfully, but these errors were encountered:
What is this?
It is not described in Docs as smth supported. As well as this:
entity_id: sensor.anniversary*
You are definitely trying to use a code from some other custom card like auto-entities to demonstrate your issue.
auto-entities
Anyway, the template itself has issues:
{entity}
Sorry, something went wrong.
yes you are right, the rest is from auto_entities and its working so far.
I think the problem is as you mentioned, that {entity} cannot be used several times.
The closing Brackets are in the second row because of wordwrap :-) So far it is working
Maybe this can be fixed in future ?
this can be fixed in future ?
What exactly do you mean?
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: