custom-cards / light-entity-row

Entity row for lights with sliders for adjusting different values based on features
55 stars 13 forks source link

Custom element doesn't exist light-entity-row #2

Closed carlba closed 5 years ago

carlba commented 5 years ago

I have added the following section

      - type: entities
        title: Lights
        entities:
          - type: "custom:light-entity-row"
            entity: light.kitchen_table
            icon: mdi:lamp  # optional
            name: Lamp      # optional
          - type: "custom:light-entity-row"
            entity: light.kitchen_fan
            showColorPicker: true # shows color picker if supported
            showColorSliders: true # shows hue/saturation sliders if supported

And I get this

image

image

carlba commented 5 years ago

Stupid me forgot to add

resources:
  - url: /local/light-entity-row.js?v=0.2.4
    type: js

It would be nice if the documentation had a note about it though it is easy to miss :)

Knol010 commented 5 years ago

Where you have to add resources? In configuration.yaml?

I use hass.io

wlgrd commented 5 years ago

Add that to the top of your lovelace file