1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 13:37:02 +02:00
homematic_check_mk/check/web/plugins/wato/homematic.py

60 lines
1.7 KiB
Python
Raw Normal View History

2017-06-25 21:24:20 +02:00
checkgroups = []
subgroup_os = _("Temperature, Humidity, Electrical Parameters, etc.")
register_check_parameters(
subgroup_os,
"homematic_humidity",
_("Homematic Humidity"),
Dictionary(
title = _("Parameters for the Homematic Humidity check"),
help = _(""),
elements = [
( "warning",
Tuple(
title = _("Warning level of humidity"),
elements = [
Integer(title = _("Lower than"), default_value = 40),
Integer(title = _("Higher than"), default_value = 60),
],
),
),
( "critical",
Tuple(
title = _("Critical level of humidity"),
elements = [
Integer(title = _("Lower than"), default_value = 30),
Integer(title = _("Higher than"), default_value = 70),
],
),
),
],
),
TextAscii(
title = _("Name of the device"),
),
match_type = "dict",
)
register_check_parameters(
subgroup_os,
"homematic_dutycycle",
_("Homematic Duty cycle"),
Dictionary(
title = _("Parameters for the Homematic Duty cycle check"),
help = _(""),
elements = [
( "warning",
Integer(title = _("Warning level of duty cycle"), default_value = 50)
),
( "critical",
Integer(title = _("Critical level of duty cycle"), default_value = 70)
),
],
),
TextAscii(
title = _("Name of the device"),
),
match_type = "dict",
)