[FR] Unknown Handling
Norien opened this issue · comments
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)'
~ Thanks for all you do!
recommend using a template sensor as this card is not really maintained anymore
Thanks!