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

Lovelace card icons (on/off) not changing

$
0
0

@ninjadog wrote:

So I am using yaml based UI and have the following in my <config>/ui-lovelace.yaml

resources:
  - url: /local/simple-thermostat.js?v=1
    type: module
title: KEATS
views:
    cards:
      - type: vertical-stack
        title: HW & CH
        cards:
          - type: entities
            entities:
              - entity: switch.danfoss_rxz3_rf_relay_switching_unit_switch
                name: Hot water
                icon: mdi:water
                state-color: true
              - entity: switch.danfoss_rxz3_rf_relay_switching_unit_switch_2
                name: Central heating
                icon: mdi:radiator
                state-color: true

which correctly gives me:
Capture

But when I slide the on/off button, the icons do not change.
I expect , for water , to use the mdi:water icon and change the icon for on/off states using
mdi:water-on and mdi:water-off ??

What have I done wrong please - obviously probably not understanding icon and entity relationships??

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95481

Trending Articles



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