Quantcast
Viewing all articles
Browse latest Browse all 104793

Change icon or entity picture for input boolean based on state in a glance card

@nasgul wrote:

I have read numerous posts about this. Tested many codes suggestions but still not getting a definite answer. Can it be done?
In HA 0.106.1
The most common code I get is this but not giving the expected result

input_boolean.media_radio:
  icon_template: >-
      {% if is_state('input_boolean.media_radio', 'on') %} mdi:message-bulleted
      {% else %} mdi:message-bulleted-off
      {% endif %}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 104793

Trending Articles