2022-09-29 22:38:08 -04:00
|
|
|
object CheckCommand "home_assistant_state" {
|
|
|
|
command = [ PluginContribDir + "/check_home_assistant_state/check_home_assistant_state.py" ]
|
2022-09-29 18:16:46 -04:00
|
|
|
arguments = {
|
|
|
|
"--token" = {
|
2022-09-29 22:38:08 -04:00
|
|
|
value = "$home_assistant_state_token$"
|
2022-09-29 18:16:46 -04:00
|
|
|
description = "API token for Home Assistant"
|
|
|
|
}
|
|
|
|
"--url" = {
|
2022-09-29 22:38:08 -04:00
|
|
|
value = "$home_assistant_state_url$"
|
2022-09-29 18:16:46 -04:00
|
|
|
description = "URL for Home Assistant"
|
2022-11-26 19:42:49 -05:00
|
|
|
}
|
|
|
|
"--device-class" = {
|
|
|
|
value = "$home_assistant_state_device_class$"
|
|
|
|
description = "Device class of entities to monitor"
|
|
|
|
}
|
2022-09-29 18:16:46 -04:00
|
|
|
"--warning" = {
|
2022-09-29 22:38:08 -04:00
|
|
|
value = "$home_assistant_state_warning$"
|
2022-09-29 18:16:46 -04:00
|
|
|
description = "Return warning if battery percentage is outside RANGE"
|
|
|
|
}
|
|
|
|
"--critical" = {
|
2022-09-29 22:38:08 -04:00
|
|
|
value = "$home_assistant_state_critical$"
|
2022-09-29 18:16:46 -04:00
|
|
|
description = "Return critical if battery percentage is outside RANGE"
|
|
|
|
}
|
2022-11-26 19:40:57 -05:00
|
|
|
"--min" = {
|
|
|
|
value = "$home_assistant_state_min$"
|
|
|
|
description = "Min for performance data"
|
|
|
|
}
|
|
|
|
"--max" = {
|
|
|
|
value = "$home_assistant_state_max$"
|
|
|
|
description = "Max for performance data"
|
|
|
|
}
|
2022-09-29 18:16:46 -04:00
|
|
|
}
|
|
|
|
}
|