Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OK / KO with numeric status? #144

Open
qJake opened this issue Jan 2, 2023 · 1 comment
Open

OK / KO with numeric status? #144

qJake opened this issue Jan 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@qJake
Copy link

qJake commented Jan 2, 2023

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 dylandoamaral added the enhancement New feature or request label Jan 4, 2023
@dylandoamaral
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants