Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

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

$
0
0

@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 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>