Lovelace: Button card

Just downloaded the “beta” 1.10 and all is working fine

42

          - type: "custom:button-card"
            color_type: icon
            entity: sensor.qnapb3c_cpu_usage
            icon: mdi:chip
            size: 30px
            name_template: >
              return 'CPU: ' + entity.state + '%';
            show_label: true
            show_name: true
            action: none
            styles:
              icon:
                - height: 18px
              card:
                - height: 80px
              label:
                - font-size: 12px
            show_last_changed: true

Thanks again!

1 Like