Pārlūkot izejas kodu

add wato config for HomeMatic reading 'activity'

erdoking 8 gadi atpakaļ
vecāks
revīzija
d1b0bf7edf
1 mainītis faili ar 35 papildinājumiem un 0 dzēšanām
  1. 35 0
      local/share/check_mk/web/plugins/wato/fhem.py

+ 35 - 0
local/share/check_mk/web/plugins/wato/fhem.py

@@ -511,6 +511,41 @@ register_check_parameters(
                         ),
                    ]
                 )),
+                       ## Device activity (reading)
+                       ("var_activity",
+                         Alternative(
+                            title = _('Decice activity (r: activity)'),
+                            style = "dropdown",
+                            allow_empty = False,
+                            help = _("Check state of reading 'activity' (default: alive) "),
+                            elements = [
+                                FixedValue(
+                                    'alive',
+                                    totext = "alive",
+                                    title = _("alive"),
+                                ), 
+                                FixedValue(
+                                    'ignore',
+                                    title = _("ignore"),
+                                ),
+                                FixedValue(
+                                    'dead',
+                                    totext = "dead",
+                                    title = _("dead"),
+                                ),
+                                FixedValue(
+                                    'switchedOff',
+                                    totext = "switchedOff",
+                                    title = _("switchedOff"),
+                                ),
+                                TextAscii(
+                                    title = _("custom"),
+                                    label = _("custom:"),
+                                    size = 50,
+                                ),
+                           ]
+
+                        )),
 
                ]
               )),