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

Input_boolean icon based on state

$
0
0

@Dario_Lemes_Gonzalez wrote:

Hello,

I have input boolean customization which is not loading on Lovelance UI. I’ve tried everything without any luck. Any assistance will be highly appreciated

configuration.yaml

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
input_boolean: !include input_boolean.yaml
#switch: !include switch.yaml
homeassistant:
  customize: !include customize.yaml
  customize_glob:
    "*.*":
      custom_ui_state_card: custom-ui
customizer:
  custom_ui: local

customize.yaml

input_boolean.garbage_out:
  icon: mdi:marker-check
  templates:
    icon: if (state == ‘off’) return ‘mdi:bell’; else return ‘mdi:bell-off’;
    icon_color: if (state === ‘off’) return ‘rgb(251, 210, 41)’; else return ‘rgb(54,
      95, 140)’;



Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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