Compare commits
4 Commits
b3fd15789a
...
b6d0964d4c
Author | SHA1 | Date | |
---|---|---|---|
b6d0964d4c | |||
5538de57bd | |||
3ddb67f753 | |||
502bff1422 |
@ -8,11 +8,7 @@ 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"
|
||||
@ -21,21 +17,5 @@ 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="Device class of entities to monitor",
|
||||
help="A device class",
|
||||
)
|
||||
argp.add_argument(
|
||||
"-w",
|
||||
|
Loading…
Reference in New Issue
Block a user