Cannot concat string with entity state
See original GitHub issueHi,
I am trying to display either an entity state following by a string or nothing depending on another entity state. I am using this template :
[[ if(binary_sensor.monitoring_ha_updater.state == "on", sensor.monitoring_potential_breaking_changes.state "changes" ,"") ]]
On lovelace side it displays “undefined” as a result instead of “0 changes”. I tried using +,++, . to concat them without success.
Thanks for helping.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I query against a concatenated field?
Below is some example code where I am searching for searchString as a concatenation of firstname and lastname database strings.
Read more >Translate string.Join and string.Concat · Issue #2981
It's currently making me denormalize my database design because I can't concat strings inside group by.
Read more >String.Concat Method (System)
Concatenates the string representations of four specified objects and any objects specified in an optional variable length parameter list.
Read more >Creating dynamic entities names, getting string instead of ...
The siteId is delivered in the payload and can be etxracted (trigger.payload_json.siteId). Then I want to dynamicaly create the object. Problem
Read more >Common Hibernate Exceptions
expectMessage("Unknown entity: java.lang.String"); Session session = sessionFactory.getCurrentSession(); NativeQuery<String> query = session ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As the question was regarding the support of templating which you offer with your lib and not the plugin, I thought you were the best person to help me.
In the meantime, I used the following as workarround :
The better alternative is to use jinja2 templating, which is also supported by card-tools.