dylandoamaral / uptime-card

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

OK / KO with numeric status? #144

Open qJake opened 1 year ago

qJake commented 1 year ago

I'm trying to use this card with the Glances integration, which only provides numeric statuses. I would prefer not to create a sensor template for each server that I'm trying to monitor.

Is it possible for the ok / ko values to monitor a numeric value?

It would be awesome if I could do something like this:

entity: sensor.my_server_process_count
ok: 0
ok_num_compare: 'greater'

Or use a template:

entity: sensor.my_server_process_count
ok: [[[ return parseInt(variables.current) > 0; ]]]

Is this possible today? If not, could it be considered for a future release?

dylandoamaral commented 1 year ago

It is not possible today without using template sensors. It may be added in a future release, I will think about it (if I do, it will be using template).