Closed o0shojo0o closed 4 years ago
Hi, it is possible to process the state of the passed entity in the if condidtion?
Here for example:
# lovelace_gen card: picture-elements noPadding: true cardOptions: image: /local/images/blank_placeholder.png elements: {% if states(entity) < 9 %} - type: state-icon entity: {{entity}} style: top: 10% left: 10% - type: state-label entity: {{entity}} style: top: 50% left: 50% font-size: 60px font-weight: bold {% else %} - type: state-icon entity: {{entity}} style: top: 32% left: 32% transform: scale(3,3) - type: state-label entity: {{entity}} style: top: 10% left: 10% {% endif %}
No. Lovelace_gen generates a static configuration that optimally never changes again, so that would be confusing.
Thanks for the explanation!
Hi, it is possible to process the state of the passed entity in the if condidtion?
Here for example: