Skip to content

Replace Toggle with Icon for Main Entity #359

Open
@oneseventhree

Description

@oneseventhree

Hi,

I currenlty have this:

Image

but I want to change the toggle for 'Pendent' to a lamp icon but it does not change the toggle to the icon. Is this possible?

Full code

entity: light.bedroom_pendant
type: custom:multiple-entity-row
name: Side Lights
state_header: Pendant
icon: mdi:lamp
toggle: true
entities:
  - entity: light.bedroom_lamp
    name: Lamp
    toggle: true
    icon: mdi:lightbulb
card_mod:
  style: |
    :host {
      --card-mod-icon-color:
         {% if is_state('light.bedroom_lamp','on') 
            or is_state('light.bedroom_pendant','on') %}
            #ffc107
         {% else %}
            #44739e
         {% endif %}
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions