Compare commits
4 Commits
b6d0964d4c
...
b3fd15789a
Author | SHA1 | Date | |
---|---|---|---|
b3fd15789a | |||
8d88430577 | |||
efd40f2a51 | |||
5eb9c52207 |
@ -8,7 +8,11 @@ object CheckCommand "home_assistant_state" {
|
||||
"--url" = {
|
||||
value = "$home_assistant_state_url$"
|
||||
description = "URL for Home Assistant"
|
||||
}
|
||||
}
|
||||
"--device-class" = {
|
||||
value = "$home_assistant_state_device_class$"
|
||||
description = "Device class of entities to monitor"
|
||||
}
|
||||
"--warning" = {
|
||||
value = "$home_assistant_state_warning$"
|
||||
description = "Return warning if battery percentage is outside RANGE"
|
||||
@ -17,5 +21,21 @@ object CheckCommand "home_assistant_state" {
|
||||
value = "$home_assistant_state_critical$"
|
||||
description = "Return critical if battery percentage is outside RANGE"
|
||||
}
|
||||
"--min" = {
|
||||
value = "$home_assistant_state_min$"
|
||||
description = "Min for performance data"
|
||||
}
|
||||
"--max" = {
|
||||
value = "$home_assistant_state_max$"
|
||||
description = "Max for performance data"
|
||||
}
|
||||
"--attribute" = {
|
||||
value = "$home_assistant_state_attribute$"
|
||||
description = "Check attribute instead of value"
|
||||
}
|
||||
"--filter" = {
|
||||
value = "$home_assistant_state_filter$"
|
||||
description = "Filter by 'attribute=value' (can be an array)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ def main():
|
||||
"--device-class",
|
||||
type=str,
|
||||
required=True,
|
||||
help="A device class",
|
||||
help="Device class of entities to monitor",
|
||||
)
|
||||
argp.add_argument(
|
||||
"-w",
|
||||
|
Loading…
Reference in New Issue
Block a user