twrecked/hass-aarlo

percentuage red, yello and green.

Opened this issue · 1 comments

Hi, i'm trying to change color of percentuage of camera battery can you see that's yellow.

image

this is the code

  • type: state-label
    entity: sensor.aarlo_battery_level_sopra_cucina
    style:
    background-color: rgba(61, 116, 254, 0.0)
    border-radius: 0%
    color: yellow
    font-size: 5px
    font-weight: bold
    left: 39%
    top: 10%
    tap_action: none

I would like that will be GREEN when percentuage is over 70. YELLO since 30 to 69 and RED when it's under 29.

Someone can help me please?

This isn't an Aarlo specific issue so you are probably better asking it on the Home Assistant Community web site.