Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105534

Help with config-template-card need

$
0
0

Hi, I took this example from a working config, and it gives me an error, but I can’t understand why. Maybe someone will explain where the error is?

I suspect that the error lies in

            - type: 'custom:config-template-card'
              card:

lovelace:

      - id: hassio_status
        type: custom:config-template-card
        variables:
          - states['sensor.current_version'].state
          - states['sensor.disk_use_total'].state
          - states['sensor.disk_use_home'].state
        entities:
          - sensor.current_version
          - sensor.disk_free_home
          - sensor.disk_use_home
        card:
          type: 'custom:hui-entities-card'
          show_header_toggle: off
          entities:
            - type: section
              label: "${ 'NUC --- Debian Buster 10.1 --- HA ' + vars[0] }"
            - type: 'custom:config-template-card'
              card:
                type: vertical-stack
                cards:
                  - type: horizontal-stack
                    cards:
                      - type: picture
                        image: /local/images/devices/nuc_5.png
                      - type: 'custom:button-card'
                        layout: icon_name_state2nd
                        show_icon: true
                        show_state: true
                        entity: sensor.nuc_uptime
                        name: Uptime
                        icon: 'mdi:clock-outline'
                  - type: 'custom:bar-card'
                    title_position: inside
                    show_icon: true
                    entity: sensor.disk_use_percent_home
                    title: "${ 'Disk (' + vars[2] + 'Gb/' + vars[1] + 'Gb)' }"

Error:

No entities defined
type: 'custom:config-template-card'
card:
  type: vertical-stack
  cards:
    - type: horizontal-stack
      cards:
        - type: picture
          image: /local/images/devices/nuc_5.png
        - type: 'custom:button-card'
          layout: icon_name_state2nd
          show_icon: true
          show_state: true
          entity: sensor.nuc_uptime
          name: Uptime
          icon: 'mdi:clock-outline'
    - type: 'custom:bar-card'
      title_position: inside
      show_icon: true
      entity: sensor.disk_use_percent_home
      title: Disk (10.6Gb/19.2Gb)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105534

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>