dylandoamaral / uptime-card

Minimalistic uptime card for Home Assistant Lovelace UI
266 stars 11 forks source link

Value for OK and KO #124

Closed vellanix closed 2 years ago

vellanix commented 2 years ago

I have a sensor that return two value: true and false. I need to assign the 'true' to ok, and 'false' to ko, but I'm not able to do that. I suppose that I cannot use true and false in the code...

There's any trick to use them? Maybe using "" ?

Thank you

dylandoamaral commented 2 years ago

I just tried and it works using "", but why you didn't try that solution before opening this issue ?

vellanix commented 2 years ago

Sorry,

i tried before writing but i was wrong because i tried "true" instead of "True" with the capital letter... Sorry again