thomasloven / lovelace-template-entity-row

🔹 Display whatever you want in an entities card row.
MIT License
210 stars 16 forks source link

0.107.0 Doesn't display correctly #20

Closed i00 closed 4 years ago

i00 commented 4 years ago

State appears under the rest of the left content in 0.107.0:

image

type: entities
title: My Title
entities:
  - type: custom:template-entity-row
    icon: mdi:lamp
    name: "Name"
    state: "State"
    secondary: "Secondary"
thomasloven commented 4 years ago

What does your browser console say about "TEMPLATE-ENTITY-ROW"?

i00 commented 4 years ago

Sorry forgot to mention HA fixed this with 0.107.1

nuttytree commented 4 years ago

@thomasloven I am seeing this issue on HA 0.110.4 (also saw it on 0.109.x and 0.110.3) Browser console:

BROWSER_MOD 1.0.2 IS INSTALLED    DeviceID: c88dd5e1-14cdec8b
CARD-TOOLS IS INSTALLEDDeviceID: c88dd5e1-14cdec8b
CUSTOM-HEADER    Version 1.5.0
CALENDAR-CARD     Version 3.108.6
RGB Light Card  v1.6.0
LIGHT-ENTITY-CARD     Version 3.2.2
LAYOUT-CARD 1.2.1 IS INSTALLED
SLIDER-ENTITY-ROW 1.0.0 IS INSTALLED
TEMPLATE-ENTITY-ROW 1.0.1 IS INSTALLED
simple-thermostat: 0.34.2
SWPIE-CARD   Version 3.2.1

Lovelace Config:

  - title: Test
    panel: false
    path: test
    cards:
      - title: Test
        type: entities
        entities:
          - entity: binary_sensor.patio_lights_status
          - type: 'custom:template-entity-row'
            entity: sensor.day_night
          - type: 'custom:template-entity-row'
            entity: binary_sensor.patio_lights_status
            name: >
              {{ state_attr(config.entity, 'friendly_name') | replace(' Status', '') }}
            active: >
              {{ is_state(config.entity, 'on') }}
            state: >
              {% if is_state(config.entity, 'on') %}Connected{% else %}Disconnected{% endif %}
            secondary: >
              {% set wifi = config.entity | replace('binary_sensor.', 'sensor.') | replace('_status', '_wifi_signal') %} {% set signal = states(wifi) %}
              {% if wifi != 'test' %}{{ signal }} dB{% endif %}

image