home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Lovelace-ui: Entities toggle switch with entities having options #129

Closed ghost closed 6 years ago

ghost commented 6 years ago

@Kuba15 commented on Jul 22, 2018, 10:04 PM UTC:

Home Assistant release with the issue: 0.74 + lovelace UI

Last working Home Assistant release (if known): /

Operating environment (Hass.io/Docker/Windows/etc.): Docker

Component/platform: https://www.home-assistant.io/lovelace/entities/

Description of problem: With the configuration below, I have a global switch on the "entities" panel. But the group on/off switch only applies to the entities defined with the entity ID directly, in this case:

If I write the same entity in the "option" way, the global toggle button disapear from the panel:

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

      - type: entities
        # Title of the entities card
        title: Bureau
        show_header_toggle: true
        # The entities here will be shown in the same order as specified.
        # Each entry is an entity ID or a map with extra options.
        entities:
          - switch.hank_hkzwso05_smart_plug_switch
          - entity: switch.aeotec_zw075_smart_switch_gen5_switch
            name: Halogen
          - entity: sensor.samsung_printer_toner_black

This issue was moved by awarecan from home-assistant/home-assistant#15623.