custom-cards / bignumber-card

Apache License 2.0
122 stars 23 forks source link

[FR] Unknown Handling #1

Closed Norien closed 4 years ago

Norien commented 5 years ago

If roomba goes offline the style of my card is broken as the value will no longer fit.

If we could add a text value to handle errors this would help!

              - type: custom:bignumber-card
                entity: sensor.battery_roomba
                scale: 12px
                from: left
                min: 0
                max: 100
                severity:
                - value: 30
                  style: 'var(--label-badge-red)'
                - value: 70
                  style: 'var(--label-badge-yellow)'
                - value: 100
                  style: 'var(--label-badge-green)'
                - value: 'Unknown'
                  style: 'var(--label-badge-red)'

Capture

~ Thanks for all you do!

iantrich commented 4 years ago

recommend using a template sensor as this card is not really maintained anymore

Norien commented 4 years ago

Thanks!