custom-cards / entity-attributes-card

Entity Attributes
Apache License 2.0
67 stars 11 forks source link

Cannot read property 'setConfig' of undefined #5

Open AngelofromTurin opened 4 years ago

AngelofromTurin commented 4 years ago

hi, i tried to use thise card, but i have thise messagge in the ui editor.... i tried with type js and module in the main config lovelace... what can i do ?

aeckard87 commented 4 years ago

Hey @AngelofromTurin, just found this gem myself! I realized after playing around that you have to put the attribute name next to the entity in the key field:

Not sure if this is where your issue was, but hope it helps someone :)

_key: binary_sensor.hallway_sensor_motion.battery_level_

  - type: custom:entity-attributes-card
    title: Attributes
    heading_name: Entity
    heading_state: Battery Level
    filter:
      include:
        - key: binary_sensor.hallway_sensor_motion.battery_level
          name: Hallway Sensor

Annotation 2020-01-02 012500