From 5c15defb6ad48ea8f4a1920be821170234c90f36 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Mon, 3 Jun 2024 20:31:21 +0200 Subject: [PATCH] update OCCU to 3.77.1-1 and adapted all our WebUI patches accordingly. --- buildroot-external/package/occu/occu.hash | 2 +- buildroot-external/package/occu/occu.mk | 2 +- .../0088-WebUI-Fix-MissingJSONMethods.patch | 54 - .../WebUI/www/api/methods/ccu/getversion.tcl | 27 - .../www/api/methods/ccu/getversion.tcl.orig | 0 .../methods/interface/reportvalueusage.tcl | 21 - .../interface/reportvalueusage.tcl.orig | 0 .../0119-WebUI-Fix-ProofAndSetValue.patch | 48 +- .../www/config/easymodes/etc/uiElements.tcl | 37 +- .../config/easymodes/etc/uiElements.tcl.orig | 37 +- .../0129-WebUI-Fix-RemoveHeatGroupDebug.patch | 11 - .../etc/hmipChannelConfigDialogs.tcl | 5511 ----------------- .../etc/hmipChannelConfigDialogs.tcl.orig | 5511 ----------------- .../occu/0143-WebUI-Fix-Translation.patch | 10 +- .../easymodes/MASTER_LANG/HmIP-ParamHelp.js | 99 +- .../MASTER_LANG/HmIP-ParamHelp.js.orig | 97 +- .../0185-WebUI-Fix-Missing-Units-PSM2.patch | 52 +- .../www/config/easymodes/etc/hmip_helper.tcl | 2765 --------- .../config/easymodes/etc/hmip_helper.tcl.orig | 2763 --------- .../www/config/easymodes/etc/uiElements.tcl | 39 +- .../config/easymodes/etc/uiElements.tcl.orig | 37 +- 21 files changed, 316 insertions(+), 16807 deletions(-) delete mode 100644 buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods.patch delete mode 100755 buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl delete mode 100755 buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl.orig delete mode 100755 buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl delete mode 100755 buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl.orig delete mode 100644 buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug.patch delete mode 100755 buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl delete mode 100755 buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig delete mode 100755 buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl delete mode 100755 buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl.orig diff --git a/buildroot-external/package/occu/occu.hash b/buildroot-external/package/occu/occu.hash index ff3703043e..ecff72128c 100644 --- a/buildroot-external/package/occu/occu.hash +++ b/buildroot-external/package/occu/occu.hash @@ -1,3 +1,3 @@ # Locally computed sha256 e600b8a501a17600d01bd7a4646508f94f3cd3b9df03661babd9f1801e579b36 LicenseDE.txt -sha256 39efcf5f2c977496fddb1e15a488f38488bf17a65d45e2bf422eb556c190e621 occu-3.75.7-1.tar.gz +sha256 1d5e7a25db06199f65397e822f325051c936c037dab38bd8808eae1d0c3f85e4 occu-3.77.1-1.tar.gz diff --git a/buildroot-external/package/occu/occu.mk b/buildroot-external/package/occu/occu.mk index 826ff28a40..737e094242 100644 --- a/buildroot-external/package/occu/occu.mk +++ b/buildroot-external/package/occu/occu.mk @@ -4,7 +4,7 @@ # ################################################################################ -OCCU_VERSION = 3.75.7-1 +OCCU_VERSION = 3.77.1-1 OCCU_SITE = $(call github,jens-maus,occu,$(OCCU_VERSION)) OCCU_LICENSE = HMSL OCCU_LICENSE_FILES = LicenseDE.txt diff --git a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods.patch b/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods.patch deleted file mode 100644 index 8c7d4386f7..0000000000 --- a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods.patch +++ /dev/null @@ -1,54 +0,0 @@ ---- occu/WebUI/www/api/methods/ccu/getversion.tcl.orig -+++ occu/WebUI/www/api/methods/ccu/getversion.tcl -@@ -0,0 +1,27 @@ -+## -+# CCU.getVersion -+# Liefert die Firmware-Version der HomeMatic Zentrale -+# -+# Parameter: -+# -+# Rückgabewert: [string] -+# Firmware-Version der HomeMatic Zentrale -+## -+ -+proc read_var { filename varname} { -+ set fd [open $filename r] -+ set var "" -+ if { $fd >=0 } { -+ while { [gets $fd buf] >=0 } { -+ if [regexp "^ *$varname *= *(.*)$" $buf dummy var] break -+ } -+ close $fd -+ } -+ return $var -+} -+ -+proc get_version { } { -+ return [read_var /VERSION VERSION] -+} -+ -+jsonrpc_response [json_toString [get_version]] ---- occu/WebUI/www/api/methods/interface/reportvalueusage.tcl.orig -+++ occu/WebUI/www/api/methods/interface/reportvalueusage.tcl -@@ -0,0 +1,21 @@ -+## -+# Interface.reportValueUsage -+# Teilt der Schnittstelle mit, wie häufig die Logikschicht einen Wert verwendet -+# -+# Parameter: -+# interface : [string] Bezeichnung der Schnittstelle -+# address : [string] Adresse des logischen Geräts -+# valueId : [string] Wert des logischen Geräts -+# refCounter: [integer] Anzahl der verwendungen des Wertes -+# -+# Rückgabewert: [boolean] -+# true -+## -+ -+set address $args(address) -+set valueId $args(valueId) -+set refCounter $args(refCounter) -+ -+checkXmlRpcStatus [catch {xmlrpc $interface(URL) reportValueUsage [list string $address] [list string $valueId] [list int $refCounter] }] -+ -+jsonrpc_response true diff --git a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl b/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl deleted file mode 100755 index 6245ec24c9..0000000000 --- a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl +++ /dev/null @@ -1,27 +0,0 @@ -## -# CCU.getVersion -# Liefert die Firmware-Version der HomeMatic Zentrale -# -# Parameter: -# -# Rückgabewert: [string] -# Firmware-Version der HomeMatic Zentrale -## - -proc read_var { filename varname} { - set fd [open $filename r] - set var "" - if { $fd >=0 } { - while { [gets $fd buf] >=0 } { - if [regexp "^ *$varname *= *(.*)$" $buf dummy var] break - } - close $fd - } - return $var -} - -proc get_version { } { - return [read_var /VERSION VERSION] -} - -jsonrpc_response [json_toString [get_version]] diff --git a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl.orig b/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl.orig deleted file mode 100755 index e69de29bb2..0000000000 diff --git a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl b/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl deleted file mode 100755 index 90035d43a8..0000000000 --- a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl +++ /dev/null @@ -1,21 +0,0 @@ -## -# Interface.reportValueUsage -# Teilt der Schnittstelle mit, wie häufig die Logikschicht einen Wert verwendet -# -# Parameter: -# interface : [string] Bezeichnung der Schnittstelle -# address : [string] Adresse des logischen Geräts -# valueId : [string] Wert des logischen Geräts -# refCounter: [integer] Anzahl der verwendungen des Wertes -# -# Rückgabewert: [boolean] -# true -## - -set address $args(address) -set valueId $args(valueId) -set refCounter $args(refCounter) - -checkXmlRpcStatus [catch {xmlrpc $interface(URL) reportValueUsage [list string $address] [list string $valueId] [list int $refCounter] }] - -jsonrpc_response true diff --git a/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl.orig b/buildroot-external/patches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/interface/reportvalueusage.tcl.orig deleted file mode 100755 index e69de29bb2..0000000000 diff --git a/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue.patch b/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue.patch index afaa4f0c2d..64f2d890a9 100644 --- a/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue.patch +++ b/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue.patch @@ -147,21 +147,35 @@ return "$max" } -@@ -33,10 +43,10 @@ - if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { - switch [string tolower $devType] { - hmip-psm - -- hmip-fsm16 {return "3680.0"} -+ hmip-fsm16 {return "3680.00"} - hmip-bsm - -- hmip-fsm {return "1150.0"} -- hmip-usbsm {return "60.0"} -+ hmip-fsm {return "1150.00"} -+ hmip-usbsm {return "60.00"} - default {return "max value not available"} +@@ -24,10 +34,10 @@ + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - +- hmip-fsm16 {return 3680.0} ++ hmip-fsm16 {return 3680.00} + hmip-bsm - +- hmip-fsm {return 1150.0} +- hmip-usbsm {return 60.0} ++ hmip-fsm {return 1150.00} ++ hmip-usbsm {return 60.00} + default {return "max value not available"} } } -@@ -82,7 +92,7 @@ +@@ -37,10 +47,10 @@ + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - +- hmip-fsm16 {return "3680.0"} ++ hmip-fsm16 {return "3680.00"} + hmip-bsm - +- hmip-fsm {return "1150.0"} +- hmip-usbsm {return "60.0"} ++ hmip-fsm {return "1150.00"} ++ hmip-usbsm {return "60.00"} + default {return "max value not available"} + } + } +@@ -86,7 +96,7 @@ # Limit float to 1 decimal places if {([llength [split $min "."]] == 2) || ([llength [split $max "."]] == 2)} { @@ -170,7 +184,7 @@ set min [format {%1.1f} $min] set max [format {%1.1f} $max] } else { -@@ -178,7 +188,7 @@ +@@ -187,7 +197,7 @@ hmip-usbsm { if {$param == "TX_THRESHOLD_POWER"} {return "W (0.0 - [getUserDefinedMaxValue $devType $param])"} @@ -179,7 +193,7 @@ } default {return "missing description"} } -@@ -234,6 +244,9 @@ +@@ -243,6 +253,9 @@ set maxValue "stringUTF8" set maxLength "maxLength=16" set sizeTextfield 16 @@ -189,7 +203,7 @@ } } -@@ -256,7 +269,7 @@ +@@ -265,7 +278,7 @@ # Limit float to 2 decimal places if {[llength [split $value "."]] == 2} { @@ -198,7 +212,7 @@ catch {set value [format {%1.1f} $value]} } else { catch {set value [format {%1.2f} $value]} -@@ -339,7 +352,7 @@ +@@ -348,7 +361,7 @@ } set s "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return 3680.00} + hmip-bsm - + hmip-fsm {return 1150.00} + hmip-usbsm {return 60.00} + default {return "max value not available"} } } if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return "3680.00"} - hmip-bsm - - hmip-fsm {return "1150.00"} - hmip-usbsm {return "60.00"} - default {return "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return "3680.00"} + hmip-bsm - + hmip-fsm {return "1150.00"} + hmip-usbsm {return "60.00"} + default {return "max value not available"} } } @@ -164,7 +168,10 @@ proc getUnit {param} { proc getCondTXThresholdUnit {devType chn} { switch [string tolower $devType] { - hmip-stho { + hmip-stho + hmip-stho-a + elv-sh-cth + { if {$chn == "2"} {return "°C"} if {$chn == "3"} {return "%"} } @@ -182,6 +189,8 @@ proc getCondTXThresholdUnit {devType chn} { proc getUserDefinedCondTXThresholdUnitMinMaxDescr {devType param} { switch [string tolower $devType] { hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - hmip-fsm16 - hmip-bsm - hmip-fsm - @@ -533,6 +542,8 @@ proc getHelpIcon {topic {x 0} {y 0}} { "DIM_LEVEL_LOWEST" {set x 450; set y 125} "DIM_STEP" {set x 500; set y 150} "DISABLE_DEVICE_ALIVE_SIGNAL" {set x 500; set y 75 } + "DISPLAY_MODE" {set x 500; set y 200 } + "DISPLAY_INVERTED_COLORS" {set x 550; set y 60 } "DURATION_5MIN" {set x 500; set y 160} "ENABLE_ROUTING" {set x 500; set y 120} "EVENT_FILTER_NUMBER_motionDetect" {set x 400; set y 60} diff --git a/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig b/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig index 8fd95f9ef0..0d334ccfa6 100755 --- a/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig +++ b/buildroot-external/patches/occu/0119-WebUI-Fix-ProofAndSetValue/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig @@ -21,23 +21,27 @@ proc getMaxValue {param} { proc getUserDefinedMaxValue {devType {extraparam ""}} { if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return 3680.0} - hmip-bsm - - hmip-fsm {return 1150.0} - hmip-usbsm {return 60.0} - default {return "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return 3680.0} + hmip-bsm - + hmip-fsm {return 1150.0} + hmip-usbsm {return 60.0} + default {return "max value not available"} } } if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return "3680.0"} - hmip-bsm - - hmip-fsm {return "1150.0"} - hmip-usbsm {return "60.0"} - default {return "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return "3680.0"} + hmip-bsm - + hmip-fsm {return "1150.0"} + hmip-usbsm {return "60.0"} + default {return "max value not available"} } } @@ -154,7 +158,10 @@ proc getUnit {param} { proc getCondTXThresholdUnit {devType chn} { switch [string tolower $devType] { - hmip-stho { + hmip-stho + hmip-stho-a + elv-sh-cth + { if {$chn == "2"} {return "°C"} if {$chn == "3"} {return "%"} } @@ -172,6 +179,8 @@ proc getCondTXThresholdUnit {devType chn} { proc getUserDefinedCondTXThresholdUnitMinMaxDescr {devType param} { switch [string tolower $devType] { hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - hmip-fsm16 - hmip-bsm - hmip-fsm - @@ -520,6 +529,8 @@ proc getHelpIcon {topic {x 0} {y 0}} { "DIM_LEVEL_LOWEST" {set x 450; set y 125} "DIM_STEP" {set x 500; set y 150} "DISABLE_DEVICE_ALIVE_SIGNAL" {set x 500; set y 75 } + "DISPLAY_MODE" {set x 500; set y 200 } + "DISPLAY_INVERTED_COLORS" {set x 550; set y 60 } "DURATION_5MIN" {set x 500; set y 160} "ENABLE_ROUTING" {set x 500; set y 120} "EVENT_FILTER_NUMBER_motionDetect" {set x 400; set y 60} diff --git a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug.patch b/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug.patch deleted file mode 100644 index 852b0da47e..0000000000 --- a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig -+++ occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl -@@ -2665,7 +2665,7 @@ - set options(0) "\${optionETRVNormalMode}" - set options(1) "\${optionETRVSilentMode}" - append html "\${lblOperatingMode}" -- append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"alert(this.value,$chn)\"] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.75]]" -+ append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.75]]" - append html "" - } - diff --git a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl b/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl deleted file mode 100755 index 8604c67df2..0000000000 --- a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl +++ /dev/null @@ -1,5511 +0,0 @@ -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/uiElements.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmip_helper.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/options.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipDRAP_HAPMaintenance.tcl] -# source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - -proc getMaintenance {chn p descr address} { - - global dev_descr env iface - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - - set devIsHmIPWired [isDevHmIPW $devType] - - set cyclicInfo false - - set specialID "[getSpecialID $special_input_id]" - set html "" - - set CHANNEL $special_input_id - - puts "" - - if {([string equal $devType "HmIP-CCU3"] == 1) || ([string equal $devType "RPI-RF-MOD"] == 1)} { - append html "[getNoParametersToSet]" - return $html - } - - set param CYCLIC_INFO_MSG - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - append html "" - append html "\${stringTableCyclicInfoMsg}" - append html "[getCheckBoxCyclicInfoMsg $param $ps($param) $chn $prn]" - append html "" - } - - set param CYCLIC_INFO_MSG_DIS - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - incr prn - append html "" - append html "\${stringTableCyclicInfoMsgDis}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param CYCLIC_INFO_MSG_DIS_UNCHANGED - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - incr prn - append html "" - append html "\${stringTableCyclicInfoMsgDisUnChanged}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - if {$cyclicInfo == "true"} { - append html "[getHorizontalLine]" - } - - if {[string equal $devType "HmIP-RGBW"] != 1} { - set param OVERTEMP_LEVEL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerOverTempLevel}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - } - - set param DEVICE_OPERATION_MODE - if {[info exists ps($param)] == 1} { - if {[string equal $devType "HmIP-RGBW"] == 1} { - incr prn - append html "" - append html "\${lblMode}" - array_clear options - set options(0) "\${optionRGBW}" - set options(1) "\${optionRGB}" - set options(2) "\${option2xTunableWhite}" - set options(3) "\${option4xPWM}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_RGBW]" - - append html "" - - # Check if links or programs exist - set linksAvailable 0 - set parentAddress $dev_descr(ADDRESS) - - for {set loop 1} {$loop <= 4} {incr loop} { - set chnAddress "$parentAddress:[expr $chn + $loop]" - if {[getLinkCountByAddress $iface $chnAddress] > 0} { - set linksAvailable 1 - break; - } - } - - append html "" - append html "" - append html "" - - append html "" - - append html "" - - append html "[getHorizontalLine]" - } - } - - set param LOW_BAT_LIMIT - if { [info exists ps($param)] == 1 } { - # SPHM-875 - if {([string equal $devType "HmIP-SWO-PL"] != 1) && ([string equal $devType "HmIP-SWO-PR"] != 1) && ([string equal $devType "HmIP-SWO-B"] != 1)} { - incr prn - append html "" - append html "\${stringTableBatteryLowBatLimit}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - } - - set param LOCAL_RESET_DISABLED - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLocalResetDisable}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param GLOBAL_BUTTON_LOCK - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableGlobalButtonLock}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - if {([string equal $devType "HmIPW-DRAP"] != 1) && ([string equal $devType "HmIP-HAP"] != 1) && ([string equal $devType "HmIP-HAP-B1"] != 1) && ([string equal $devType "HmIP-HAP JS1"] != 1)} { - set param ROUTER_MODULE_ENABLED - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRouterModuleEnabled}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - - set param MULTICAST_ROUTER_MODULE_ENABLED - if { [info exists ps($param)] == 1} { - incr prn - append html "" - append html "\${stringTableMulticastRouterModuleEnabled}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param 600 300]" - append html "" - } - - set param ENABLE_ROUTING - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableEnableRouting}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - - set param DISABLE_DEVICE_ALIVE_SIGNAL - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableDisableDeviceAliveSignal}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - -set comment { - # This parameter shouldn't be visible in the WebUI. This was once clarified with the PM - set param DISABLE_MSG_TO_AC - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableDisableMsgToAC}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } -} - - set param DEVICE_SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1} { - incr prn - # HmIP-STI = 0 - 4 - for {set val 0} {$val <= 4} {incr val} { - set options($val) "[expr $val + 1]" - } - append html "" - append html "\${stringTableDeviceSensorSensibility}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param DISPLAY_CONTRAST - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - if {([string equal $devType "HmIP-eTRV-3"] == 1) || ([string equal $devType "HmIP-eTRV-E"] == 1) || ([string equal $devType "HmIP-eTRV-E-S"] == 1) || ([string equal $devType "HmIP-eTRV-E-A"] == 1) } { - set optVal 0 - for {set val 1} {$val <= 16} {incr val} { - if {$val < 7} {incr optVal 5} elseif {$val < 14} {incr optVal 10} else {incr optVal 20} - set options($optVal) "$val" - } - } else { - # This is currently in use for the HmIPW-DRAP - for {set val 0} {$val <= 31} {incr val} { - set options($val) "$val" - } - } - - append html "" - append html "\${stringTableDisplayContrast}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - } - - set param BACKLIGHT_ON_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDisplayLightingDuration}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param SIGNAL_BRIGHTNESS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBrightnessVisKey}" - option RAW_0_100Percent_1 - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MOUNTING_ORIENTATION - if { [info exists ps($param)] == 1 } { - incr prn - if {([string first "HmIP-BBL" $devType] == -1) && ([string first "HmIP-BROLL" $devType] == -1) } { - append html "" - append html "\${lblMountingOrientation}" - array_clear options - set options(0) "\${stringTableWinMaticMountSideLeft}" - set options(1) "\${stringTableWinMaticMountSideRight}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } else { - append html "" - append html "\${lblMountingOrientationA}" - array_clear options - set options(0) "\${option0Degree}" - set options(1) "\${option90Degree}" - set options(2) "\${option180Degree}" - set options(3) "\${option270Degree}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" - append html "" - } - } - - set param PERMANENT_FULL_RX - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - incr prn - array_clear options - set options(0) "\${operationModeBattery}" - set options(1) "\${operationModeMains}" - append html "" - append html "\${powerSupply}" - if {([string equal $devType "HmIP-SMI55"] == 1) || ([string equal $devType "HmIP-SMI55-2"] == 1)} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=paramPermanentFullRXChanged(this.id\,this.value)] [getHelpIcon $param]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=showParameterHint(this.id\,this.value)]" - } - append html "" - - if {([string equal $devType "HmIP-SMI55"] == 1) || ([string equal $devType "HmIP-SMI55-2"] == 1)} { - append html "" - append html "\${hintPERMANENT_FULL_RX}" - append html "" - } else { - append html "[getHorizontalLine]" - } - - append html "" - } - - # DRAP/HAP Integration # - if {([string equal $devType "HmIPW-DRAP"] == 1) || ([string equal $devType "HmIP-HAP"] == 1) || ([string equal $devType "HmIP-HAP-B1"] == 1) || ([string equal $devType "HmIP-HAP JS1"] == 1)} { - append html "[getDRAP_HAPMaintenance $chn ps psDescr]" - } - # End DRAP/HAP Integration # - - - if {[string equal $devType "HmIP-DLD"] != 1} { - set param LONGITUDE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblLocation} - \${dialogSettingsTimePositionLblLongtitude}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - - set param LATITUDE - incr prn - append html "" - append html "\${lblLocation} - \${dialogSettingsTimePositionLblLatitude}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - } - - ### Blocking ### - set param BLOCKING_ON_SABOTAGE - if { [info exists ps($param)] == 1 } { - incr prn - append html "[getHorizontalLine]" - append html "" - append html "\${stringTableBlockingOnSabotage}" - - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param\_FWI]" - } else { - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - } - - append html "" - } - - set param SABOTAGE_CONTACT_TYPE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSabotageContactType}" - option NORMALLY_CLOSE_OPEN - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param BLOCKING_TEMPORARY - if { [info exists ps($param)] == 1 } { - set min [expr {[expr int([getMinValue $param]) + 1]}] - set max [expr {[expr int([getMaxValue $param])]}] - - array_clear options - set options(0) \${optionNotActive} - for {set val $min} {$val <= $max} {incr val} { - set options($val) "$val" - } - incr prn - append html "" - append html "\${stringTableBlockingTemporary}" - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_FWI]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - } - append html "" - } - - set param BLOCKING_PERMANENT - if { [info exists ps($param)] == 1 } { - set min [expr {[expr int([getMinValue $param]) + 1]}] - set max [expr {[expr int([getMaxValue $param])]}] - - array_clear options - set options(0) \${optionNotActive} - for {set val $min} {$val <= $max} {incr val} { - set options($val) "$val" - } - incr prn - append html "" - append html "\${stringTableBlockingPermanent}" - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_FWI]" - } elseif {[string equal $devType "HmIP-WKP"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_WKP]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - } - append html "" - append html "[getHorizontalLine]" - } - ### End Blocking ### - - - - if {[session_is_expert]} { - append html "" - } - - return $html -} - -proc getKeyTransceiver {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 1 - - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${lblChannelActivInactiv}" - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - incr prn - } - -set comment { - # Intruduced with the DBB but currently not supported - set param DISABLE_ACOUSTIC_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableDisableAcousticChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } -} - - set param DISABLE_ACOUSTIC_SENDSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableDisableAcousticSendState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - - set param LED_DISABLE_SENDSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableLEDDisableSendState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - # This is for the display configuration for the keys of a ACOUSTIC_DISPLAY_RECEIVER (e. g. HmIP-WRCD) - set paramText TEXT - set paramIcon TEXT_ICON - if {(! [catch {set tmp $ps($paramText)}]) && (! [catch {set tmp $ps($paramIcon)}])} { - set psText $ps(TEXT) - set psAlignment $ps(TEXT_ALIGNMENT) - set psBgColor $ps(TEXT_BACKGROUND_COLOR) - set psTextColor $ps(TEXT_COLOR) - set psIcon $ps(TEXT_ICON) - append html [getAcousticdDisplayReceiverConfig $special_input_id $chn $psText $psAlignment $psBgColor $psTextColor $psIcon] - - set specialParam 1 - } - - if {$specialParam == 1} { - append html "[getHorizontalLine]" - } - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - incr prn - } - - set param LONG_PRESS_TIME - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - incr prn - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - if {[string equal $dev_descr(TYPE) "HmIP-STI"] == 0} { - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "timeOnOffShort"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } else { - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - # append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - append html " [getUnit $param]" - append html "" - append html "" - append html "" - - append html "" - } - } - - # append html "[getAlarmPanel ps]" - - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - incr prn - - append html "[getHorizontalLine]" - - append html "" - append html "\${stringTableAbortEventSendingChannels} [getHelpIcon $param]" - append html "" - - append html "" - append html "\${lblStopRunningLink}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - return $html -} - -proc getGenericInputTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - puts "" - - set param MIOB_DIN_CONFIG - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMiobDinConfig}" - option MIOB_DIN_CONFIG - append html "[getOptionBox '$param' options $ps($param) $chn $prn "onchange=\"showHideKeyParams($chn);\""]" - append html "" - } - - set param MIOB_DIN_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMiobDinMode}" - option NORMALLY_OPEN_CLOSE - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - incr prn - set param LONG_PRESS_TIME - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - } - - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - append html "" - - return $html -} - -proc getMultiModeInputTransmitter {chn p descr address} { - - global dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 80 - set eventDelayPrn 0 - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - set valueListIndex [expr [lsearch $psDescr($param) VALUE_LIST] +1] - set valueList "[lindex $psDescr($param) $valueListIndex]" - incr prn - append html "" - append html "\${stringTableKeyTransceiverChannelOperationMode}" - array_clear options - set options(0) "\${lblNotActiv}" - set options(1) "\${stringTableKeyTransceiverChannelOperationModeKeyBehavior}" - set options(2) "\${stringTableKeyTransceiverChannelOperationModeSwitchBehavior}" - - if {[lsearch $valueList BINARY_BEHAVIOR] != -1} { - set options(3) "\${stringTableKeyTransceiverChannelOperationModeBinaryBehavior}" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"channelOperationModeChange(this.value,'$address')\"]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - set eventDelayPrn $prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - -# ** KEY ** - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param LONG_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "timeOnOffShort"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - - } - -# ** END KEY ** - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableShutterContactHmIPMsgPosA0}" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" ; # NO_MSG - set options(1) "\${stringTableShutterContactMsgPosA1}" ; # CLOSED - set options(2) "\${stringTableShutterContactMsgPosA3}" ; # OPEN - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableShutterContactHmIPMsgPosB0}" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" ; # NO_MSG - set options(1) "\${stringTableShutterContactMsgPosA1}" ; # CLOSED - set options(2) "\${stringTableShutterContactMsgPosA3}" ; # OPEN - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param CONTACT_BOOST - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableContactBoost}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - incr prn - - append html "[getHorizontalLine]" - - append html "" - append html "\${stringTableAbortEventSendingChannels} [getHelpIcon $param]" - append html "" - - append html "" - append html "\${lblStopRunningLink}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - - - - append html "" - - return $html -} - -proc getAnalogInputTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set prn 1; - set param FILTER_SIZE - append html "" - append html "\${stringTableAnalogInputTransmitterFilterSize}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon $param\_ANALOG_INPUT_TRANSMITTER 550 250]" - append html "" - - return $html -} - -proc getAnalogOutputTransceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param VOLTAGE_0 - append html "" - append html "\${stringTableVoltage0}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - - incr prn - set param VOLTAGE_100 - append html "" - append html "\${stringTableVoltage100}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - - return $html -} - -proc getSwitchTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param CURRENTDETECTION_BEHAVIOR - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableCurrentDetectionBehavior}" - array_clear option - set option(0) "\${stringTableCurrentDetectionBehaviorActive}" - set option(1) "\${stringTableCurrentDetectionBehaviorOutput1}" - set option(2) "\${stringTableCurrentDetectionBehaviorOutput2}" - append html "[getOptionBox '$param' option $ps($param) $chn $prn]" - append html "" - incr prn - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - return $html -} - -proc getClimateReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - - set html "" - - puts "" - - set param TEMPERATURE_OFFSET - append html "" - array_clear options - for {set val -3.5} {$val <= 3.5} {set val [expr $val + 0.5]} { - set options($val) "$val °C" - } - append html "\${stringTableTemperatureOffset}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - append html "" - - return $html -} - -proc getBlindTransmitter {chn p descr address} { - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set parent [lindex [split $address :] 0] - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - set fwPatch [lindex $Fw 2] - - puts "" - - puts "
$parent
" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblOutputSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANGE_OVER_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindChangeOverDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - } - - set param REFERENCE_RUN_COUNTER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRefRunCounter}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - } - - set param ENDPOSITION_AUTO_DETECT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindEndPositionAutoDetect}" - append html "[getCheckBox '$param' $ps($param) $chn $prn onchange=setVisibilityAutoCalibration(this);]" - append html "" - } - - append html "[getHorizontalLine]" - - set cssAutoCalibration "hidden" - if {$fwMajor == 1 && $fwMinor == 0 && $fwPatch <= 10 } { - # set cssAutoCalibration "" - } - - # AUTOCALIBRATION - append html "" - append html "\${stringTableSelfCalibrationStart}" - append html "[getHelpIcon BLIND_AUTOCALIBRATION]" - append html "" - append html "" - - append html "" - append html "\${lblAutoCalibrationActiv}" - append html "
" - append html "" - - append html "" - - # /AUTOCALIBRATION - - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunnintTimeBottomTop}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunningTimeTopBottom}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_SLATS_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableJalousieRunningTimeSlats}" - append html [getComboBox $chn $prn "$specialID" "slatRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_SLATS_VALUE - append html "" - append html "\${stringTableTimeSlatsValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param DELAY_COMPENSATION - if { [info exists ps($param)] == 1 } { - # The max value represents the automatic modus. - set autoDelayCompensation 0 - incr prn - - set bckColor "silver" - append html "" - append html "\${stringTableBlindDelayCompensation}" - append html "" - - append html "" - if {[format {%1.1f} $ps($param)] == [getMaxValue $param]} {set autoDelayCompensation 1} - append html "\${btnAutoDetect}" - append html "[getCheckBox '_$param' $autoDelayCompensation $chn tmp onchange=setAutoDelayCompensation(this);] [getHelpIcon $param]" - append html "" - - # Hide this while in auto mode - append html "" - append html "\${lblTimeDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - append html "" - } - - # append html "
" - append html "" - - return $html -} - -proc getShutterTransmitter {chn p descr address} { - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set parent [lindex [split $address :] 0] - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - set fwPatch [lindex $Fw 2] - - puts "" - - puts "
$parent
" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblOutputSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANGE_OVER_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindChangeOverDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - } - - set param REFERENCE_RUN_COUNTER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRefRunCounter}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - } - - set param ENDPOSITION_AUTO_DETECT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindEndPositionAutoDetect}" - append html "[getCheckBox '$param' $ps($param) $chn $prn onchange=setVisibilityAutoCalibration(this);]" - append html "" - } - - append html "[getHorizontalLine]" - - set cssAutoCalibration "hidden" - if {$fwMajor == 1 && $fwMinor == 0 && $fwPatch <= 10 } { - # set cssAutoCalibration "" - } - - # AUTOCALIBRATION - append html "" - append html "\${stringTableSelfCalibrationStart}" - append html "[getHelpIcon BLIND_AUTOCALIBRATION]" - append html "" - append html "" - - append html "" - append html "\${lblAutoCalibrationActiv}" - append html "
" - append html "" - - append html "" - # /AUTOCALIBRATION - - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunnintTimeBottomTop}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunningTimeTopBottom}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "" - } - - append html "[getHorizontalLine]" - - set param DELAY_COMPENSATION - if { [info exists ps($param)] == 1 } { - # The max value represents the automatic modus. - set autoDelayCompensation 0 - incr prn - - set bckColor "silver" - append html "" - append html "\${stringTableBlindDelayCompensation}" - append html "" - - append html "" - if {[format {%1.1f} $ps($param)] == [getMaxValue $param]} {set autoDelayCompensation 1} - append html "\${btnAutoDetect}" - append html "[getCheckBox '_$param' $autoDelayCompensation $chn tmp onchange=setAutoDelayCompensation(this);] [getHelpIcon $param]" - append html "" - - # Hide this while in auto mode - append html "" - append html "\${lblTimeDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - append html "" - - } - # append html "
" - - return $html -} - -proc getDimmerTransmitter {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - set devType $dev_descr(TYPE) - - set html "" - - set prn 0 - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - - set isWUA [string equal $devType "HmIP-WUA"] - set lblActivInactiv \${lblChannelActivInactiv} - - if {! $isWUA} { - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - } else { - set options(0) "\${optionRelayInactive}" - set options(1) "\${optionRelayOffDelay05S}" - set options(2) "\${optionRelayOffDelay1S}" - set options(3) "\${optionRelayOffDelay10S}" - - set lblActivInactiv \${lblChannelActivInactivWhenNoOutput} - } - - append html "$lblActivInactiv" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showDecisionValue(this.value,$chn)\"] - append html "" - } - - set param VOLTAGE_0 - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableVoltage0}" - append html "[getTextField $param $ps($param) $chn $prn proofMinMax4Voltage_X('$param');] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - } - - set param VOLTAGE_100 - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableVoltage100}" - append html "[getTextField $param $ps($param) $chn $prn proofMinMax4Voltage_X('$param')] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - - append html "" - - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - set param FUSE_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerFuseDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param OVERTEMP_LEVEL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerOverTempLevel}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - return $html -} - -proc getAlarmSwitchVirtualReceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - return $html -} - - proc getAlarmCondSwitchReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set specialID "[getSpecialID $special_input_id]" - set html "" - - set param SD_MULTICAST_ZONE_1 - if { [info exists ps($param)] == 1 } { - - # This is for the parameter SD_MULTICAST_ZONE_1..7 - append html "" - append html "\${paramSDMulticastZone}" - append html "" - append html "" - for {set loop 1} {$loop < 8} {incr loop} { - incr prn - set zoneActive "" - set checked "" - set zoneActive "$ps(SD_MULTICAST_ZONE_$loop)" - if {[string equal $zoneActive "1"] == 1} { - set checked "checked" - } - append html "" - append html "" - } - append html "" - append html "
" - append html "" - append html "[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]
" - append html "" - append html "" - } - - set param SILENT_ALARM_ZONE_1 - if { [info exists ps($param)] == 1 } { - - # This is for the parameter SILENT_ALARM_ZONE_1..7 - append html "" - append html "\${paramSilentAlarmZone}" - append html "" - append html "" - for {set loop 1} {$loop < 8} {incr loop} { - incr prn - set zoneActive "" - set checked "" - set zoneActive "$ps(SILENT_ALARM_ZONE_$loop)" - if {[string equal $zoneActive "1"] == 1} { - set checked "checked" - } - append html "" - append html "" - } - append html "" - append html "
" - append html "" - append html "[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]
" - append html "" - append html "" - } - return $html - } - - -proc getDimmerVirtualReceiver {chn p descr} { - - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set devType $dev_descr(TYPE) - - if {[session_is_expert]} { - set hr 0 - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - set hr 1 - append html "" - append html "\${stringTableLogicCombination} \${stringTableBrightness}" - array_clear options - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - - append html "" - } - - set param "LOGIC_COMBINATION_2" - if { [info exists ps($param)] == 1 } { - incr prn - set onClick "VirtualChannel_help($chn);" - set hr 1 - append html "" - append html "\${stringTableLogicCombination} \${stringTableColor}" - array_clear options - if {([string equal "HmIP-BSL" $devType] == 1) || ([string equal "HmIP-MP3P" $devType] == 1)} { - set onClick "VirtualChannel_help($chn,'lc2');" - option LOGIC_COMBINATION_NO_AND_OR - } else { - option LOGIC_COMBINATION - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - - append html "" - } - if {$hr == 1} { - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmerColor}
" - append html "" - - puts "" - - return $html -} - -proc getBlindVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - puts "" - - set html "" - - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombinationBlind}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - incr prn - set param "LOGIC_COMBINATION_2" - append html "" - append html "\${stringTableLogicCombinationSlat}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - append html "[getHorizontalLine]" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorShutterBlind $chn ps $special_input_id blind] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - puts "" - - return $html -} - -proc getShutterVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - puts "" - - set html "" - - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - append html "[getHorizontalLine]" - } - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - append html "[getHorizontalLine]" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorShutterBlind $chn ps $special_input_id shutter] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - puts "" - - return $html -} - -proc getHeatingClimateControlSwitchTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set climateFunction "" - - puts "" - set param CLIMATE_FUNCTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblOperationMode}" - array_clear options - set options(0) "\${optionThermostat}" - set options(1) "\${optionHygrostat}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=showRelevantParams(this.value)] [getHelpIcon $param]" - set climateFunction $ps($param) - append html "" - } - - set param HUMIDITY_LIMIT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - - if {$climateFunction == 1} {set paramVisibility ''} else {set paramVisibility 'hidden'} - - append html "" - append html "\${stringTableHumidityLimitValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - } - - set param TWO_POINT_HYSTERESIS - if {[info exists ps($param)] == 1} { - incr prn - if {$climateFunction == 0} {set paramVisibility ''} else {set paramVisibility 'hidden'} - array_clear options - for {set val 0.0} {$val <= 2.0} {set val [expr $val + 0.2]} { - set options($val) "$val K" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" - append html "" - } - - set param TWO_POINT_HYSTERESIS_HUMIDITY ;# See SPHM-911 and check the name of the parameter - if {[info exists ps($param)] == 1} { - incr prn - if {$climateFunction == 1} {set paramVisibility ''} else {set paramVisibility 'hidden'} - array_clear options - for {set val 0} {$val <= 10} {incr val} { - set options($val) "$val % rF" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param HEATING_COOLING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingCooling}" - array_clear options - if {$climateFunction == 1} { - set options(0) "\${optionDrying}" - set options(1) "\${optionMoistening}" - set options(2) "optionDryingMoistening" - } else { - set options(0) "\${optionHeating}" - set options(1) "\${optionCooling}" - set options(2) "\${optionHeatingCooling}" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A 600 300]" - append html "" - } - - append html "" - - return $html -} - -proc getHeatingClimateControlTransceiver {chn p descr address {extraparam ""}} { - global iface - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set isGroup "" - - if {[string equal [string range $address 0 2] "INT"] == 1} { - set isGroup "_group" - } - - set weeklyPrograms 3 - - puts "" - - set param P6_TEMPERATURE_MONDAY_1 - if { [info exists ps($param)] == 1 } { - set weeklyPrograms 6 - } - - if {[string compare $extraparam 'only3WeeklyProgramms'] == 0} { - set weeklyPrograms 3 - } - - set html "" - - set CHANNEL $special_input_id - - puts "" - - append html "[addHintHeatingGroupDevice $address]" - - set prn 0 - - set param WEEK_PROGRAM_POINTER - append html "" - append html "" - append html "" - append html "" - - # left - append html "" - append html "" - append html "" - append html "" - append html "
\${stringTableWeekProgramToEdit}" - append html " [getHelpIcon $param$isGroup]" - append html "
" - - - ## Create the weekly Programs ## - - for {set loop 1} {$loop <=$weeklyPrograms} {incr loop} { - set pNr "P$loop"; - append html "
" - foreach day {SATURDAY SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY} { - append html "
" - } - append html "
" - - append html "" - } - - append html "" - - append html "
" - - # *************** # - - append html "" - # left - - set param SHOW_SET_TEMPERATURE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableClimateControlRegDisplayTempInfoActualTemp}" - set options(1) "\${stringTableClimateControlRegDisplayTempInfoSetPoint}" - - append html "" - append html "" - append html "" - - # right - set param SHOW_HUMIDITY - if {[info exists ps($param)] == 1} { - incr prn - array_clear options - set options(0) "\${stringTableClimateControlRegDisplayTempHumT}" - set options(1) "\${stringTableClimateControlRegDisplayTempHumTH}" - append html "" - append html "" - } - append html "" - } - - # left - set comment { - # After a talk with the developer (B. B.) we decided not to show this parameter - set param ADAPTIVE_REGULATION - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAdaptiveRegulationOpt0}" - set options(1) "\${stringTableAdaptiveRegulationOpt1}" - set options(2) "\${stringTableAdaptiveRegulationOpt2}" - append html "" - append html "" - append html "" - append html "" - } - } - - set param BUTTON_RESPONSE_WITHOUT_BACKLIGHT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - append html "
\${stringTableClimateControlRegDisplayTempInfo}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"setDisplayMode(this)\"]\${stringTableClimateControlRegDisplayTempHum}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]
\${stringTableAdaptiveRegulation}" - append html "[get_ComboBox options $param separate_CHANNEL\_$prn ps $param]
\${stringTableButtonResponseWithoutBacklight}" - # append html "[_getCheckBox $CHANNEL '$param' $ps($param) $prn]" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "
" - - append html "
" - - append html "" - - set param TEMPERATURE_LOWERING_COOLING - if { [info exists ps($param)] == 1 } { - # left - incr prn - append html "" - append html "" - append html "" - append html "" - - append html "" - } - - # left - incr prn - set param TEMPERATURE_MINIMUM - array_clear options - set i 0 - for {set val [getMinValue $param]} {$val <= [getMaxValue $param]} {set val [expr $val + 0.5]} { - set options($i) "$val °C" - incr i; - } - append html "" - append html "" - append html "" - - # right - incr prn - set param TEMPERATURE_MAXIMUM - array_clear options - set i 0 - for {set val [getMinValue $param]} {$val <= [getMaxValue $param]} {set val [expr $val + 0.5]} { - set options($i) "$val °C" - incr i; - } - append html "" - append html "" - append html "" - append html "" - append html "" - - set param MIN_MAX_VALUE_NOT_RELEVANT_FOR_MANU_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - set param OPTIMUM_START_STOP - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - set param DURATION_5MIN - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - - append html "" - - append html "" - } - - append html "
\${ecoCoolingTemperature}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - # right - incr prn - set param TEMPERATURE_LOWERING - append html "\${ecoHeatingTemperature}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]
\${stringTableTemperatureMinimum}[get_ComboBox options $param tmp_$CHANNEL\_$prn ps $param onchange=setMinMaxTemp('tmp_$CHANNEL\_$prn','separate_$CHANNEL\_$prn')] \${stringTableTemperatureMaximum}[get_ComboBox options $param tmp_$CHANNEL\_$prn ps $param onchange=setMinMaxTemp('tmp_$CHANNEL\_$prn','separate_$CHANNEL\_$prn')]
\${stringTableMinMaxNotRelevantForManuMode}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "
\${stringTableOptimumStartStop}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "
\${stringTableDuration5Min}[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]
" - - append html "
" - - append html "" - # left - incr prn - set param TEMPERATURE_OFFSET - array_clear options - for {set val -3.5} {$val <= 3.5} {set val [expr $val + 0.5]} { - set options($val) "$val °C" - } - append html "" - append html "" - append html "" - - #left - set param TEMPERATURE_WINDOW_OPEN - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - } - append html "
\${stringTableTemperatureOffset}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]
\${stringTableTemperatureFallWindowOpen}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "
" - - append html "
" - - append html "" - # left - incr prn - set param BOOST_TIME_PERIOD - array_clear options - for {set val 0} {$val <= 30} {incr val 5} { - set options($val) "$val min" - } - append html "" - append html "" - append html "" - append html "
\${stringTableBoostTimePeriod}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]
" - - if { (! [catch {set tmp $ps(CHANNEL_OPERATION_MODE)}]) || (! [catch {set tmp $ps(ACOUSTIC_ALARM_SIGNAL)}]) } { - append html "
" - append html "" - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionETRVNormalMode}" - set options(1) "\${optionETRVSilentMode}" - append html "" - } - - set param ACOUSTIC_ALARM_SIGNAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - append html "
\${lblOperatingMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.75]]" - append html "
\${lblAcousticAlarmSignal}" - append html "[getCheckBox $CHANNEL '$param' $ps($param) $prn] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.5]]" - append html "
" - } - - if {[session_is_expert]} { - append html "" - } else { - append html "" - } - append html "" - - return $html -} - -proc getSwitchVirtualReceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - set hr 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - set hr 1 - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION_SWITCH - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - if {$hr == 1} { - #### HELP - # append html "[getHorizontalLine]" - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtSwitch}
" - append html "" - - puts "" - - } - - if {$html == ""} { - append html [getNoParametersToSet] - } - return $html -} - -proc getEnergieMeterTransmitter {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - set specialID "[getSpecialID $special_input_id]" - - set devType $dev_descr(TYPE) - - set html "" - - puts "" - - append html "\${energyMeterTransmitterHeader}

" - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionModeConsumption}" - set options(1) "\${optionModeFeeding}" - append html "\${lblMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon PSM_$param]" - append html "" - append html "[getHorizontalLine]" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param TX_MINDELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableTxMinDelay}" - append html [getComboBox $chn $prn "$specialID" "txMinDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param TX_MINDELAY_VALUE - append html "" - append html "\${stringTableTxMinDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - append html [getHorizontalLine] - - set param AVERAGING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePowerMeterAveraging}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - append html "

\${PMSwChannel2HintHeader}" - - incr prn - set param TX_THRESHOLD_POWER - append html "" - append html "\${PMSwChannel2Hint_Power}" - array_clear option - set option(0) "\${stringTableNotUsed}" - set option(1) "\${optionEnterValue}" - - append prnTmp $prn _tmp - - append html "[getOptionBox '$param' option $ps($param) $chn $prnTmp "onchange=\"test(this, '$prn');\""]" - if {[devIsPowerMeter $devType]} { - append html "[getTextField $param $ps($param) $chn $prn] [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - } else { - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - } - - append html "" - append html "" - - - - incr prn - set param TX_THRESHOLD_ENERGY - append html "" - append html "\${PMSwChannel2Hint_Energy}" - array_clear option - set option(0) "\${stringTableNotUsed}" - set option(1) "\${optionEnterValue}" - append prnTmp $prn _tmp - append html "[getOptionBox '$param' option $ps($param) $chn $prnTmp "onchange=\"test(this, '$prn');\""]" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - append html "" - - append html "\${PMSwChannel2Hint_Footer}

" - - append html "" - - return $html -} - -proc getCondSwitchTransmitter {chn p descr} { - - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - set chn [getChannel $special_input_id] - - set specialID "[getSpecialID $special_input_id]" - - set helpDlgWidth 450 - set helpDlgHeight 170 - - set html "" - - puts "" - - set param COND_TX_FALLING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxFalling}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param $helpDlgWidth $helpDlgHeight]" - append html "" - - # Show hint when this channel has links - append html [addHintCondTransmitterLinkAvailable $iface $dev_descr(ADDRESS)] - - } - - set param COND_TX_CYCLIC_BELOW - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "  \${stringTableCondTxCyclicBelow}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - - append html "" - } - - append html [getHorizontalLine] - - set param COND_TX_RISING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxRising}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param $helpDlgWidth $helpDlgHeight]" - append html "" - - # Show hint when this channel has links - append html [addHintCondTransmitterLinkAvailable $iface $dev_descr(ADDRESS)] - } - - set param COND_TX_CYCLIC_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "  \${stringTableCondTxCyclicAbove}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - - append html "" - - } - - append html [getHorizontalLine] - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxDecisionBelow}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "\${stringTableCondTxDecisionAbove}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - - if {[devIsPowerMeter $devType]} { - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdLo}" - append html "" - - append html " [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - append html "[getTextField $param $ps($param) $chn $prn class=\"hidden\"]" - - append html "" - append html "" - } - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdHi}" - append html "" - - append html " [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - append html "[getTextField $param $ps($param) $chn $prn class=\"hidden\"]" - - append html "" - append html "" - } - } else { - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdLo}" - append html "[getTextField $param $ps($param) $chn $prn] [getCondTXThresholdUnit $devType $chn]  [getMinMaxValueDescr $param]" - append html "" - } - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdHi}" - append html "[getTextField $param $ps($param) $chn $prn] [getCondTXThresholdUnit $devType $chn]  [getMinMaxValueDescr $param]" - append html "" - } - - } - set param EVENT_DELAY_UNIT - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - set param EVENT_RANDOMTIME_UNIT - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - return $html -} - -# ACCELERATION_TRANSCEIVER -proc getAccelerationTransceiver {chn p descr address} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set parent [lindex [split $address :] 0] - - set newFw false - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - # not needed - set fwPatch [lindex $Fw 2] - - - if {$fwMajor > 1 || ($fwMajor == 1 && $fwMinor >= 2)} { - set newFw true - } - - set prn 0 - - set operationMode $ps(CHANNEL_OPERATION_MODE) - set html "" - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorChannelOperationMode}" - array_clear options - # not in use for HmIP-SAM set options(0) "\${motionDetectorChannelOperationModeOff}" - set options(1) "\${motionDetectorChannelOperationModeAnyMotion}" - set options(2) "\${motionDetectorChannelOperationModeFlat}" - - if {$newFw} { - set options(3) "\${motionDetectorChannelOperationModeTilt}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"changeParamDescription(this.value)\"]" - - append html "" - append html "" - } - - set comment { - # For the HmIP-SAM this parameter is always 1 and not changeable - incr prn - set param EVENT_FILTER_NUMBER - append html "" - append html "\${stringTableEventFilterNumber}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param EVENT_FILTER_PERIOD - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorFilterPeriod}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorMessageMovement_$operationMode}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_$operationMode}" - set options(2) "\${motionDetectorOptionMotion_$operationMode}" - - if {$operationMode == 3} { - set options(3) "\${motionDetectorOptionNotTilted}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorMessageNoMovement_$operationMode}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_$operationMode}" - set options(2) "\${motionDetectorOptionMotion_$operationMode}" - - if {$operationMode == 3} { - set options(3) "\${motionDetectorOptionNotTilted}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_C - if { [info exists ps($param)] == 1 } { - - set paramVisible "hidden" - - if {$operationMode == 3} { - set paramVisible "" - } - - incr prn - append html "" - append html "\${motionDetectorMessageTilted}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_2}" - set options(2) "\${motionDetectorOptionMotion_2}" - set options(3) "\${motionDetectorOptionNotTilted}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - - set param NOTIFICATION_SOUND_TYPE_LOW_TO_HIGH - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorNotificationMovement_$operationMode}" - array_clear options - set options(0) "\${stringTableSoundNoSound}" - set options(1) "\${stringTableSoundShort}" - set options(2) "\${stringTableSoundShortShort}" - set options(3) "\${stringTableSoundLong}" - set options(4) "\${stringTableSoundLongShort}" - set options(5) "\${stringTableSoundLongLong}" - set options(6) "\${stringTableSoundLongShortShort}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param NOTIFICATION_SOUND_TYPE_HIGH_TO_LOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorNotificationNoMovement_$operationMode}" - array_clear options - set options(0) "\${stringTableSoundNoSound}" - set options(1) "\${stringTableSoundShort}" - set options(2) "\${stringTableSoundShortShort}" - set options(3) "\${stringTableSoundLong}" - set options(4) "\${stringTableSoundLongShort}" - set options(5) "\${stringTableSoundLongLong}" - set options(6) "\${stringTableSoundLongShortShort}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorSensorSensivity}" - array_clear options - set options(0) "\${motionDetectorSensorRange16G}" - set options(1) "\${motionDetectorSensorRange8G}" - set options(2) "\${motionDetectorSensorRange4G}" - set options(3) "\${motionDetectorSensorRange2G}" - set options(4) "\${motionDetectorSensorRange2GPlusSens}" - set options(5) "\${motionDetectorSensorRange2G2PlusSense}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 170]" - append html "" - } - - set param TRIGGER_ANGLE - if { [info exists ps($param)] == 1 } { - - if {[info exists ps(TRIGGER_ANGLE_2)] == 1} { - global valTriggerAngle2 - set valTriggerAngle2 $ps(TRIGGER_ANGLE_2) - } - - incr prn - append html "" - append html "\${motionDetectorTriggerAngle}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 100]" - append html "" - } - - set param TRIGGER_ANGLE_2 - if { [info exists ps($param)] == 1 } { - global valTriggerAngle - set paramVisible "hidden" - set valTriggerAngle $ps(TRIGGER_ANGLE) - - if {$operationMode == 3} { - set paramVisible "" - } - incr prn - append html "" - append html "\${motionDetectorTriggerAngle2}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 100]" - append html "" - } - - return $html -} - -proc getClimateControlFloorDirectTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set CHANNEL $special_input_id - - set html "" - set prn 0 - - puts "" - - set param COOLING_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCoolingDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param HEATING_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param FLOOR_HEATING_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableFloorHeatingMode}" - option FLOOR_HEATING_MODE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param HEATING_MODE_SELECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingModeSelection}" - option HEATING_MODE_SELECTION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param FROST_PROTECTION_TEMPERATURE - if { [info exists ps($param)] == 1 } { - set min [expr {[expr [getMinValue $param]]}] - set max [expr {[expr [getMaxValue $param]]}] - - array_clear options - set options(1.5) \${optionNotActive} - for {set val $min} {$val <= $max} {set val [expr $val + 0.5]} { - if {$val != 1.5} { - set options($val) "$val" - } - } - - incr prn - append html "" - append html "\${stringTableFrostProtectionTemperature}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getUnit $param]" - append html "" - } - - set param HEATING_VALVE_TYPE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingValveType}" - option NORMALLY_CLOSE_OPEN - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param HUMIDITY_LIMIT_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHumidityLimitDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param HUMIDITY_LIMIT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHumidityLimitValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param MINIMAL_FLOOR_TEMPERATURE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMinimalFloorTemperature}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param CLIMATE_CONTROL_TYPE - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - incr prn - append html "" - append html "\${lblOperationMode}" - array_clear options - set options(0) "\${optionPWMControl}" - set options(1) "\${optionTwoPointControl}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param TWO_POINT_HYSTERESIS - if {[info exists ps($param)] == 1} { - incr prn - array_clear options - for {set val 0.2} {$val <= 2.0} {set val [expr $val + 0.2]} { - set options($val) "$val K" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - -####################################################################################### - append html "[getHorizontalLine]" - - # SWITCHING_INTERVAL_BASE and INTERVAL_FACTOR - - incr prn - append html "" - append html "\${lblDecalcificationInterval}" - append html [getComboBox $chn $prn "$specialID" "switchingInterval"] - append html "" - - set param SWITCHING_INTERVAL_BASE - append html [getTimeUnitComboBoxB $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param SWITCHING_INTERVAL_FACTOR - append html "" - append html "\${stringTableSwitchingIntervalValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # END SWITCHING_INTERVAL_BASE and INTERVAL_FACTOR - - # ON_TIME_BASE and ON_TIME_FACTOR - - incr prn - append html "" - append html "\${stringTableOnTime}" - append html [getComboBox $chn $prn "$specialID" "switchingIntervalOnTime"] - append html "" - - set param ON_TIME_BASE - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param ON_TIME_FACTOR - append html "" - append html "\${stringTableOnTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # END ON_TIME_BASE and ON_TIME_FACTOR - - return $html -} - - -proc getClimateHeatDemandBoilerTransmitter {chn p descr} { - - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - set chn [getChannel $special_input_id] - - set specialID "[getSpecialID $special_input_id]" - - set helpDlgWidth 450 - set helpDlgHeight 170 - - set html "" - - puts "" - - # ONDELAY_TIME_BASE / ONDELAY_TIME_FACTOR - set param ONDELAY_TIME_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableOnDelay}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param ONDELAY_TIME_FACTOR - append html "" - append html "\${stringTableOnDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # OFFDELAY_TIME_BASE / OFFDELAY_TIME_FACTOR - incr prn - append html "" - append html "\${stringTableOffDelay}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - append html "" - - set param OFFDELAY_TIME_BASE - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param OFFDELAY_TIME_FACTOR - append html "" - append html "\${stringTableOffDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } else { - append html "[getNoParametersToSet]" - } - return $html -} - -proc getShutterContact {chn p descr} { - global env - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set CHANNEL $special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set html "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_FILTER_NUMBER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventFilterTimeA}" - append html [getComboBox $chn $prn "$specialID" "eventFilterTime"] - append html "" - - append html [getEventFilterNumber $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_FILTER_PERIOD - append html "" - append html "\${stringTableEventFilterPeriodA}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon $param]" - - append html "" - append html "
" - append html "" - } - - set param SAMPLE_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${genericSampleInterval}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "[getHelpIcon $param]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" - set options(1) "\${stringTableShutterContactMsgPosA1}" - set options(2) "\${stringTableShutterContactMsgPosA3}" - append html "\${stringTableShutterContactHmIPMsgPosA0}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" - set options(1) "\${stringTableShutterContactMsgPosA1}" - set options(2) "\${stringTableShutterContactMsgPosA3}" - append html "\${stringTableShutterContactHmIPMsgPosB0}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - # append html "[getAlarmPanel ps]" - - return $html -} - -proc getPassageDetector {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - - set param ATC_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "\${stringTableATCMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"setATCAdatptionInterval()\"]" - append html "" - } - - set param ATC_ADAPTION_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${optionUnit15M}" - set options(1) "\${optionUnit30M}" - set options(2) "\${optionUnit60M}" - set options(3) "\${optionUnit120M}" - append html "\${stringTableATCAdaptionInterval}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - - append html "[getHorizontalLine "name=\"paramATCAdaptionInterval\" class=\"hidden\""]" - - append html "" - } - - set param EVENT_BLINDTIME_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventBlindTime}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - - # param = EVENT_BLINDTIME_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_BLINDTIME_VALUE - append html "" - append html "\${stringTableBlindTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_TIMEOUT_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventTimeoutPassageDetector}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - - #param = EVENT_TIMEOUT_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_TIMEOUT_VALUE - append html "" - append html "\${stringTableEventTimeoutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSensorSensivity}" - option RAW_0_100Percent - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - return $html -} - -proc getPassageDetectorDirectionTransmitter {chn p descr} { - global env - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - - set lblPassageDetection "\${stringTablePassageDetectionRight}" - - if { ! [catch {set tmp $ps(COND_TX_DECISION_BELOW)}] } { - set lblPassageDetection "\${stringTablePassageDetectionLeft}" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "$lblPassageDetection" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showDecisionValue(this.value,$chn)\"] - append html "" - } - - if {[session_is_expert]} { - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondValuePassageDetectionRight}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondValuePassageDetectionLeft}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - } - - # append html "[getAlarmPanel ps]" - - append html "" - - return $html -} - -proc getPassageDetectorCounterTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - puts "" - - set html "" - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "1 - \${optionInactiv}" - set options(1) "2 - \${optionPassageCounterDetectionLR}" - set options(2) "3 - \${optionPassageCounterDetectionL}" - set options(3) "4 - \${optionPassageCounterDetectionR}" - # set options(4) "5 - \${optionPassageCounterDeltaLR}" - set options(5) "5 - \${optionPassageCounterDeltaL}" - set options(6) "6 - \${optionPassageCounterDeltaR}" - append html "" - append html "\${stringTablePassageDetectorCounterTransmitterChannelOperationMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showOpModesValues(this.value,$chn)\"] [getHelpIcon SPDR_CHANNEL_MODE]" - append html "" - } - - if {[session_is_expert]} { - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - } - - append html "[getHorizontalLine id=\"condTxHorizontalLine_$chn\"]" - append html "\${numberOfPassesBeforeSendingDecisionVal}" - append html "\${deltaOfPassesBeforeSendingDecisionVal}" - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - append html "" - - return $html -} - -proc getStateResetReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set prn 0 - set html "" - - puts "" - - incr prn - append html "" - append html "\${stringTableBlockingPeriod}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "[getHelpIcon BLOCKING_PERIOD]" - append html "" - - set param BLOCKING_PERIOD_UNIT - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param BLOCKING_PERIOD_VALUE - append html "" - append html "\${stringTableBlockingPeriodValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - return $html -} - -proc getWaterDetectionTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set prn 0 - set html "" - - # puts "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_FILTER_NUMBER - if { [info exists ps($param)] == 1 } { - incr prn - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - - append html "" - append html "\${stringTableEventFilterNumber}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_motionDetect $hlpBoxWidth $hlpBoxHeight]" - append html "" - } - - set param EVENT_FILTER_PERIOD - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorFilterPeriod}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param ACOUSTIC_ALARM_SIGNAL - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAlarmDisableAcousticSignal}" - set options(1) "\${stringTableAlarmFrequencyRising}" - set options(2) "\${stringTableAlarmFrequencyFalling}" - set options(3) "\${stringTableAlarmFrequencyRisingAndFalling}" - set options(4) "\${stringTableAlarmFrequencyAlternatingLowHigh}" - set options(5) "\${stringTableAlarmFrequencyAlternatingLowMidHigh}" - set options(6) "\${stringTableAlarmFrequencyHighOnOff}" - set options(7) "\${stringTableAlarmFrequencyHighOnLongOff}" - set options(8) "\${stringTableAlarmFrequencyLowOnOffHighonOff}" - set options(9) "\${stringTableAlarmFrequencyLowOnLongOffHighOnLongOff}" - append html "\${stringTableSoundID}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - - } - set param ACOUSTIC_ALARM_TIMING - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAlarmPermanent}" - set options(1) "\${stringTableAlarmThreeMinutes}" - set options(2) "\${stringTableAlarmSixMinutes}" - set options(3) "\${stringTableAlarmOncePerMinute}" - append html "\${lblAlarmTiming}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param ACOUSTIC_ALARM_TRIGGER - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableNoAcousticAlarm}" - set options(1) "\${stringTableTriggerEvent1}" - set options(2) "\${stringTableTriggerEvent2}" - set options(3) "\${stringTableTriggerEvent1_2}" - append html "\${lblAlarmTrigger}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param TRIGGER_ANGLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorTriggerAngle}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - append html "" - append html "" - append html "" - - append html "" - - - set param MSG_FOR_POS_B ;# B = Dry - if { [info exists ps($param)] == 1 } { - incr prn - - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Dry}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_C ;# C = Moisture - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Moisture}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_A ;# A = Waterlevel - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Water}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - } - - # append html "[getAlarmPanel ps]" - - return $html -} - -proc getDoorReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getSimpleSwitchReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getAcousticSignalTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getAcousticSignalVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorAcousticSignal $chn ps $special_input_id] - } - return $html -} - -proc getRainDetectionTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - } - - set param EVENT_TIMEOUT_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventTimeoutRainDetector}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - # append html "[getHelpIcon $param]" - append html "" - - #param = EVENT_TIMEOUT_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_TIMEOUT_VALUE - append html "" - append html "\${stringTableEventTimeoutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param SAMPLE_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${rainDetectorSampleInterval}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - # append html "[getHelpIcon $param]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSensorSensivity}" - option RAW_0_100Percent - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_rain]" - append html "" - } - return $html - -} - -proc getDoorLockStateTransmitter {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param POWERUP_ONTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableAutoRelockDelay}" - append html "[getComboBox $chn $prn "$specialID" "timeOnOff"][getHelpIcon $param 320 170]" - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param POWERUP_ONTIME_VALUE - append html "" - append html "\${stringTableOnTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param DOOR_LOCK_DIRECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockDirection}" - array_clear options - set options(0) "\${lblRight}" - set options(1) "\${lblLeft}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_TURNS - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableDoorLockTurns}" - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_NEUTRAL_POS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockNeutralPos}" - array_clear options - set options(0) "\${lblVerticalA}" - set options(1) "\${lblHorizontalA}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - append html "[getHorizontalLine]" - - set param DOOR_LOCK_END_STOP_OFFSET_LOCKED - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableKeyMaticAngleMax}" - option DOOR_LOCK_ANGLE_RANGE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_END_STOP_OFFSET_OPEN - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableKeyMaticAngleOpen}" - option DOOR_LOCK_ANGLE_RANGE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param HOLD_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockHoldTime}" - array_clear options - set options(0) "\${optionOpenOnly}" - #set options(1) "\${optionNormal}" - set options(30) "\${optionLongA}" - set options(50) "\${optionExtraLong}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"showHintHoldTime($prn)\"] [getHelpIcon DOOR_LOCK_$param 320 75]" - append html "" - append html "\${hintDoorLockHoldTime}" - - append html "" - - } - - set param DISABLE_ACOUSTIC_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDisableDoorLockAcousticChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon DOOR_LOCK_$param 320 75]" - append html "" - set specialParam 1 - } - - return $html -} - -proc getDoorLockStateTranseiver {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - - set param DOOR_LOCK_DIRECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockDirection}" - array_clear options - set options(0) "\${lblRight}" - set options(1) "\${lblLeft}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_1 320 75]" - append html "" - } - - set param DOOR_LOCK_TURNS - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableDoorLockTurns}" - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_NEUTRAL_POS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockNeutralPos}" - array_clear options - set options(0) "\${lblVertical}" - set options(1) "\${lblHorizontal}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableTiltSensorMsgPosA2}" - set options(1) "\${stringTableDoorLockStateTransmitterLockStateLocked}" - set options(2) "\${stringTableDoorLockStateTransmitterLockStateUnlocked}" - append html "\${stringTableDoorLockStateTransceiverMsgPosA}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableTiltSensorMsgPosA2}" - set options(1) "\${stringTableDoorLockStateTransmitterLockStateLocked}" - set options(2) "\${stringTableDoorLockStateTransmitterLockStateUnlocked}" - append html "\${stringTableDoorLockStateTransceiverMsgPosB}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - return $html -} - -proc getOpticalSignalReceiver {chn p descr} { - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - - return $html - -} - -proc getCarbonDioxideReceiver {chn p descr} { - global env dev_descr - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - set prn 0 - - set param INTERVAL_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${lblAutoCalibration}" - # append html "[getCheckBox 'autoCalibration' $ps($param) $chn $prn onchange=setCO2AutoCalibration(this);]" - append html " [getHelpIcon CALIBRATION_PPM]" - append html "" - - - # Wert = VAL * 10 ^ EXP - set param CALIBRATION_PPM_VAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblCalibrationValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - set comment { # The exponent is currently not in use - set param CALIBRATION_PPM_EXP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear option - set option(0) "1" - set option(1) "10" - set option(2) "100" - set option(3) "1000" - append html "  x [getOptionBox '$param' option $ps($param) $chn $prn] [getHelpIcon CALIBRATION_PPM]" - } - } - append html "" - append html "" - } - - # ******* Automatic Calibration ********* - - set param INTERVAL_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - - set param INTERVAL_VALUE - append html "" - append html "\${stringTableCalibrationIntervalValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]   x " - - incr prn - set param INTERVAL_UNIT - array_clear options - set options(0) "not active" - set options(4) "\${optionUnitH}" - set options(5) "\${optionUnitD}" - set options(6) "\${optionUnit7D}" - set options(7) "\${optionUnit28D}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - - - append html "" - - } -} - return $html -} - -proc getServoTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "\${lblChannelActivInactiv}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - append html "[getHorizontalLine]" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblRotationSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param\_SERVO]" - append html "" - } - - set param POWER_OFFDELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableServoPowerOff}" - append html "[getComboBox $chn $prn "$specialID" "timeOnOff"]" - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param POWER_OFFDELAY_VALUE - append html "" - append html "\${stringTableOffDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - return $html -} - -proc getServoVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - return $html -} - -proc getAccessTransceiver {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - set min 1 - set max 21 - - # ABORT_EVENT_SENDING_CHANNELS - set colspanAESC 21 - set colspanAESC_A 5 - set colspanAESC_B 21 - - set devType $dev_descr(TYPE) - - if {[string equal $devType "HmIP-WKP"] == 1} { - set colspanAESC 16 - set colspanAESC_A 0 - set colspanAESC_B 0 - } - - set checked "" - - set param NUMERIC_PIN_CODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableNumericPinCode}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - } - - set param INPUT_SELECT_FIELD - if { [info exists ps($param)] == 1 } { - incr prn - append html "\${thEntitlement}" - append html "" - append html "\${lblCode}" - for {set loop $min} {$loop <= $max -1 } {incr loop 1} { - set val [expr {int(pow(2,[expr $loop - 1]))}] - append html "" - append html "" - append html "" - append html "" - } - append html "" - append html "" - append html "" - append html "" - - append html "
" - - append html "" - append html "\${lblBellButton}" - append html "" - set val [expr {int(pow(2,[expr $max - 1]))}] - # append html "" - # append html "" - append html "" - # append html "" - append html "" - append html "" - - - - append html "" - - - append html "
" - } - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - - if {[string equal $devType "HmIP-WKP"] == 1} { - if { [info exists ps(NUMERIC_PIN_CODE)] != 1 } { - append html "\${lblPinOfChannelLockA} [expr $chn / 2] \${lblPinOfChannelLockB}" - append html "
" - } - } - - incr prn - append html "" - append html "\${stringTableAbortEventSendingChannelsAccessTransceiver} [getHelpIcon $param\_ACCESS_TRANSCEIVER]" - append html "" - - append html "" - append html "\${lblStopRunningLinkAccessTransceiver}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - - - return $html -} - -proc getSmokeDetector {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - set groupExists 1 - - set param GROUP_1 - - if { [info exists ps($param)] == 1 } { - # Help - append html "" - append html "" - append html "\${GROUP_SMOKE_DETECTOR}" - append html "" - append html "" - } - - append html "" - append html "" - append html "" - append html "" - append html "" - } else { - set groupExists 0 - } - } - - set param "REPEAT_ENABLE" - if { [info exists ps($param)] == 1 } { - incr prn - if { [info exists ps(GROUP_1)] == 1 } { - append html "" - } - append html "" - append html "" - append html "" - } - - append html "
" - for {set val 1} {$groupExists == 1} {incr val} { - if { [info exists ps(GROUP_$val)] == 1 } { - incr prn - append html "
\${lblGroup}_$val[getCheckBox 'GROUP_$val' $ps(GROUP_$val) $chn $prn]

\${stringTableSmokeDetectorRepeatEnable}[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]
" - return $html -} - -proc getWindowDriveReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - append html [getPowerUpSelector $chn ps $special_input_id] - } - -} - -proc getNoParametersToSet {} { - set html "
\${deviceAndChannelParamsLblNoParamsToSet}
" - # center content - append html "" - return $html -} diff --git a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig b/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig deleted file mode 100755 index 300ee2bad7..0000000000 --- a/buildroot-external/patches/occu/0129-WebUI-Fix-RemoveHeatGroupDebug/occu/WebUI/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig +++ /dev/null @@ -1,5511 +0,0 @@ -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/uiElements.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmip_helper.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/options.tcl] -source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipDRAP_HAPMaintenance.tcl] -# source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - -proc getMaintenance {chn p descr address} { - - global dev_descr env iface - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - - set devIsHmIPWired [isDevHmIPW $devType] - - set cyclicInfo false - - set specialID "[getSpecialID $special_input_id]" - set html "" - - set CHANNEL $special_input_id - - puts "" - - if {([string equal $devType "HmIP-CCU3"] == 1) || ([string equal $devType "RPI-RF-MOD"] == 1)} { - append html "[getNoParametersToSet]" - return $html - } - - set param CYCLIC_INFO_MSG - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - append html "" - append html "\${stringTableCyclicInfoMsg}" - append html "[getCheckBoxCyclicInfoMsg $param $ps($param) $chn $prn]" - append html "" - } - - set param CYCLIC_INFO_MSG_DIS - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - incr prn - append html "" - append html "\${stringTableCyclicInfoMsgDis}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param CYCLIC_INFO_MSG_DIS_UNCHANGED - if { [info exists ps($param)] == 1 } { - set cyclicInfo true - incr prn - append html "" - append html "\${stringTableCyclicInfoMsgDisUnChanged}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - if {$cyclicInfo == "true"} { - append html "[getHorizontalLine]" - } - - if {[string equal $devType "HmIP-RGBW"] != 1} { - set param OVERTEMP_LEVEL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerOverTempLevel}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - } - - set param DEVICE_OPERATION_MODE - if {[info exists ps($param)] == 1} { - if {[string equal $devType "HmIP-RGBW"] == 1} { - incr prn - append html "" - append html "\${lblMode}" - array_clear options - set options(0) "\${optionRGBW}" - set options(1) "\${optionRGB}" - set options(2) "\${option2xTunableWhite}" - set options(3) "\${option4xPWM}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_RGBW]" - - append html "" - - # Check if links or programs exist - set linksAvailable 0 - set parentAddress $dev_descr(ADDRESS) - - for {set loop 1} {$loop <= 4} {incr loop} { - set chnAddress "$parentAddress:[expr $chn + $loop]" - if {[getLinkCountByAddress $iface $chnAddress] > 0} { - set linksAvailable 1 - break; - } - } - - append html "" - append html "" - append html "" - - append html "" - - append html "" - - append html "[getHorizontalLine]" - } - } - - set param LOW_BAT_LIMIT - if { [info exists ps($param)] == 1 } { - # SPHM-875 - if {([string equal $devType "HmIP-SWO-PL"] != 1) && ([string equal $devType "HmIP-SWO-PR"] != 1) && ([string equal $devType "HmIP-SWO-B"] != 1)} { - incr prn - append html "" - append html "\${stringTableBatteryLowBatLimit}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - } - - set param LOCAL_RESET_DISABLED - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLocalResetDisable}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param GLOBAL_BUTTON_LOCK - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableGlobalButtonLock}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - if {([string equal $devType "HmIPW-DRAP"] != 1) && ([string equal $devType "HmIP-HAP"] != 1) && ([string equal $devType "HmIP-HAP-B1"] != 1) && ([string equal $devType "HmIP-HAP JS1"] != 1)} { - set param ROUTER_MODULE_ENABLED - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRouterModuleEnabled}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - - set param MULTICAST_ROUTER_MODULE_ENABLED - if { [info exists ps($param)] == 1} { - incr prn - append html "" - append html "\${stringTableMulticastRouterModuleEnabled}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param 600 300]" - append html "" - } - - set param ENABLE_ROUTING - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableEnableRouting}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - - set param DISABLE_DEVICE_ALIVE_SIGNAL - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableDisableDeviceAliveSignal}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } - -set comment { - # This parameter shouldn't be visible in the WebUI. This was once clarified with the PM - set param DISABLE_MSG_TO_AC - if { [info exists ps($param)] == 1} { - if {$devIsHmIPWired == "false"} { - incr prn - append html "" - append html "\${stringTableDisableMsgToAC}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - } -} - - set param DEVICE_SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1} { - incr prn - # HmIP-STI = 0 - 4 - for {set val 0} {$val <= 4} {incr val} { - set options($val) "[expr $val + 1]" - } - append html "" - append html "\${stringTableDeviceSensorSensibility}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param DISPLAY_CONTRAST - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - if {([string equal $devType "HmIP-eTRV-3"] == 1) || ([string equal $devType "HmIP-eTRV-E"] == 1) || ([string equal $devType "HmIP-eTRV-E-S"] == 1) || ([string equal $devType "HmIP-eTRV-E-A"] == 1) } { - set optVal 0 - for {set val 1} {$val <= 16} {incr val} { - if {$val < 7} {incr optVal 5} elseif {$val < 14} {incr optVal 10} else {incr optVal 20} - set options($optVal) "$val" - } - } else { - # This is currently in use for the HmIPW-DRAP - for {set val 0} {$val <= 31} {incr val} { - set options($val) "$val" - } - } - - append html "" - append html "\${stringTableDisplayContrast}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - } - - set param BACKLIGHT_ON_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDisplayLightingDuration}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param SIGNAL_BRIGHTNESS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBrightnessVisKey}" - option RAW_0_100Percent_1 - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MOUNTING_ORIENTATION - if { [info exists ps($param)] == 1 } { - incr prn - if {([string first "HmIP-BBL" $devType] == -1) && ([string first "HmIP-BROLL" $devType] == -1) } { - append html "" - append html "\${lblMountingOrientation}" - array_clear options - set options(0) "\${stringTableWinMaticMountSideLeft}" - set options(1) "\${stringTableWinMaticMountSideRight}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } else { - append html "" - append html "\${lblMountingOrientationA}" - array_clear options - set options(0) "\${option0Degree}" - set options(1) "\${option90Degree}" - set options(2) "\${option180Degree}" - set options(3) "\${option270Degree}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" - append html "" - } - } - - set param PERMANENT_FULL_RX - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - incr prn - array_clear options - set options(0) "\${operationModeBattery}" - set options(1) "\${operationModeMains}" - append html "" - append html "\${powerSupply}" - if {([string equal $devType "HmIP-SMI55"] == 1) || ([string equal $devType "HmIP-SMI55-2"] == 1)} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=paramPermanentFullRXChanged(this.id\,this.value)] [getHelpIcon $param]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=showParameterHint(this.id\,this.value)]" - } - append html "" - - if {([string equal $devType "HmIP-SMI55"] == 1) || ([string equal $devType "HmIP-SMI55-2"] == 1)} { - append html "" - append html "\${hintPERMANENT_FULL_RX}" - append html "" - } else { - append html "[getHorizontalLine]" - } - - append html "" - } - - # DRAP/HAP Integration # - if {([string equal $devType "HmIPW-DRAP"] == 1) || ([string equal $devType "HmIP-HAP"] == 1) || ([string equal $devType "HmIP-HAP-B1"] == 1) || ([string equal $devType "HmIP-HAP JS1"] == 1)} { - append html "[getDRAP_HAPMaintenance $chn ps psDescr]" - } - # End DRAP/HAP Integration # - - - if {[string equal $devType "HmIP-DLD"] != 1} { - set param LONGITUDE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblLocation} - \${dialogSettingsTimePositionLblLongtitude}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - - set param LATITUDE - incr prn - append html "" - append html "\${lblLocation} - \${dialogSettingsTimePositionLblLatitude}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - } - - ### Blocking ### - set param BLOCKING_ON_SABOTAGE - if { [info exists ps($param)] == 1 } { - incr prn - append html "[getHorizontalLine]" - append html "" - append html "\${stringTableBlockingOnSabotage}" - - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param\_FWI]" - } else { - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - } - - append html "" - } - - set param SABOTAGE_CONTACT_TYPE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSabotageContactType}" - option NORMALLY_CLOSE_OPEN - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param BLOCKING_TEMPORARY - if { [info exists ps($param)] == 1 } { - set min [expr {[expr int([getMinValue $param]) + 1]}] - set max [expr {[expr int([getMaxValue $param])]}] - - array_clear options - set options(0) \${optionNotActive} - for {set val $min} {$val <= $max} {incr val} { - set options($val) "$val" - } - incr prn - append html "" - append html "\${stringTableBlockingTemporary}" - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_FWI]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - } - append html "" - } - - set param BLOCKING_PERMANENT - if { [info exists ps($param)] == 1 } { - set min [expr {[expr int([getMinValue $param]) + 1]}] - set max [expr {[expr int([getMaxValue $param])]}] - - array_clear options - set options(0) \${optionNotActive} - for {set val $min} {$val <= $max} {incr val} { - set options($val) "$val" - } - incr prn - append html "" - append html "\${stringTableBlockingPermanent}" - if {[string equal $devType "HmIP-FWI"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_FWI]" - } elseif {[string equal $devType "HmIP-WKP"] == 1} { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_WKP]" - } else { - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - } - append html "" - append html "[getHorizontalLine]" - } - ### End Blocking ### - - - - if {[session_is_expert]} { - append html "" - } - - return $html -} - -proc getKeyTransceiver {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 1 - - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${lblChannelActivInactiv}" - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - incr prn - } - -set comment { - # Intruduced with the DBB but currently not supported - set param DISABLE_ACOUSTIC_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableDisableAcousticChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } -} - - set param DISABLE_ACOUSTIC_SENDSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableDisableAcousticSendState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - - set param LED_DISABLE_SENDSTATE - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableLEDDisableSendState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - incr prn - } - - # This is for the display configuration for the keys of a ACOUSTIC_DISPLAY_RECEIVER (e. g. HmIP-WRCD) - set paramText TEXT - set paramIcon TEXT_ICON - if {(! [catch {set tmp $ps($paramText)}]) && (! [catch {set tmp $ps($paramIcon)}])} { - set psText $ps(TEXT) - set psAlignment $ps(TEXT_ALIGNMENT) - set psBgColor $ps(TEXT_BACKGROUND_COLOR) - set psTextColor $ps(TEXT_COLOR) - set psIcon $ps(TEXT_ICON) - append html [getAcousticdDisplayReceiverConfig $special_input_id $chn $psText $psAlignment $psBgColor $psTextColor $psIcon] - - set specialParam 1 - } - - if {$specialParam == 1} { - append html "[getHorizontalLine]" - } - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - incr prn - } - - set param LONG_PRESS_TIME - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - incr prn - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - if {[string equal $dev_descr(TYPE) "HmIP-STI"] == 0} { - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "timeOnOffShort"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } else { - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - # append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - append html " [getUnit $param]" - append html "" - append html "" - append html "" - - append html "" - } - } - - # append html "[getAlarmPanel ps]" - - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - incr prn - - append html "[getHorizontalLine]" - - append html "" - append html "\${stringTableAbortEventSendingChannels} [getHelpIcon $param]" - append html "" - - append html "" - append html "\${lblStopRunningLink}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - return $html -} - -proc getGenericInputTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - puts "" - - set param MIOB_DIN_CONFIG - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMiobDinConfig}" - option MIOB_DIN_CONFIG - append html "[getOptionBox '$param' options $ps($param) $chn $prn "onchange=\"showHideKeyParams($chn);\""]" - append html "" - } - - set param MIOB_DIN_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMiobDinMode}" - option NORMALLY_OPEN_CLOSE - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - incr prn - set param LONG_PRESS_TIME - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - } - - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - append html "" - - return $html -} - -proc getMultiModeInputTransmitter {chn p descr address} { - - global dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 80 - set eventDelayPrn 0 - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - set valueListIndex [expr [lsearch $psDescr($param) VALUE_LIST] +1] - set valueList "[lindex $psDescr($param) $valueListIndex]" - incr prn - append html "" - append html "\${stringTableKeyTransceiverChannelOperationMode}" - array_clear options - set options(0) "\${lblNotActiv}" - set options(1) "\${stringTableKeyTransceiverChannelOperationModeKeyBehavior}" - set options(2) "\${stringTableKeyTransceiverChannelOperationModeSwitchBehavior}" - - if {[lsearch $valueList BINARY_BEHAVIOR] != -1} { - set options(3) "\${stringTableKeyTransceiverChannelOperationModeBinaryBehavior}" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"channelOperationModeChange(this.value,'$address')\"]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - set eventDelayPrn $prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - -# ** KEY ** - - set param DBL_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyDblPressTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param LONG_PRESS_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeA}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - } - - set param REPEATED_LONG_PRESS_TIMEOUT_UNIT - if { [info exists ps($param)] == 1 } { - - incr prn - append html "" - append html "\${stringTableKeyLongPressTimeOut}" - append html [getComboBox $chn $prn "$specialID" "timeOnOffShort"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REPEATED_LONG_PRESS_TIMEOUT_VALUE - append html "" - append html "\${stringTableKeyLongPressTimeOutValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - - } - -# ** END KEY ** - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableShutterContactHmIPMsgPosA0}" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" ; # NO_MSG - set options(1) "\${stringTableShutterContactMsgPosA1}" ; # CLOSED - set options(2) "\${stringTableShutterContactMsgPosA3}" ; # OPEN - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableShutterContactHmIPMsgPosB0}" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" ; # NO_MSG - set options(1) "\${stringTableShutterContactMsgPosA1}" ; # CLOSED - set options(2) "\${stringTableShutterContactMsgPosA3}" ; # OPEN - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param CONTACT_BOOST - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableContactBoost}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - incr prn - - append html "[getHorizontalLine]" - - append html "" - append html "\${stringTableAbortEventSendingChannels} [getHelpIcon $param]" - append html "" - - append html "" - append html "\${lblStopRunningLink}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - - - - append html "" - - return $html -} - -proc getAnalogInputTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set prn 1; - set param FILTER_SIZE - append html "" - append html "\${stringTableAnalogInputTransmitterFilterSize}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon $param\_ANALOG_INPUT_TRANSMITTER 550 250]" - append html "" - - return $html -} - -proc getAnalogOutputTransceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param VOLTAGE_0 - append html "" - append html "\${stringTableVoltage0}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - - incr prn - set param VOLTAGE_100 - append html "" - append html "\${stringTableVoltage100}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] []" - append html "" - - return $html -} - -proc getSwitchTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param CURRENTDETECTION_BEHAVIOR - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableCurrentDetectionBehavior}" - array_clear option - set option(0) "\${stringTableCurrentDetectionBehaviorActive}" - set option(1) "\${stringTableCurrentDetectionBehaviorOutput1}" - set option(2) "\${stringTableCurrentDetectionBehaviorOutput2}" - append html "[getOptionBox '$param' option $ps($param) $chn $prn]" - append html "" - incr prn - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - return $html -} - -proc getClimateReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - - set html "" - - puts "" - - set param TEMPERATURE_OFFSET - append html "" - array_clear options - for {set val -3.5} {$val <= 3.5} {set val [expr $val + 0.5]} { - set options($val) "$val °C" - } - append html "\${stringTableTemperatureOffset}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]" - append html "" - - return $html -} - -proc getBlindTransmitter {chn p descr address} { - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set parent [lindex [split $address :] 0] - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - set fwPatch [lindex $Fw 2] - - puts "" - - puts "
$parent
" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblOutputSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANGE_OVER_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindChangeOverDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - } - - set param REFERENCE_RUN_COUNTER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRefRunCounter}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - } - - set param ENDPOSITION_AUTO_DETECT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindEndPositionAutoDetect}" - append html "[getCheckBox '$param' $ps($param) $chn $prn onchange=setVisibilityAutoCalibration(this);]" - append html "" - } - - append html "[getHorizontalLine]" - - set cssAutoCalibration "hidden" - if {$fwMajor == 1 && $fwMinor == 0 && $fwPatch <= 10 } { - # set cssAutoCalibration "" - } - - # AUTOCALIBRATION - append html "" - append html "\${stringTableSelfCalibrationStart}" - append html "[getHelpIcon BLIND_AUTOCALIBRATION]" - append html "" - append html "" - - append html "" - append html "\${lblAutoCalibrationActiv}" - append html "
" - append html "" - - append html "" - - # /AUTOCALIBRATION - - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunnintTimeBottomTop}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunningTimeTopBottom}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_SLATS_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableJalousieRunningTimeSlats}" - append html [getComboBox $chn $prn "$specialID" "slatRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_SLATS_VALUE - append html "" - append html "\${stringTableTimeSlatsValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param DELAY_COMPENSATION - if { [info exists ps($param)] == 1 } { - # The max value represents the automatic modus. - set autoDelayCompensation 0 - incr prn - - set bckColor "silver" - append html "" - append html "\${stringTableBlindDelayCompensation}" - append html "" - - append html "" - if {[format {%1.1f} $ps($param)] == [getMaxValue $param]} {set autoDelayCompensation 1} - append html "\${btnAutoDetect}" - append html "[getCheckBox '_$param' $autoDelayCompensation $chn tmp onchange=setAutoDelayCompensation(this);] [getHelpIcon $param]" - append html "" - - # Hide this while in auto mode - append html "" - append html "\${lblTimeDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - append html "" - } - - # append html "
" - append html "" - - return $html -} - -proc getShutterTransmitter {chn p descr address} { - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set parent [lindex [split $address :] 0] - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - set fwPatch [lindex $Fw 2] - - puts "" - - puts "
$parent
" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblOutputSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param]" - append html "" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANGE_OVER_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindChangeOverDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - } - - set param REFERENCE_RUN_COUNTER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRefRunCounter}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - } - - set param ENDPOSITION_AUTO_DETECT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindEndPositionAutoDetect}" - append html "[getCheckBox '$param' $ps($param) $chn $prn onchange=setVisibilityAutoCalibration(this);]" - append html "" - } - - append html "[getHorizontalLine]" - - set cssAutoCalibration "hidden" - if {$fwMajor == 1 && $fwMinor == 0 && $fwPatch <= 10 } { - # set cssAutoCalibration "" - } - - # AUTOCALIBRATION - append html "" - append html "\${stringTableSelfCalibrationStart}" - append html "[getHelpIcon BLIND_AUTOCALIBRATION]" - append html "" - append html "" - - append html "" - append html "\${lblAutoCalibrationActiv}" - append html "
" - append html "" - - append html "" - # /AUTOCALIBRATION - - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunnintTimeBottomTop}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_BOTTOM_TOP_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableBlindRunningTimeTopBottom}" - append html [getComboBox $chn $prn "$specialID" "blindRunningTime"] - append html "" - - append html [getTimeUnit10ms_100ms_1s_10s $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param REFERENCE_RUNNING_TIME_TOP_BOTTOM_VALUE - append html "" - append html "\${stringTableTimeBottomTopValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "" - } - - append html "[getHorizontalLine]" - - set param DELAY_COMPENSATION - if { [info exists ps($param)] == 1 } { - # The max value represents the automatic modus. - set autoDelayCompensation 0 - incr prn - - set bckColor "silver" - append html "" - append html "\${stringTableBlindDelayCompensation}" - append html "" - - append html "" - if {[format {%1.1f} $ps($param)] == [getMaxValue $param]} {set autoDelayCompensation 1} - append html "\${btnAutoDetect}" - append html "[getCheckBox '_$param' $autoDelayCompensation $chn tmp onchange=setAutoDelayCompensation(this);] [getHelpIcon $param]" - append html "" - - # Hide this while in auto mode - append html "" - append html "\${lblTimeDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - - append html "" - - } - # append html "
" - - return $html -} - -proc getDimmerTransmitter {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - set devType $dev_descr(TYPE) - - set html "" - - set prn 0 - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - - set isWUA [string equal $devType "HmIP-WUA"] - set lblActivInactiv \${lblChannelActivInactiv} - - if {! $isWUA} { - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - } else { - set options(0) "\${optionRelayInactive}" - set options(1) "\${optionRelayOffDelay05S}" - set options(2) "\${optionRelayOffDelay1S}" - set options(3) "\${optionRelayOffDelay10S}" - - set lblActivInactiv \${lblChannelActivInactivWhenNoOutput} - } - - append html "$lblActivInactiv" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showDecisionValue(this.value,$chn)\"] - append html "" - } - - set param VOLTAGE_0 - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableVoltage0}" - append html "[getTextField $param $ps($param) $chn $prn proofMinMax4Voltage_X('$param');] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - } - - set param VOLTAGE_100 - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableVoltage100}" - append html "[getTextField $param $ps($param) $chn $prn proofMinMax4Voltage_X('$param')] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - - append html "" - - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - append html "" - } - - set param FUSE_DELAY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerFuseDelay}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param OVERTEMP_LEVEL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDimmerOverTempLevel}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - return $html -} - -proc getAlarmSwitchVirtualReceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - return $html -} - - proc getAlarmCondSwitchReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set specialID "[getSpecialID $special_input_id]" - set html "" - - set param SD_MULTICAST_ZONE_1 - if { [info exists ps($param)] == 1 } { - - # This is for the parameter SD_MULTICAST_ZONE_1..7 - append html "" - append html "\${paramSDMulticastZone}" - append html "" - append html "" - for {set loop 1} {$loop < 8} {incr loop} { - incr prn - set zoneActive "" - set checked "" - set zoneActive "$ps(SD_MULTICAST_ZONE_$loop)" - if {[string equal $zoneActive "1"] == 1} { - set checked "checked" - } - append html "" - append html "" - } - append html "" - append html "
" - append html "" - append html "[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]
" - append html "" - append html "" - } - - set param SILENT_ALARM_ZONE_1 - if { [info exists ps($param)] == 1 } { - - # This is for the parameter SILENT_ALARM_ZONE_1..7 - append html "" - append html "\${paramSilentAlarmZone}" - append html "" - append html "" - for {set loop 1} {$loop < 8} {incr loop} { - incr prn - set zoneActive "" - set checked "" - set zoneActive "$ps(SILENT_ALARM_ZONE_$loop)" - if {[string equal $zoneActive "1"] == 1} { - set checked "checked" - } - append html "" - append html "" - } - append html "" - append html "
" - append html "" - append html "[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]
" - append html "" - append html "" - } - return $html - } - - -proc getDimmerVirtualReceiver {chn p descr} { - - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set devType $dev_descr(TYPE) - - if {[session_is_expert]} { - set hr 0 - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - set hr 1 - append html "" - append html "\${stringTableLogicCombination} \${stringTableBrightness}" - array_clear options - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - - append html "" - } - - set param "LOGIC_COMBINATION_2" - if { [info exists ps($param)] == 1 } { - incr prn - set onClick "VirtualChannel_help($chn);" - set hr 1 - append html "" - append html "\${stringTableLogicCombination} \${stringTableColor}" - array_clear options - if {([string equal "HmIP-BSL" $devType] == 1) || ([string equal "HmIP-MP3P" $devType] == 1)} { - set onClick "VirtualChannel_help($chn,'lc2');" - option LOGIC_COMBINATION_NO_AND_OR - } else { - option LOGIC_COMBINATION - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - - append html "" - } - if {$hr == 1} { - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmerColor}
" - append html "" - - puts "" - - return $html -} - -proc getBlindVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - puts "" - - set html "" - - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombinationBlind}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - incr prn - set param "LOGIC_COMBINATION_2" - append html "" - append html "\${stringTableLogicCombinationSlat}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - append html "[getHorizontalLine]" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorShutterBlind $chn ps $special_input_id blind] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - puts "" - - return $html -} - -proc getShutterVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - puts "" - - set html "" - - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - append html "[getHorizontalLine]" - } - } - - set param POSITION_SAVE_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePositionSaveTime}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 50]" - append html "" - append html "[getHorizontalLine]" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorShutterBlind $chn ps $special_input_id shutter] - } - - #### HELP - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtDimmer}
" - append html "" - - puts "" - - return $html -} - -proc getHeatingClimateControlSwitchTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - - set climateFunction "" - - puts "" - set param CLIMATE_FUNCTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblOperationMode}" - array_clear options - set options(0) "\${optionThermostat}" - set options(1) "\${optionHygrostat}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=showRelevantParams(this.value)] [getHelpIcon $param]" - set climateFunction $ps($param) - append html "" - } - - set param HUMIDITY_LIMIT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - - if {$climateFunction == 1} {set paramVisibility ''} else {set paramVisibility 'hidden'} - - append html "" - append html "\${stringTableHumidityLimitValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" - append html "" - } - - set param TWO_POINT_HYSTERESIS - if {[info exists ps($param)] == 1} { - incr prn - if {$climateFunction == 0} {set paramVisibility ''} else {set paramVisibility 'hidden'} - array_clear options - for {set val 0.0} {$val <= 2.0} {set val [expr $val + 0.2]} { - set options($val) "$val K" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" - append html "" - } - - set param TWO_POINT_HYSTERESIS_HUMIDITY ;# See SPHM-911 and check the name of the parameter - if {[info exists ps($param)] == 1} { - incr prn - if {$climateFunction == 1} {set paramVisibility ''} else {set paramVisibility 'hidden'} - array_clear options - for {set val 0} {$val <= 10} {incr val} { - set options($val) "$val % rF" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param HEATING_COOLING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingCooling}" - array_clear options - if {$climateFunction == 1} { - set options(0) "\${optionDrying}" - set options(1) "\${optionMoistening}" - set options(2) "optionDryingMoistening" - } else { - set options(0) "\${optionHeating}" - set options(1) "\${optionCooling}" - set options(2) "\${optionHeatingCooling}" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A 600 300]" - append html "" - } - - append html "" - - return $html -} - -proc getHeatingClimateControlTransceiver {chn p descr address {extraparam ""}} { - global iface - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set isGroup "" - - if {[string equal [string range $address 0 2] "INT"] == 1} { - set isGroup "_group" - } - - set weeklyPrograms 3 - - puts "" - - set param P6_TEMPERATURE_MONDAY_1 - if { [info exists ps($param)] == 1 } { - set weeklyPrograms 6 - } - - if {[string compare $extraparam 'only3WeeklyProgramms'] == 0} { - set weeklyPrograms 3 - } - - set html "" - - set CHANNEL $special_input_id - - puts "" - - append html "[addHintHeatingGroupDevice $address]" - - set prn 0 - - set param WEEK_PROGRAM_POINTER - append html "" - append html "" - append html "" - append html "" - - # left - append html "" - append html "" - append html "" - append html "" - append html "
\${stringTableWeekProgramToEdit}" - append html " [getHelpIcon $param$isGroup]" - append html "
" - - - ## Create the weekly Programs ## - - for {set loop 1} {$loop <=$weeklyPrograms} {incr loop} { - set pNr "P$loop"; - append html "
" - foreach day {SATURDAY SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY} { - append html "
" - } - append html "
" - - append html "" - } - - append html "" - - append html "
" - - # *************** # - - append html "" - # left - - set param SHOW_SET_TEMPERATURE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableClimateControlRegDisplayTempInfoActualTemp}" - set options(1) "\${stringTableClimateControlRegDisplayTempInfoSetPoint}" - - append html "" - append html "" - append html "" - - # right - set param SHOW_HUMIDITY - if {[info exists ps($param)] == 1} { - incr prn - array_clear options - set options(0) "\${stringTableClimateControlRegDisplayTempHumT}" - set options(1) "\${stringTableClimateControlRegDisplayTempHumTH}" - append html "" - append html "" - } - append html "" - } - - # left - set comment { - # After a talk with the developer (B. B.) we decided not to show this parameter - set param ADAPTIVE_REGULATION - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAdaptiveRegulationOpt0}" - set options(1) "\${stringTableAdaptiveRegulationOpt1}" - set options(2) "\${stringTableAdaptiveRegulationOpt2}" - append html "" - append html "" - append html "" - append html "" - } - } - - set param BUTTON_RESPONSE_WITHOUT_BACKLIGHT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - append html "
\${stringTableClimateControlRegDisplayTempInfo}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"setDisplayMode(this)\"]\${stringTableClimateControlRegDisplayTempHum}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]
\${stringTableAdaptiveRegulation}" - append html "[get_ComboBox options $param separate_CHANNEL\_$prn ps $param]
\${stringTableButtonResponseWithoutBacklight}" - # append html "[_getCheckBox $CHANNEL '$param' $ps($param) $prn]" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "
" - - append html "
" - - append html "" - - set param TEMPERATURE_LOWERING_COOLING - if { [info exists ps($param)] == 1 } { - # left - incr prn - append html "" - append html "" - append html "" - append html "" - - append html "" - } - - # left - incr prn - set param TEMPERATURE_MINIMUM - array_clear options - set i 0 - for {set val [getMinValue $param]} {$val <= [getMaxValue $param]} {set val [expr $val + 0.5]} { - set options($i) "$val °C" - incr i; - } - append html "" - append html "" - append html "" - - # right - incr prn - set param TEMPERATURE_MAXIMUM - array_clear options - set i 0 - for {set val [getMinValue $param]} {$val <= [getMaxValue $param]} {set val [expr $val + 0.5]} { - set options($i) "$val °C" - incr i; - } - append html "" - append html "" - append html "" - append html "" - append html "" - - set param MIN_MAX_VALUE_NOT_RELEVANT_FOR_MANU_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - set param OPTIMUM_START_STOP - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - - set param DURATION_5MIN - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - - append html "" - - append html "" - } - - append html "
\${ecoCoolingTemperature}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - # right - incr prn - set param TEMPERATURE_LOWERING - append html "\${ecoHeatingTemperature}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]
\${stringTableTemperatureMinimum}[get_ComboBox options $param tmp_$CHANNEL\_$prn ps $param onchange=setMinMaxTemp('tmp_$CHANNEL\_$prn','separate_$CHANNEL\_$prn')] \${stringTableTemperatureMaximum}[get_ComboBox options $param tmp_$CHANNEL\_$prn ps $param onchange=setMinMaxTemp('tmp_$CHANNEL\_$prn','separate_$CHANNEL\_$prn')]
\${stringTableMinMaxNotRelevantForManuMode}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "
\${stringTableOptimumStartStop}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]" - append html "
\${stringTableDuration5Min}[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]
" - - append html "
" - - append html "" - # left - incr prn - set param TEMPERATURE_OFFSET - array_clear options - for {set val -3.5} {$val <= 3.5} {set val [expr $val + 0.5]} { - set options($val) "$val °C" - } - append html "" - append html "" - append html "" - - #left - set param TEMPERATURE_WINDOW_OPEN - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - } - append html "
\${stringTableTemperatureOffset}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]
\${stringTableTemperatureFallWindowOpen}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "
" - - append html "
" - - append html "" - # left - incr prn - set param BOOST_TIME_PERIOD - array_clear options - for {set val 0} {$val <= 30} {incr val 5} { - set options($val) "$val min" - } - append html "" - append html "" - append html "" - append html "
\${stringTableBoostTimePeriod}[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param]
" - - if { (! [catch {set tmp $ps(CHANNEL_OPERATION_MODE)}]) || (! [catch {set tmp $ps(ACOUSTIC_ALARM_SIGNAL)}]) } { - append html "
" - append html "" - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionETRVNormalMode}" - set options(1) "\${optionETRVSilentMode}" - append html "" - } - - set param ACOUSTIC_ALARM_SIGNAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "" - append html "" - } - append html "
\${lblOperatingMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"alert(this.value,$chn)\"] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.75]]" - append html "
\${lblAcousticAlarmSignal}" - append html "[getCheckBox $CHANNEL '$param' $ps($param) $prn] [getHelpIcon $param $hlpBoxWidth [expr $hlpBoxHeight * 0.5]]" - append html "
" - } - - if {[session_is_expert]} { - append html "" - } else { - append html "" - } - append html "" - - return $html -} - -proc getSwitchVirtualReceiver {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - puts "" - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - set hr 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - set hr 1 - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION_SWITCH - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html " " - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - if {$hr == 1} { - #### HELP - # append html "[getHorizontalLine]" - append html "" - append html "" - append html "" - append html "
\${virtualHelpTxtSwitch}
" - append html "" - - puts "" - - } - - if {$html == ""} { - append html [getNoParametersToSet] - } - return $html -} - -proc getEnergieMeterTransmitter {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - set specialID "[getSpecialID $special_input_id]" - - set devType $dev_descr(TYPE) - - set html "" - - puts "" - - append html "\${energyMeterTransmitterHeader}

" - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionModeConsumption}" - set options(1) "\${optionModeFeeding}" - append html "\${lblMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon PSM_$param]" - append html "" - append html "[getHorizontalLine]" - } - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param TX_MINDELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableTxMinDelay}" - append html [getComboBox $chn $prn "$specialID" "txMinDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param TX_MINDELAY_VALUE - append html "" - append html "\${stringTableTxMinDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - append html [getHorizontalLine] - - set param AVERAGING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTablePowerMeterAveraging}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - append html "

\${PMSwChannel2HintHeader}" - - incr prn - set param TX_THRESHOLD_POWER - append html "" - append html "\${PMSwChannel2Hint_Power}" - array_clear option - set option(0) "\${stringTableNotUsed}" - set option(1) "\${optionEnterValue}" - - append prnTmp $prn _tmp - - append html "[getOptionBox '$param' option $ps($param) $chn $prnTmp "onchange=\"test(this, '$prn');\""]" - if {[devIsPowerMeter $devType]} { - append html "[getTextField $param $ps($param) $chn $prn] [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - } else { - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - } - - append html "" - append html "" - - - - incr prn - set param TX_THRESHOLD_ENERGY - append html "" - append html "\${PMSwChannel2Hint_Energy}" - array_clear option - set option(0) "\${stringTableNotUsed}" - set option(1) "\${optionEnterValue}" - append prnTmp $prn _tmp - append html "[getOptionBox '$param' option $ps($param) $chn $prnTmp "onchange=\"test(this, '$prn');\""]" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - append html "" - - append html "\${PMSwChannel2Hint_Footer}

" - - append html "" - - return $html -} - -proc getCondSwitchTransmitter {chn p descr} { - - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - set chn [getChannel $special_input_id] - - set specialID "[getSpecialID $special_input_id]" - - set helpDlgWidth 450 - set helpDlgHeight 170 - - set html "" - - puts "" - - set param COND_TX_FALLING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxFalling}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param $helpDlgWidth $helpDlgHeight]" - append html "" - - # Show hint when this channel has links - append html [addHintCondTransmitterLinkAvailable $iface $dev_descr(ADDRESS)] - - } - - set param COND_TX_CYCLIC_BELOW - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "  \${stringTableCondTxCyclicBelow}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - - append html "" - } - - append html [getHorizontalLine] - - set param COND_TX_RISING - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxRising}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param $helpDlgWidth $helpDlgHeight]" - append html "" - - # Show hint when this channel has links - append html [addHintCondTransmitterLinkAvailable $iface $dev_descr(ADDRESS)] - } - - set param COND_TX_CYCLIC_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "  \${stringTableCondTxCyclicAbove}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - - append html "" - - } - - append html [getHorizontalLine] - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondTxDecisionBelow}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn; - append html "" - append html "\${stringTableCondTxDecisionAbove}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - - if {[devIsPowerMeter $devType]} { - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdLo}" - append html "" - - append html " [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - append html "[getTextField $param $ps($param) $chn $prn class=\"hidden\"]" - - append html "" - append html "" - } - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdHi}" - append html "" - - append html " [getUserDefinedCondTXThresholdUnitMinMaxDescr $devType $param]" - append html "[getTextField $param $ps($param) $chn $prn class=\"hidden\"]" - - append html "" - append html "" - } - } else { - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdLo}" - append html "[getTextField $param $ps($param) $chn $prn] [getCondTXThresholdUnit $devType $chn]  [getMinMaxValueDescr $param]" - append html "" - } - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondThresholdHi}" - append html "[getTextField $param $ps($param) $chn $prn] [getCondTXThresholdUnit $devType $chn]  [getMinMaxValueDescr $param]" - append html "" - } - - } - set param EVENT_DELAY_UNIT - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - set param EVENT_RANDOMTIME_UNIT - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - return $html -} - -# ACCELERATION_TRANSCEIVER -proc getAccelerationTransceiver {chn p descr address} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set parent [lindex [split $address :] 0] - - set newFw false - - set Fw [getDevFwMajorMinorPatch] - set fwMajor [lindex $Fw 0] - set fwMinor [lindex $Fw 1] - # not needed - set fwPatch [lindex $Fw 2] - - - if {$fwMajor > 1 || ($fwMajor == 1 && $fwMinor >= 2)} { - set newFw true - } - - set prn 0 - - set operationMode $ps(CHANNEL_OPERATION_MODE) - set html "" - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorChannelOperationMode}" - array_clear options - # not in use for HmIP-SAM set options(0) "\${motionDetectorChannelOperationModeOff}" - set options(1) "\${motionDetectorChannelOperationModeAnyMotion}" - set options(2) "\${motionDetectorChannelOperationModeFlat}" - - if {$newFw} { - set options(3) "\${motionDetectorChannelOperationModeTilt}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"changeParamDescription(this.value)\"]" - - append html "" - append html "" - } - - set comment { - # For the HmIP-SAM this parameter is always 1 and not changeable - incr prn - set param EVENT_FILTER_NUMBER - append html "" - append html "\${stringTableEventFilterNumber}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param EVENT_FILTER_PERIOD - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorFilterPeriod}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorMessageMovement_$operationMode}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_$operationMode}" - set options(2) "\${motionDetectorOptionMotion_$operationMode}" - - if {$operationMode == 3} { - set options(3) "\${motionDetectorOptionNotTilted}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorMessageNoMovement_$operationMode}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_$operationMode}" - set options(2) "\${motionDetectorOptionMotion_$operationMode}" - - if {$operationMode == 3} { - set options(3) "\${motionDetectorOptionNotTilted}" - } - - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param MSG_FOR_POS_C - if { [info exists ps($param)] == 1 } { - - set paramVisible "hidden" - - if {$operationMode == 3} { - set paramVisible "" - } - - incr prn - append html "" - append html "\${motionDetectorMessageTilted}" - array_clear options - set options(0) "\${motionDetectorOptionNoMessage}" - set options(1) "\${motionDetectorOptionNoMotion_2}" - set options(2) "\${motionDetectorOptionMotion_2}" - set options(3) "\${motionDetectorOptionNotTilted}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - - set param NOTIFICATION_SOUND_TYPE_LOW_TO_HIGH - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorNotificationMovement_$operationMode}" - array_clear options - set options(0) "\${stringTableSoundNoSound}" - set options(1) "\${stringTableSoundShort}" - set options(2) "\${stringTableSoundShortShort}" - set options(3) "\${stringTableSoundLong}" - set options(4) "\${stringTableSoundLongShort}" - set options(5) "\${stringTableSoundLongLong}" - set options(6) "\${stringTableSoundLongShortShort}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param NOTIFICATION_SOUND_TYPE_HIGH_TO_LOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorNotificationNoMovement_$operationMode}" - array_clear options - set options(0) "\${stringTableSoundNoSound}" - set options(1) "\${stringTableSoundShort}" - set options(2) "\${stringTableSoundShortShort}" - set options(3) "\${stringTableSoundLong}" - set options(4) "\${stringTableSoundLongShort}" - set options(5) "\${stringTableSoundLongLong}" - set options(6) "\${stringTableSoundLongShortShort}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorSensorSensivity}" - array_clear options - set options(0) "\${motionDetectorSensorRange16G}" - set options(1) "\${motionDetectorSensorRange8G}" - set options(2) "\${motionDetectorSensorRange4G}" - set options(3) "\${motionDetectorSensorRange2G}" - set options(4) "\${motionDetectorSensorRange2GPlusSens}" - set options(5) "\${motionDetectorSensorRange2G2PlusSense}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 170]" - append html "" - } - - set param TRIGGER_ANGLE - if { [info exists ps($param)] == 1 } { - - if {[info exists ps(TRIGGER_ANGLE_2)] == 1} { - global valTriggerAngle2 - set valTriggerAngle2 $ps(TRIGGER_ANGLE_2) - } - - incr prn - append html "" - append html "\${motionDetectorTriggerAngle}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 100]" - append html "" - } - - set param TRIGGER_ANGLE_2 - if { [info exists ps($param)] == 1 } { - global valTriggerAngle - set paramVisible "hidden" - set valTriggerAngle $ps(TRIGGER_ANGLE) - - if {$operationMode == 3} { - set paramVisible "" - } - incr prn - append html "" - append html "\${motionDetectorTriggerAngle2}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param 320 100]" - append html "" - } - - return $html -} - -proc getClimateControlFloorDirectTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set CHANNEL $special_input_id - - set html "" - set prn 0 - - puts "" - - set param COOLING_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCoolingDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param HEATING_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param FLOOR_HEATING_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableFloorHeatingMode}" - option FLOOR_HEATING_MODE - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param HEATING_MODE_SELECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingModeSelection}" - option HEATING_MODE_SELECTION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - - set param FROST_PROTECTION_TEMPERATURE - if { [info exists ps($param)] == 1 } { - set min [expr {[expr [getMinValue $param]]}] - set max [expr {[expr [getMaxValue $param]]}] - - array_clear options - set options(1.5) \${optionNotActive} - for {set val $min} {$val <= $max} {set val [expr $val + 0.5]} { - if {$val != 1.5} { - set options($val) "$val" - } - } - - incr prn - append html "" - append html "\${stringTableFrostProtectionTemperature}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getUnit $param]" - append html "" - } - - set param HEATING_VALVE_TYPE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHeatingValveType}" - option NORMALLY_CLOSE_OPEN - append html "[getOptionBox $param options $ps($param) $chn $prn]" - append html "" - } - - set param HUMIDITY_LIMIT_DISABLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHumidityLimitDisable}" - option OPTION_DISABLE_ENABLE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param HUMIDITY_LIMIT_VALUE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableHumidityLimitValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param MINIMAL_FLOOR_TEMPERATURE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableMinimalFloorTemperature}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param CLIMATE_CONTROL_TYPE - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - incr prn - append html "" - append html "\${lblOperationMode}" - array_clear options - set options(0) "\${optionPWMControl}" - set options(1) "\${optionTwoPointControl}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - - set param TWO_POINT_HYSTERESIS - if {[info exists ps($param)] == 1} { - incr prn - array_clear options - for {set val 0.2} {$val <= 2.0} {set val [expr $val + 0.2]} { - set options($val) "$val K" - } - append html "" - append html "\${stringTableSwitchTransmitTwoPointHysteresis}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" - append html "" - } - -####################################################################################### - append html "[getHorizontalLine]" - - # SWITCHING_INTERVAL_BASE and INTERVAL_FACTOR - - incr prn - append html "" - append html "\${lblDecalcificationInterval}" - append html [getComboBox $chn $prn "$specialID" "switchingInterval"] - append html "" - - set param SWITCHING_INTERVAL_BASE - append html [getTimeUnitComboBoxB $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param SWITCHING_INTERVAL_FACTOR - append html "" - append html "\${stringTableSwitchingIntervalValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # END SWITCHING_INTERVAL_BASE and INTERVAL_FACTOR - - # ON_TIME_BASE and ON_TIME_FACTOR - - incr prn - append html "" - append html "\${stringTableOnTime}" - append html [getComboBox $chn $prn "$specialID" "switchingIntervalOnTime"] - append html "" - - set param ON_TIME_BASE - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param ON_TIME_FACTOR - append html "" - append html "\${stringTableOnTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # END ON_TIME_BASE and ON_TIME_FACTOR - - return $html -} - - -proc getClimateHeatDemandBoilerTransmitter {chn p descr} { - - global iface dev_descr - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set devType $dev_descr(TYPE) - set chn [getChannel $special_input_id] - - set specialID "[getSpecialID $special_input_id]" - - set helpDlgWidth 450 - set helpDlgHeight 170 - - set html "" - - puts "" - - # ONDELAY_TIME_BASE / ONDELAY_TIME_FACTOR - set param ONDELAY_TIME_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableOnDelay}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param ONDELAY_TIME_FACTOR - append html "" - append html "\${stringTableOnDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - - # OFFDELAY_TIME_BASE / OFFDELAY_TIME_FACTOR - incr prn - append html "" - append html "\${stringTableOffDelay}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - append html "" - - set param OFFDELAY_TIME_BASE - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param OFFDELAY_TIME_FACTOR - append html "" - append html "\${stringTableOffDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } else { - append html "[getNoParametersToSet]" - } - return $html -} - -proc getShutterContact {chn p descr} { - global env - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set CHANNEL $special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set html "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_FILTER_NUMBER - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventFilterTimeA}" - append html [getComboBox $chn $prn "$specialID" "eventFilterTime"] - append html "" - - append html [getEventFilterNumber $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_FILTER_PERIOD - append html "" - append html "\${stringTableEventFilterPeriodA}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon $param]" - - append html "" - append html "
" - append html "" - } - - set param SAMPLE_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${genericSampleInterval}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "[getHelpIcon $param]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" - set options(1) "\${stringTableShutterContactMsgPosA1}" - set options(2) "\${stringTableShutterContactMsgPosA3}" - append html "\${stringTableShutterContactHmIPMsgPosA0}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${stringTableShutterContactMsgPosA2}" - set options(1) "\${stringTableShutterContactMsgPosA1}" - set options(2) "\${stringTableShutterContactMsgPosA3}" - append html "\${stringTableShutterContactHmIPMsgPosB0}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - # append html "[getAlarmPanel ps]" - - return $html -} - -proc getPassageDetector {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - - set param ATC_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "\${stringTableATCMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"setATCAdatptionInterval()\"]" - append html "" - } - - set param ATC_ADAPTION_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "\${optionUnit15M}" - set options(1) "\${optionUnit30M}" - set options(2) "\${optionUnit60M}" - set options(3) "\${optionUnit120M}" - append html "\${stringTableATCAdaptionInterval}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - - append html "[getHorizontalLine "name=\"paramATCAdaptionInterval\" class=\"hidden\""]" - - append html "" - } - - set param EVENT_BLINDTIME_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventBlindTime}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - - # param = EVENT_BLINDTIME_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_BLINDTIME_VALUE - append html "" - append html "\${stringTableBlindTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_TIMEOUT_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventTimeoutPassageDetector}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "" - - #param = EVENT_TIMEOUT_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_TIMEOUT_VALUE - append html "" - append html "\${stringTableEventTimeoutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSensorSensivity}" - option RAW_0_100Percent - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - } - return $html -} - -proc getPassageDetectorDirectionTransmitter {chn p descr} { - global env - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - - set lblPassageDetection "\${stringTablePassageDetectionRight}" - - if { ! [catch {set tmp $ps(COND_TX_DECISION_BELOW)}] } { - set lblPassageDetection "\${stringTablePassageDetectionLeft}" - } - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "$lblPassageDetection" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showDecisionValue(this.value,$chn)\"] - append html "" - } - - if {[session_is_expert]} { - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondValuePassageDetectionRight}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableCondValuePassageDetectionLeft}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - } - - # append html "[getAlarmPanel ps]" - - append html "" - - return $html -} - -proc getPassageDetectorCounterTransmitter {chn p descr} { - - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - puts "" - - set html "" - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - array_clear options - set options(0) "1 - \${optionInactiv}" - set options(1) "2 - \${optionPassageCounterDetectionLR}" - set options(2) "3 - \${optionPassageCounterDetectionL}" - set options(3) "4 - \${optionPassageCounterDetectionR}" - # set options(4) "5 - \${optionPassageCounterDeltaLR}" - set options(5) "5 - \${optionPassageCounterDeltaL}" - set options(6) "6 - \${optionPassageCounterDeltaR}" - append html "" - append html "\${stringTablePassageDetectorCounterTransmitterChannelOperationMode}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=\"showOpModesValues(this.value,$chn)\"] [getHelpIcon SPDR_CHANNEL_MODE]" - append html "" - } - - if {[session_is_expert]} { - set param COND_TX_DECISION_ABOVE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - - set param COND_TX_DECISION_BELOW - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param] [getHelpIcon COND_TX_DECISION_ABOVE_BELOW]" - append html "" - } - } - - append html "[getHorizontalLine id=\"condTxHorizontalLine_$chn\"]" - append html "\${numberOfPassesBeforeSendingDecisionVal}" - append html "\${deltaOfPassesBeforeSendingDecisionVal}" - - set param COND_TX_THRESHOLD_HI - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - set param COND_TX_THRESHOLD_LO - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - } - - append html "" - - return $html -} - -proc getStateResetReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set prn 0 - set html "" - - puts "" - - incr prn - append html "" - append html "\${stringTableBlockingPeriod}" - append html [getComboBox $chn $prn "$specialID" "delayShort"] - append html "[getHelpIcon BLOCKING_PERIOD]" - append html "" - - set param BLOCKING_PERIOD_UNIT - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param BLOCKING_PERIOD_VALUE - append html "" - append html "\${stringTableBlockingPeriodValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - return $html -} - -proc getWaterDetectionTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set hlpBoxWidth 450 - set hlpBoxHeight 160 - - set prn 0 - set html "" - - # puts "" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_FILTER_NUMBER - if { [info exists ps($param)] == 1 } { - incr prn - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - - append html "" - append html "\${stringTableEventFilterNumber}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] [getHelpIcon $param\_motionDetect $hlpBoxWidth $hlpBoxHeight]" - append html "" - } - - set param EVENT_FILTER_PERIOD - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorFilterPeriod}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - append html "" - } - - set param ACOUSTIC_ALARM_SIGNAL - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAlarmDisableAcousticSignal}" - set options(1) "\${stringTableAlarmFrequencyRising}" - set options(2) "\${stringTableAlarmFrequencyFalling}" - set options(3) "\${stringTableAlarmFrequencyRisingAndFalling}" - set options(4) "\${stringTableAlarmFrequencyAlternatingLowHigh}" - set options(5) "\${stringTableAlarmFrequencyAlternatingLowMidHigh}" - set options(6) "\${stringTableAlarmFrequencyHighOnOff}" - set options(7) "\${stringTableAlarmFrequencyHighOnLongOff}" - set options(8) "\${stringTableAlarmFrequencyLowOnOffHighonOff}" - set options(9) "\${stringTableAlarmFrequencyLowOnLongOffHighOnLongOff}" - append html "\${stringTableSoundID}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - - } - set param ACOUSTIC_ALARM_TIMING - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableAlarmPermanent}" - set options(1) "\${stringTableAlarmThreeMinutes}" - set options(2) "\${stringTableAlarmSixMinutes}" - set options(3) "\${stringTableAlarmOncePerMinute}" - append html "\${lblAlarmTiming}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param ACOUSTIC_ALARM_TRIGGER - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableNoAcousticAlarm}" - set options(1) "\${stringTableTriggerEvent1}" - set options(2) "\${stringTableTriggerEvent2}" - set options(3) "\${stringTableTriggerEvent1_2}" - append html "\${lblAlarmTrigger}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param TRIGGER_ANGLE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${motionDetectorTriggerAngle}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - append html "" - append html "" - append html "" - append html "" - - append html "" - - - set param MSG_FOR_POS_B ;# B = Dry - if { [info exists ps($param)] == 1 } { - incr prn - - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Dry}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_C ;# C = Moisture - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Moisture}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_A ;# A = Waterlevel - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(1) "\${stringTableMsg_Dry}" - set options(2) "\${stringTableMsg_Water}" - set options(3) "\${stringTableMsg_Moisture}" - append html "\${lblWaterDetectorMsg_Water}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - } - - # append html "[getAlarmPanel ps]" - - return $html -} - -proc getDoorReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getSimpleSwitchReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getAcousticSignalTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } -} - -proc getAcousticSignalVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set prn 0 - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelectorAcousticSignal $chn ps $special_input_id] - } - return $html -} - -proc getRainDetectionTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set param LED_DISABLE_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLEDDisableChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn]" - append html "" - set specialParam 1 - } - - set param EVENT_TIMEOUT_BASE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventTimeoutRainDetector}" - append html [getComboBox $chn $prn "$specialID" "delayShortA"] - # append html "[getHelpIcon $param]" - append html "" - - #param = EVENT_TIMEOUT_BASE - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_TIMEOUT_VALUE - append html "" - append html "\${stringTableEventTimeoutValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param SAMPLE_INTERVAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${rainDetectorSampleInterval}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - # append html "[getHelpIcon $param]" - append html "" - } - - set param SENSOR_SENSITIVITY - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableSensorSensivity}" - option RAW_0_100Percent - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_rain]" - append html "" - } - return $html - -} - -proc getDoorLockStateTransmitter {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param POWERUP_ONTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableAutoRelockDelay}" - append html "[getComboBox $chn $prn "$specialID" "timeOnOff"][getHelpIcon $param 320 170]" - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param POWERUP_ONTIME_VALUE - append html "" - append html "\${stringTableOnTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param DOOR_LOCK_DIRECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockDirection}" - array_clear options - set options(0) "\${lblRight}" - set options(1) "\${lblLeft}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_TURNS - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableDoorLockTurns}" - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_NEUTRAL_POS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockNeutralPos}" - array_clear options - set options(0) "\${lblVerticalA}" - set options(1) "\${lblHorizontalA}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - append html "[getHorizontalLine]" - - set param DOOR_LOCK_END_STOP_OFFSET_LOCKED - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableKeyMaticAngleMax}" - option DOOR_LOCK_ANGLE_RANGE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_END_STOP_OFFSET_OPEN - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableKeyMaticAngleOpen}" - option DOOR_LOCK_ANGLE_RANGE - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param HOLD_TIME - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockHoldTime}" - array_clear options - set options(0) "\${optionOpenOnly}" - #set options(1) "\${optionNormal}" - set options(30) "\${optionLongA}" - set options(50) "\${optionExtraLong}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn onchange=\"showHintHoldTime($prn)\"] [getHelpIcon DOOR_LOCK_$param 320 75]" - append html "" - append html "\${hintDoorLockHoldTime}" - - append html "" - - } - - set param DISABLE_ACOUSTIC_CHANNELSTATE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDisableDoorLockAcousticChannelState}" - append html "[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon DOOR_LOCK_$param 320 75]" - append html "" - set specialParam 1 - } - - return $html -} - -proc getDoorLockStateTranseiver {chn p descr} { - - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set CHANNEL $special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - - set param DOOR_LOCK_DIRECTION - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockDirection}" - array_clear options - set options(0) "\${lblRight}" - set options(1) "\${lblLeft}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_1 320 75]" - append html "" - } - - set param DOOR_LOCK_TURNS - if { [info exists ps($param)] == 1 } { - - # convert float to int (0.0 = 0) - set min [expr {int([expr [getMinValue $param]])}] - set max [expr {int([expr [getMaxValue $param]])}] - - incr prn - append html "" - append html "\${stringTableDoorLockTurns}" - array_clear options - for {set val $min} {$val <= $max} {incr val 1} { - set options($val) "$val" - } - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param DOOR_LOCK_NEUTRAL_POS - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableDoorLockNeutralPos}" - array_clear options - set options(0) "\${lblVertical}" - set options(1) "\${lblHorizontal}" - append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param 320 75]" - append html "" - } - - set param MSG_FOR_POS_A - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableTiltSensorMsgPosA2}" - set options(1) "\${stringTableDoorLockStateTransmitterLockStateLocked}" - set options(2) "\${stringTableDoorLockStateTransmitterLockStateUnlocked}" - append html "\${stringTableDoorLockStateTransceiverMsgPosA}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - set param MSG_FOR_POS_B - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${stringTableTiltSensorMsgPosA2}" - set options(1) "\${stringTableDoorLockStateTransmitterLockStateLocked}" - set options(2) "\${stringTableDoorLockStateTransmitterLockStateUnlocked}" - append html "\${stringTableDoorLockStateTransceiverMsgPosB}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - return $html -} - -proc getOpticalSignalReceiver {chn p descr} { - global env dev_descr - # source [file join $env(DOCUMENT_ROOT) config/easymodes/etc/hmipAlarmPanel.tcl] - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - - set html "" - set specialParam 0 - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - - return $html - -} - -proc getCarbonDioxideReceiver {chn p descr} { - global env dev_descr - - upvar $p ps - upvar $descr psDescr - upvar special_input_id special_input_id - - set specialID "[getSpecialID $special_input_id]" - set CHANNEL $special_input_id - - set html "" - set prn 0 - - set param INTERVAL_UNIT - if { [info exists ps($param)] == 1 } { - append html "" - append html "\${lblAutoCalibration}" - # append html "[getCheckBox 'autoCalibration' $ps($param) $chn $prn onchange=setCO2AutoCalibration(this);]" - append html " [getHelpIcon CALIBRATION_PPM]" - append html "" - - - # Wert = VAL * 10 ^ EXP - set param CALIBRATION_PPM_VAL - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${lblCalibrationValue}" - append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" - - set comment { # The exponent is currently not in use - set param CALIBRATION_PPM_EXP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear option - set option(0) "1" - set option(1) "10" - set option(2) "100" - set option(3) "1000" - append html "  x [getOptionBox '$param' option $ps($param) $chn $prn] [getHelpIcon CALIBRATION_PPM]" - } - } - append html "" - append html "" - } - - # ******* Automatic Calibration ********* - - set param INTERVAL_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - - set param INTERVAL_VALUE - append html "" - append html "\${stringTableCalibrationIntervalValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]   x " - - incr prn - set param INTERVAL_UNIT - array_clear options - set options(0) "not active" - set options(4) "\${optionUnitH}" - set options(5) "\${optionUnitD}" - set options(6) "\${optionUnit7D}" - set options(7) "\${optionUnit28D}" - append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" - append html "" - - - append html "" - - } -} - return $html -} - -proc getServoTransmitter {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - - set param CHANNEL_OPERATION_MODE - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionInactiv}" - set options(1) "\${optionActiv}" - append html "\${lblChannelActivInactiv}" - append html [get_ComboBox options $param separate_$CHANNEL\_$prn ps $param] - append html "" - } - - append html "[getHorizontalLine]" - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - append html "[getHorizontalLine]" - - set param OUTPUT_SWAP - if { [info exists ps($param)] == 1 } { - incr prn - array_clear options - set options(0) "\${optionOutputNotSwapped}" - set options(1) "\${optionOutputSwapped}" - append html "\${lblRotationSwap}" - append html "[get_ComboBox options $param separate_$special_input_id\_$prn ps $param] [getHelpIcon $param\_SERVO]" - append html "" - } - - set param POWER_OFFDELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableServoPowerOff}" - append html "[getComboBox $chn $prn "$specialID" "timeOnOff"]" - append html "" - - append html [getTimeUnitComboBox $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param POWER_OFFDELAY_VALUE - append html "" - append html "\${stringTableOffDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - return $html -} - -proc getServoVirtualReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - - if {[session_is_expert]} { - set param "LOGIC_COMBINATION" - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableLogicCombination}" - option LOGIC_COMBINATION - append html "[getOptionBox '$param' options $ps($param) $chn $prn]" - append html "" - append html "[getHorizontalLine]" - } - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html [getPowerUpSelector $chn ps $special_input_id] - } - - return $html -} - -proc getAccessTransceiver {chn p descr} { - global dev_descr - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - set min 1 - set max 21 - - # ABORT_EVENT_SENDING_CHANNELS - set colspanAESC 21 - set colspanAESC_A 5 - set colspanAESC_B 21 - - set devType $dev_descr(TYPE) - - if {[string equal $devType "HmIP-WKP"] == 1} { - set colspanAESC 16 - set colspanAESC_A 0 - set colspanAESC_B 0 - } - - set checked "" - - set param NUMERIC_PIN_CODE - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableNumericPinCode}" - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - append html "" - append html "
" - } - - set param INPUT_SELECT_FIELD - if { [info exists ps($param)] == 1 } { - incr prn - append html "\${thEntitlement}" - append html "" - append html "\${lblCode}" - for {set loop $min} {$loop <= $max -1 } {incr loop 1} { - set val [expr {int(pow(2,[expr $loop - 1]))}] - append html "" - append html "" - append html "" - append html "" - } - append html "" - append html "" - append html "" - append html "" - - append html "
" - - append html "" - append html "\${lblBellButton}" - append html "" - set val [expr {int(pow(2,[expr $max - 1]))}] - # append html "" - # append html "" - append html "" - # append html "" - append html "" - append html "" - - - - append html "" - - - append html "
" - } - - set param ABORT_EVENT_SENDING_CHANNELS - if { [info exists ps($param)] == 1 } { - - if {[string equal $devType "HmIP-WKP"] == 1} { - if { [info exists ps(NUMERIC_PIN_CODE)] != 1 } { - append html "\${lblPinOfChannelLockA} [expr $chn / 2] \${lblPinOfChannelLockB}" - append html "
" - } - } - - incr prn - append html "" - append html "\${stringTableAbortEventSendingChannelsAccessTransceiver} [getHelpIcon $param\_ACCESS_TRANSCEIVER]" - append html "" - - append html "" - append html "\${lblStopRunningLinkAccessTransceiver}" - append html "" - append html "" - append html "" - append html "
" - append html "" - - append html "" - } - - - return $html -} - -proc getSmokeDetector {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set CHANNEL $special_input_id - set groupExists 1 - - set param GROUP_1 - - if { [info exists ps($param)] == 1 } { - # Help - append html "" - append html "" - append html "\${GROUP_SMOKE_DETECTOR}" - append html "" - append html "" - } - - append html "" - append html "" - append html "" - append html "" - append html "" - } else { - set groupExists 0 - } - } - - set param "REPEAT_ENABLE" - if { [info exists ps($param)] == 1 } { - incr prn - if { [info exists ps(GROUP_1)] == 1 } { - append html "" - } - append html "" - append html "" - append html "" - } - - append html "
" - for {set val 1} {$groupExists == 1} {incr val} { - if { [info exists ps(GROUP_$val)] == 1 } { - incr prn - append html "
\${lblGroup}_$val[getCheckBox 'GROUP_$val' $ps(GROUP_$val) $chn $prn]

\${stringTableSmokeDetectorRepeatEnable}[getCheckBox '$param' $ps($param) $chn $prn] [getHelpIcon $param]
" - return $html -} - -proc getWindowDriveReceiver {chn p descr} { - upvar $p ps - upvar $descr psDescr - upvar prn prn - upvar special_input_id special_input_id - set specialID "[getSpecialID $special_input_id]" - set html "" - set prn 0 - - set param EVENT_DELAY_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableEventDelay}" - append html [getComboBox $chn $prn "$specialID" "eventDelay"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_DELAY_VALUE - append html "" - append html "\${stringTableEventDelayValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param EVENT_RANDOMTIME_UNIT - if { [info exists ps($param)] == 1 } { - incr prn - append html "" - append html "\${stringTableRandomTime}" - append html [getComboBox $chn $prn "$specialID" "eventRandomTime"] - append html "" - - append html [getTimeUnitComboBoxShort $param $ps($param) $chn $prn $special_input_id] - - incr prn - set param EVENT_RANDOMTIME_VALUE - append html "" - append html "\${stringTableRamdomTimeValue}" - - append html "[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" - - append html "" - append html "
" - append html "" - } - - set param POWERUP_JUMPTARGET - if { [info exists ps($param)] == 1 } { - append html "[getHorizontalLine]" - append html [getPowerUpSelector $chn ps $special_input_id] - } - -} - -proc getNoParametersToSet {} { - set html "
\${deviceAndChannelParamsLblNoParamsToSet}
" - # center content - append html "" - return $html -} diff --git a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation.patch b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation.patch index a4bee29d82..5860b4a653 100644 --- a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation.patch +++ b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation.patch @@ -1,12 +1,16 @@ --- occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js.orig +++ occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js -@@ -263,7 +263,7 @@ - "

Die Kalibrierung ben%F6tig mindestens drei Kalibrierintervalle, um den Endwert sicher zu bestimmen." + +@@ -260,10 +260,10 @@ + "CALIBRATION_PPM" : + "Bei der automatischen Kalibrierung des CO2-Sensors wird der niedrigste Messwert innerhalb vordefinierter Kalibrierintervalle als neue Referenz angenommen. " + + "Frische Au%DFenluft hat einen typischen Wert von zirka 400 ppm. Bei normaler Innenraumnutzung wird angenommen, dass die Innenraumluft innerhalb eines Zeitraums von einer Woche mindestens einmal das Niveau von frischer Au%DFenluft erreicht. " + +- "

Die Kalibrierung ben%F6tig mindestens drei Kalibrierintervalle, um den Endwert sicher zu bestimmen." + ++ "

Die Kalibrierung ben%F6tigt mindestens drei Kalibrierintervalle, um den Endwert sicher zu bestimmen." + "

F%FCr R%E4ume mit Dauerbelegung 24/7 muss diese Funktion deaktiviert werden. Eine Kalibrierung sollte in dem Fall alle 1-2 Jahre manuell durchgef%FChrt werden.", - "MOUNTING_ORIENTATION" : "Dieser Parameter erm%FCglicht es, den Displayinhalt um 180 Grad zu drehen.", + "MOUNTING_ORIENTATION" : "Dieser Parameter erm%F6glicht es, den Displayinhalt um 180 Grad zu drehen.", - "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, die Tastereinheit des Aktors im gew%FCnschten Winkel einzusetzen. ", + "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, den Aktor im gew%FCnschten Winkel einzusetzen. ", "POWERUP_ONTIME_UNIT" : --- occu/WebUI/www/config/ic_deviceFirmwareOverview.cgi.orig diff --git a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js index 93a985f2bf..d1b330dca0 100755 --- a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js +++ b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js @@ -260,11 +260,11 @@ jQuery.extend(true,langJSON, { "CALIBRATION_PPM" : "Bei der automatischen Kalibrierung des CO2-Sensors wird der niedrigste Messwert innerhalb vordefinierter Kalibrierintervalle als neue Referenz angenommen. " + "Frische Au%DFenluft hat einen typischen Wert von zirka 400 ppm. Bei normaler Innenraumnutzung wird angenommen, dass die Innenraumluft innerhalb eines Zeitraums von einer Woche mindestens einmal das Niveau von frischer Au%DFenluft erreicht. " + - "

Die Kalibrierung ben%F6tig mindestens drei Kalibrierintervalle, um den Endwert sicher zu bestimmen." + + "

Die Kalibrierung ben%F6tigt mindestens drei Kalibrierintervalle, um den Endwert sicher zu bestimmen." + "

F%FCr R%E4ume mit Dauerbelegung 24/7 muss diese Funktion deaktiviert werden. Eine Kalibrierung sollte in dem Fall alle 1-2 Jahre manuell durchgef%FChrt werden.", "MOUNTING_ORIENTATION" : "Dieser Parameter erm%F6glicht es, den Displayinhalt um 180 Grad zu drehen.", - "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, die Tastereinheit des Aktors im gew%FCnschten Winkel einzusetzen. ", + "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, den Aktor im gew%FCnschten Winkel einzusetzen. ", "POWERUP_ONTIME_UNIT" : "W%E4hlen Sie die Wartezeit bis zum Auto Relock, nachdem das T%FCrschloss entriegelt oder ge%F6ffnet wurde.

" + @@ -428,8 +428,8 @@ jQuery.extend(true,langJSON, { "Bei Frontalansicht auf das Ger%E4t ist

" + "
    " + - "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich rechts
  • " + - "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich links
  • " + + "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich links
  • " + + "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich rechts
  • " + "
  • Zone 3 = Der gesamte 360%B0-Winkelbereich unterhalb des Ger%E4tes
  • " + "


" + @@ -448,6 +448,38 @@ jQuery.extend(true,langJSON, { "DIM_LEVEL_HIGHEST" : "Dimmlevel ab dem das Leuchtmittel die maximale Helligkeit erreicht hat.", + "INPUT_COPRO_ENABLED" : + "Bei Aktivierung dieses Parameters wird der Kanal %FCber den CoProzessor ausgewertet, anstatt %FCber den HmIP-Prozessor.

" + + "Im Normalfall sollte die Auswertung %FCber den Coprozessor nicht aktiviert werden, " + + "da z. B. die Kan%E4le 1 und 2 nicht direkt vom Coprozessor auswertbar sind und die Auswertung %FCber den HmIP-Prozessor stromsparender ist. " + + "Aktivieren Sie diesen Parameter daher nur, wenn es in der Anleitung eines Applikationsmoduls gefordert wird.

" + + "Je nach verwendetem Applikationsmodul kann es erforderlich sein, die Auswertung %FCber den Coprozessor laufen zu lassen, " + + "um z.B. Schaltbefehle mit Bedingung oder Level nutzen zu k%F6nnen.

" + + "N%E4heres entnehmen Sie der Anleitung der jeweiligen Applikation.", + + "ESI_CHANNEL_OPERATION_MODE" : + "Der HmIP-ESI bestimmt den Sensortyp und das Protokoll automatisch. Das Ergebnis ist in diesem Feld eingetragen. " + + "Um den Vorgang der automatischen Erkennung nach einem Tausch vom Sensor oder Z%E4hler erneut zu starten, l%F6schen Sie das Ger%E4t und lernen es wieder an.", + + "ESI_METER_OBIS_SEARCH_STRING" : + "Anhand der OBIS-Kennzahlen identifiziert der HmIP-ESI die relevanten Daten vom Z%E4hler. Sie werden automatisch ermittelt. Liefert die automatische Ermittlung nicht die gew%FCnschten Werte, " + + "so k%F6nnen andere Kennzahlen im OBIS-Wertegruppenformat C.D.E eingetragen werden.

" + + "Mehrere Werte lassen sich zusammenfassen:

" + + "1.8.1+2+3 z. B. addiert 1.8.1 + 1.8.2 + 1.8.3

" + + "1 - 2.7.0 z. B. subtrahiert 1.7.0 - 2.7.0.", + + "CHANNEL_ACTIVE_CLIMATECONTROL" : + "Diese Checkbox dient dazu, Fehlermeldungen an unbenutzten Kan%E4len auf der Seite Status/Bedienung zu vermeiden. Aktivieren Sie diese Checkbox daher nur, wenn der Kanal auch benutzt wird.", + + "DISPLAY_MODE" : + "Mit diesem Parameter kann zwischen folgenden beiden Display-Layouts gew%E4hlt werden:

" + + "Reduzierter Modus
" + + "Die Informationen im Display sind auf ein Minimum reduziert, bei besonders gro%DFer Anzeige der Soll-Temperatur.

" + + "\"Funktioneller Modus
" + + "Im funktionellen Modus werden mehr Informationen auf dem Display dargestellt.
", + + "DISPLAY_INVERTED_COLORS" : "Mit diesem Parameter w%E4hlen Sie f%FCr das Display die normale Anzeige oder den Dunkelmodus.", + "noMoreHelp" : "" }, @@ -708,7 +740,7 @@ jQuery.extend(true,langJSON, { "

This function must be deactivated for rooms with a 24/7 permanent occupancy. In this case, a manual calibration should be performed every 1-2 years.", "MOUNTING_ORIENTATION" : "This parameter makes it possible to rotate the display content by 180 degrees.", - "MOUNTING_ORIENTATION_A" : "This parameter enables the push-button unit of the actuator to be placed at the required angle.", + "MOUNTING_ORIENTATION_A" : "This parameter enables the actuator to be placed at the required angle.", "POWERUP_ONTIME_UNIT" : "Select the delay time until Auto Relock is executed after the door lock has been unlocked or opened.

" + @@ -866,20 +898,20 @@ jQuery.extend(true,langJSON, { "Make sure that the functionality of the DALI group corresponds to the functionality of the DALI luminaire that is assigned to the group and has the lowest channel number.", "PYRO_CHANNEL_OPERATION_MODE" : - "en* W%E4hlen Sie hier eine der drei m%F6glichen Erfassungszonen, die f%FCr diesen Kanal genutzt werden sollen.

" + + "Here, select one of the three possible detection zones that should be used for this channel.

" + - "Welche Zone befindet sich wo am Ger%E4t?

" + + "Which zone is located where on the device?

" + - "Bei Frontalansicht auf das Ger%E4t ist

" + + "With a frontal view of the device

" + "
    " + - "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich rechts
  • " + - "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich links
  • " + - "
  • Zone 3 = Der gesamte 360%B0-Winkelbereich unterhalb des Ger%E4tes
  • " + + "
  • Zone 1 = The entire 90%B0 angle area on the left
  • " + + "
  • Zone 2 = The entire 90%B0 angle area on the right
  • " + + "
  • Zone 3 = Zone 3 = The entire 360%B0 angle area below the device
  • " + "


" + - "Achtung

" + - "Folgende Parameter der Kan%E4le 1 bis 3 beeinflussen die jeweilige Zone 1 - 3:

" + + "Important!

" + + "The following parameters of channels 1 to 3 influence the relevant Zone 1 - 3.:

" + "
    " + "
  • ${stringTableSensivity}
  • " + @@ -888,10 +920,43 @@ jQuery.extend(true,langJSON, { "
", "DIM_LEVEL_LOWEST" : - "en* Dimmlevel, ab dem das Leuchtmittel zu leuchten beginnt bzw. beginnt, heller zu werden.

" + - "Zu beachten ist, dass dieser Wert nicht kleiner sein kann, als der Wert, der beim Parameter Minimaler Pegel im Zustand EIN eingestellt ist.", - - "DIM_LEVEL_HIGHEST" : "en* Dimmlevel ab dem das Leuchtmittel die maximale Helligkeit erreicht hat.", + "Dimming level from which the lamp starts to light up or starts to become brighter.

" + + "It must be noted that this value cannot be lower than the value that is set in the parameter Minimum level in ON state.", + + "DIM_LEVEL_HIGHEST" : "Dimming level from which the lamp has reached maximum brightness.", + + "INPUT_COPRO_ENABLED" : + "When this parameter is activated, the channel is evaluated via the co-processor instead of the HmIP processor.

" + + "Under normal circumstances, evaluation via the co-processor should not be activated, " + + "as channels 1 and 2, for example, cannot be evaluated by the co-processor directly, plus evaluation via the HmIP processor is more energy-efficient. " + + "Therefore, you should only activate this parameter if so instructed in the manual for an application module.

" + + "Depending on which application module you use, it may be necessary to conduct the evaluation via the co-processor " + + "in order to use switching commands with a condition or level.

" + + "Please refer to your application's manual for more information.", + + + "ESI_CHANNEL_OPERATION_MODE" : + "The HmIP-ESI determines the sensor type and the protocol automatically. The result is entered in this field. " + + "To restart the automatic detection process after replacing the sensor or meter, delete the device and teach it in again.", + + "ESI_METER_OBIS_SEARCH_STRING" : + "The HmIP-ESI identifies the relevant data from the meter based on the OBIS identification numbers. The data is determined automatically. If the automatic determination process does not deliver the required values, " + + "you can enter other identification numbers in the OBIS value group format C.D.E.

" + + "Multiple values can be grouped together:

" + + "1.8.1+2+3, for example, denotes addition: 1.8.1 + 1.8.2 + 1.8.3

" + + "1 - 2.7.0, for example, denotes subtraction: 1.7.0 - 2.7.0.", + + "CHANNEL_ACTIVE_CLIMATECONTROL" : + "This checkbox is used to avoid error messages for unused channels on the status/operation screen. Therefore, only activate this checkbox if the channel is actually being used.", + + "DISPLAY_MODE" : + "en* Mit diesem Parameter kann zwischen folgenden beiden Display-Layouts gew%E4hlt werden:

" + + "Reduzierter Modus
" + + "Die Informationen im Display sind auf ein Minimum reduziert, bei besonders gro%DFer Anzeige der Soll-Temperatur.

" + + "\"Funktioneller Modus
" + + "Im funktionellen Modus werden mehr Informationen auf dem Display dargestellt.
", + + "DISPLAY_INVERTED_COLORS" : "en* Mit diesem Parameter w%E4hlen Sie f%FCr das Display die normale Anzeige oder den Dunkelmodus.", "noMoreHelp" : "" } diff --git a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js.orig b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js.orig index 84baafc85a..c02c6b6bc6 100755 --- a/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js.orig +++ b/buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/config/easymodes/MASTER_LANG/HmIP-ParamHelp.js.orig @@ -264,7 +264,7 @@ jQuery.extend(true,langJSON, { "

F%FCr R%E4ume mit Dauerbelegung 24/7 muss diese Funktion deaktiviert werden. Eine Kalibrierung sollte in dem Fall alle 1-2 Jahre manuell durchgef%FChrt werden.", "MOUNTING_ORIENTATION" : "Dieser Parameter erm%FCglicht es, den Displayinhalt um 180 Grad zu drehen.", - "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, die Tastereinheit des Aktors im gew%FCnschten Winkel einzusetzen. ", + "MOUNTING_ORIENTATION_A" : "Dieser Parameter erm%F6glicht es, den Aktor im gew%FCnschten Winkel einzusetzen. ", "POWERUP_ONTIME_UNIT" : "W%E4hlen Sie die Wartezeit bis zum Auto Relock, nachdem das T%FCrschloss entriegelt oder ge%F6ffnet wurde.

" + @@ -428,8 +428,8 @@ jQuery.extend(true,langJSON, { "Bei Frontalansicht auf das Ger%E4t ist

" + "
    " + - "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich rechts
  • " + - "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich links
  • " + + "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich links
  • " + + "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich rechts
  • " + "
  • Zone 3 = Der gesamte 360%B0-Winkelbereich unterhalb des Ger%E4tes
  • " + "


" + @@ -448,6 +448,38 @@ jQuery.extend(true,langJSON, { "DIM_LEVEL_HIGHEST" : "Dimmlevel ab dem das Leuchtmittel die maximale Helligkeit erreicht hat.", + "INPUT_COPRO_ENABLED" : + "Bei Aktivierung dieses Parameters wird der Kanal %FCber den CoProzessor ausgewertet, anstatt %FCber den HmIP-Prozessor.

" + + "Im Normalfall sollte die Auswertung %FCber den Coprozessor nicht aktiviert werden, " + + "da z. B. die Kan%E4le 1 und 2 nicht direkt vom Coprozessor auswertbar sind und die Auswertung %FCber den HmIP-Prozessor stromsparender ist. " + + "Aktivieren Sie diesen Parameter daher nur, wenn es in der Anleitung eines Applikationsmoduls gefordert wird.

" + + "Je nach verwendetem Applikationsmodul kann es erforderlich sein, die Auswertung %FCber den Coprozessor laufen zu lassen, " + + "um z.B. Schaltbefehle mit Bedingung oder Level nutzen zu k%F6nnen.

" + + "N%E4heres entnehmen Sie der Anleitung der jeweiligen Applikation.", + + "ESI_CHANNEL_OPERATION_MODE" : + "Der HmIP-ESI bestimmt den Sensortyp und das Protokoll automatisch. Das Ergebnis ist in diesem Feld eingetragen. " + + "Um den Vorgang der automatischen Erkennung nach einem Tausch vom Sensor oder Z%E4hler erneut zu starten, l%F6schen Sie das Ger%E4t und lernen es wieder an.", + + "ESI_METER_OBIS_SEARCH_STRING" : + "Anhand der OBIS-Kennzahlen identifiziert der HmIP-ESI die relevanten Daten vom Z%E4hler. Sie werden automatisch ermittelt. Liefert die automatische Ermittlung nicht die gew%FCnschten Werte, " + + "so k%F6nnen andere Kennzahlen im OBIS-Wertegruppenformat C.D.E eingetragen werden.

" + + "Mehrere Werte lassen sich zusammenfassen:

" + + "1.8.1+2+3 z. B. addiert 1.8.1 + 1.8.2 + 1.8.3

" + + "1 - 2.7.0 z. B. subtrahiert 1.7.0 - 2.7.0.", + + "CHANNEL_ACTIVE_CLIMATECONTROL" : + "Diese Checkbox dient dazu, Fehlermeldungen an unbenutzten Kan%E4len auf der Seite Status/Bedienung zu vermeiden. Aktivieren Sie diese Checkbox daher nur, wenn der Kanal auch benutzt wird.", + + "DISPLAY_MODE" : + "Mit diesem Parameter kann zwischen folgenden beiden Display-Layouts gew%E4hlt werden:

" + + "Reduzierter Modus
" + + "Die Informationen im Display sind auf ein Minimum reduziert, bei besonders gro%DFer Anzeige der Soll-Temperatur.

" + + "\"Funktioneller Modus
" + + "Im funktionellen Modus werden mehr Informationen auf dem Display dargestellt.
", + + "DISPLAY_INVERTED_COLORS" : "Mit diesem Parameter w%E4hlen Sie f%FCr das Display die normale Anzeige oder den Dunkelmodus.", + "noMoreHelp" : "" }, @@ -708,7 +740,7 @@ jQuery.extend(true,langJSON, { "

This function must be deactivated for rooms with a 24/7 permanent occupancy. In this case, a manual calibration should be performed every 1-2 years.", "MOUNTING_ORIENTATION" : "This parameter makes it possible to rotate the display content by 180 degrees.", - "MOUNTING_ORIENTATION_A" : "This parameter enables the push-button unit of the actuator to be placed at the required angle.", + "MOUNTING_ORIENTATION_A" : "This parameter enables the actuator to be placed at the required angle.", "POWERUP_ONTIME_UNIT" : "Select the delay time until Auto Relock is executed after the door lock has been unlocked or opened.

" + @@ -866,20 +898,20 @@ jQuery.extend(true,langJSON, { "Make sure that the functionality of the DALI group corresponds to the functionality of the DALI luminaire that is assigned to the group and has the lowest channel number.", "PYRO_CHANNEL_OPERATION_MODE" : - "en* W%E4hlen Sie hier eine der drei m%F6glichen Erfassungszonen, die f%FCr diesen Kanal genutzt werden sollen.

" + + "Here, select one of the three possible detection zones that should be used for this channel.

" + - "Welche Zone befindet sich wo am Ger%E4t?

" + + "Which zone is located where on the device?

" + - "Bei Frontalansicht auf das Ger%E4t ist

" + + "With a frontal view of the device

" + "
    " + - "
  • Zone 1 = Der gesamte 90%B0-Winkelbereich rechts
  • " + - "
  • Zone 2 = Der gesamte 90%B0-Winkelbereich links
  • " + - "
  • Zone 3 = Der gesamte 360%B0-Winkelbereich unterhalb des Ger%E4tes
  • " + + "
  • Zone 1 = The entire 90%B0 angle area on the left
  • " + + "
  • Zone 2 = The entire 90%B0 angle area on the right
  • " + + "
  • Zone 3 = Zone 3 = The entire 360%B0 angle area below the device
  • " + "


" + - "Achtung

" + - "Folgende Parameter der Kan%E4le 1 bis 3 beeinflussen die jeweilige Zone 1 - 3:

" + + "Important!

" + + "The following parameters of channels 1 to 3 influence the relevant Zone 1 - 3.:

" + "
    " + "
  • ${stringTableSensivity}
  • " + @@ -888,10 +920,43 @@ jQuery.extend(true,langJSON, { "
", "DIM_LEVEL_LOWEST" : - "en* Dimmlevel, ab dem das Leuchtmittel zu leuchten beginnt bzw. beginnt, heller zu werden.

" + - "Zu beachten ist, dass dieser Wert nicht kleiner sein kann, als der Wert, der beim Parameter Minimaler Pegel im Zustand EIN eingestellt ist.", - - "DIM_LEVEL_HIGHEST" : "en* Dimmlevel ab dem das Leuchtmittel die maximale Helligkeit erreicht hat.", + "Dimming level from which the lamp starts to light up or starts to become brighter.

" + + "It must be noted that this value cannot be lower than the value that is set in the parameter Minimum level in ON state.", + + "DIM_LEVEL_HIGHEST" : "Dimming level from which the lamp has reached maximum brightness.", + + "INPUT_COPRO_ENABLED" : + "When this parameter is activated, the channel is evaluated via the co-processor instead of the HmIP processor.

" + + "Under normal circumstances, evaluation via the co-processor should not be activated, " + + "as channels 1 and 2, for example, cannot be evaluated by the co-processor directly, plus evaluation via the HmIP processor is more energy-efficient. " + + "Therefore, you should only activate this parameter if so instructed in the manual for an application module.

" + + "Depending on which application module you use, it may be necessary to conduct the evaluation via the co-processor " + + "in order to use switching commands with a condition or level.

" + + "Please refer to your application's manual for more information.", + + + "ESI_CHANNEL_OPERATION_MODE" : + "The HmIP-ESI determines the sensor type and the protocol automatically. The result is entered in this field. " + + "To restart the automatic detection process after replacing the sensor or meter, delete the device and teach it in again.", + + "ESI_METER_OBIS_SEARCH_STRING" : + "The HmIP-ESI identifies the relevant data from the meter based on the OBIS identification numbers. The data is determined automatically. If the automatic determination process does not deliver the required values, " + + "you can enter other identification numbers in the OBIS value group format C.D.E.

" + + "Multiple values can be grouped together:

" + + "1.8.1+2+3, for example, denotes addition: 1.8.1 + 1.8.2 + 1.8.3

" + + "1 - 2.7.0, for example, denotes subtraction: 1.7.0 - 2.7.0.", + + "CHANNEL_ACTIVE_CLIMATECONTROL" : + "This checkbox is used to avoid error messages for unused channels on the status/operation screen. Therefore, only activate this checkbox if the channel is actually being used.", + + "DISPLAY_MODE" : + "en* Mit diesem Parameter kann zwischen folgenden beiden Display-Layouts gew%E4hlt werden:

" + + "Reduzierter Modus
" + + "Die Informationen im Display sind auf ein Minimum reduziert, bei besonders gro%DFer Anzeige der Soll-Temperatur.

" + + "\"Funktioneller Modus
" + + "Im funktionellen Modus werden mehr Informationen auf dem Display dargestellt.
", + + "DISPLAY_INVERTED_COLORS" : "en* Mit diesem Parameter w%E4hlen Sie f%FCr das Display die normale Anzeige oder den Dunkelmodus.", "noMoreHelp" : "" } diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch index 576da297e8..1123c8f078 100644 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch +++ b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch @@ -1,40 +1,26 @@ ---- occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl.orig -+++ occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl -@@ -2685,6 +2685,8 @@ - hmip-fsm {return true} - hmip-fsm16 {return true} - hmip-psm {return true} -+ hmip-psm-2 {return true} -+ "hmip-psm-2 qhj" {return true} - hmip-usbsm {return true} - default {return false} - } --- occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig +++ occu/WebUI/www/config/easymodes/etc/uiElements.tcl -@@ -33,6 +33,8 @@ +@@ -32,9 +32,9 @@ + if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return 3680.0} -+ hmip-psm-2 - -+ "hmip-psm-2 qhj" {return 3000.0} - hmip-bsm - - hmip-fsm {return 1150.0} - hmip-usbsm {return 60.0} -@@ -44,6 +46,8 @@ + hmip-psm - +- hmip-psm-2 - +- "hmip-psm-2 qhj" - + hmip-fsm16 {return 3680.00} ++ hmip-psm-2 - ++ "hmip-psm-2 qhj" {return 3000.00} + hmip-bsm - + hmip-fsm {return 1150.00} + hmip-usbsm {return 60.00} +@@ -45,9 +45,9 @@ + if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return "3680.00"} -+ hmip-psm-2 - -+ "hmip-psm-2 qhj" {return "3000.00"} - hmip-bsm - - hmip-fsm {return "1150.00"} - hmip-usbsm {return "60.00"} -@@ -182,6 +186,8 @@ - proc getUserDefinedCondTXThresholdUnitMinMaxDescr {devType param} { - switch [string tolower $devType] { hmip-psm - +- hmip-psm-2 - +- "hmip-psm-2 qhj" - + hmip-fsm16 {return "3680.00"} + hmip-psm-2 - -+ "hmip-psm-2 qhj" - - hmip-fsm16 - ++ "hmip-psm-2 qhj" {return "3000.00"} hmip-bsm - - hmip-fsm - + hmip-fsm {return "1150.00"} + hmip-usbsm {return "60.00"} diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl deleted file mode 100755 index 4233b1f164..0000000000 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl +++ /dev/null @@ -1,2765 +0,0 @@ -#!/bin/tclsh - - -# type = 'delay' or 'timeOnOff' -# base = Unit, factor = value -proc getComboBox {prn pref specialElement type {extraparam ""}} { - global psDescr - upvar ps ps - set s "" - - switch $type { - - "autoInterval" { - append s [getAutoInterval $prn $pref $specialElement] - } - - "delay" { - append s [getDelay $prn $pref $specialElement] - } - - "delayShort" { - append s [getDelayShort $prn $pref $specialElement] - } - - "delayShortA" { - append s [getDelayShortA $prn $pref $specialElement] - } - - "eventDelay" { - append s [getPanelA $prn $pref $specialElement "eventDelay"] - } - - "eventFilterTime" { - append s [getEventFilterTime $prn $pref $specialElement] - } - - "eventRandomTime" { - append s [getPanelA $prn $pref $specialElement "eventRandomTime"] - } - - "txMinDelay" { - append s [getPanelA $prn $pref $specialElement] - } - "delay0To20M_step2M" { - append s [getDelay0to20M_step2M $prn $pref $specialElement] - } - - "timeMin_10_15_20_25_30" { - append s [getMin_10_15_20_25_30 $prn $pref $specialElement] - } - - "timeOnOff" { - append s [getTimeOnOff $prn $pref $specialElement] - } - - "timeOnOffShort" { - append s [getTimeOnOffShort $prn $pref $specialElement] - } - - - "rampOnOff" { - append s [getRampOnOff $prn $pref $specialElement $extraparam] - } - - "switchingInterval" { - append s [getSwitchingInterval $prn $pref $specialElement] - } - - "switchingIntervalOnTime" { - append s [getSwitchingIntervalOnTime $prn $pref $specialElement] - } - - "blindRunningTime" { - append s [getBlindRunningTime $prn $pref $specialElement] - } - - "slatRunningTime" { - append s [getSlatRunningTime $prn $pref $specialElement] - } - - "alarmTimeMax10Min" { - append s [getAlarmTimeMax10Min $prn $pref $specialElement] - } - - "blink" { - append s [getBlink $prn $pref $specialElement] - } - - "blink0" { - append s [getBlink $prn $pref $specialElement] - } - - "interval_1D_7D_14D_28D" { - append s [getInterval_1D_7D_14D_28D $prn $pref $specialElement] - } - - } - - return $s -} - -proc getPanelA {prn pref specialElement {paramType ""}} { - set s "" - append s "" - append s "" - - if {$paramType == "eventDelay"} { - append s " [getHelpIcon EVENT_DELAY 450 75]" - } - - if {$paramType == "eventRandomTime"} { - append s " [getHelpIcon EVENT_RANDOMTIME 450 75]" - } - - append s "" - - append s "" - - return $s -} - -proc getDelayShort {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getDelayShortA {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getEventFilterTime {prn pref specialElement} { - set helpEvemtFilterTime EVENT_FILTER_TIME - set s "" - append s "" - append s "  " - - append s [getHelpIcon $helpEvemtFilterTime] - - append s "" - - append s "" - - return $s -} - -proc getDelay0to20M_step2M {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getDelay {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s - -} - -proc getTimeOnOffShort {prn pref specialElement {extraparam ""}} { - set s "" - append s "" - append s "" - append s "" - - append s "" - return $s -} - -# Returns a option list with values for the ontime delay, offtime delay and so on -proc getTimeOnOff {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - return $s -} - -proc getRampOnOff {prn pref specialElement {extraparam ""}} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getSwitchingInterval {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getInterval_1D_7D_14D_28D {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getSwitchingIntervalOnTime {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -## START ## - -proc getAutoInterval {prn pref specialElement} { - set s "" - append s "" - append s "" - - append s " [getHelpIcon AUTO_SENSOR_CLEANING 600 150]" - - append s "" - - append s "" - - return $s -} - -## END ## - -proc getBlindRunningTime {prn pref specialElement} { - set helpRunningTime BLIND_REFERENCE_RUNNING_TIME - - set s "" - append s "" - append s " " - append s [getHelpIcon $helpRunningTime] - append s "" - - append s "" - - return $s -} - -proc getSlatRunningTime {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getMin_10_15_20_25_30 {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getAlarmTimeMax10Min {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getBlink {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -## - -proc trimParam {param} { - set s [string trimleft $param '] - set s [string trimright $s '] - return $s -} - -proc getEventFilterNumber {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - set s "" - append s "\${[getDescription $param\_A $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBox {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxB {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxC {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxD {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxShort {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set trName "" - set specialVal0 "" - set specialVal1 "" - - if {[string equal $extraparam ""] != 1} { - set specialVal0 [lindex [split $extraparam =] 0] - set specialVal1 [lindex [split $extraparam =] 1] - - if {[string equal $specialVal0 "trNAME"] != -1 } { - set trName name=$specialVal1 - } - } - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnit10ms_100ms_1s_10s {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getDescription {param {extraparam ""}} { - set result $param - set desc(REPEATED_LONG_PRESS_TIMEOUT_UNIT) "stringTableKeyLongPressTimeOutUnit" - set desc(EVENT_DELAY_UNIT) "stringTableEventDelayUnit" - set desc(EVENT_RANDOMTIME_UNIT) "stringTableEventRandomTimeUnit" - set desc(POWER_OFFDELAY_UNIT) "stringTableOffDelayUnit" - set desc(POWERUP_ONDELAY_UNIT) "stringTableOnDelayUnit" - set desc(POWERUP_OFFDELAY_UNIT) "stringTableOffDelayUnit" - set desc(POWERUP_ONTIME_UNIT) "stringTableOnTimeUnit" - set desc(POWERUP_OFFTIME_UNIT) "stringTableOffTimeUnit" - set desc(ON_TIME_BASE) "stringTableOnTimeUnit" - - set desc(OFFDELAY_TIME_BASE) "stringTableOffDelayUnit" - set desc(ONDELAY_TIME_BASE) "stringTableOnDelayUnit" - - set desc(SWITCHING_INTERVAL_BASE) "stringTableSwitchingIntervalBase" - set desc(TX_MINDELAY_UNIT) "stringTableTxMinDelayUnit" - set desc(REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT) "stringTableTimeBottomTopUnit" - set desc(REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT) "stringTableTimeTopBottomUnit" - set desc(REFERENCE_RUNNING_TIME_SLATS_UNIT) "stringTableTimeSlatsUnit" - set desc(BLOCKING_PERIOD_UNIT) "stringTableBlockingPeriodUnit" - set desc(EVENT_FILTER_NUMBER) "stringTableEventFilterNumber" - set desc(EVENT_FILTER_NUMBER_A) "stringTableEventFilterNumberA" - set desc(INTERVAL_UNIT) "stringTableCalibrationIntervalUnit" - - # Special handling of parameters - if {[string equal $extraparam 'rainDrop'] != 1} { - set desc(EVENT_BLINDTIME_BASE) "stringTableEventBlindTimeBase" - } else { - # special for rain recognition - set desc(EVENT_BLINDTIME_BASE) "eventTimeoutBaseRainDrop" - } - - if {[string equal $extraparam 'rainCounter'] != 1} { - set desc(EVENT_TIMEOUT_BASE) "stringTableEventTimeoutBase" - } else { - # special for rain counter - set desc(EVENT_TIMEOUT_BASE) "eventTimeoutBaseRainCounter" - } - - if {[catch {set result $desc($param)}]} { - return $result - } - return $result -} - -proc getMaintenanceAddress {channelAddress} { - set parentAddress [lindex [split $channelAddress :] 0] - return "$parentAddress:0" -} - -proc getChannel {special_input_id} { - return [lindex [split $special_input_id _] 1] -} - -proc getSpecialID {special_input_id} { - return "[lindex [split $special_input_id _] 0]" -} - -proc isLongKeypressAvailable {sender sender_address url} { - - # Here we check for certain device types without a long keypress. - set devWithoutLongKeyPress { - HmIP-ASIR - } - - foreach item $devWithoutLongKeyPress { - if {$item == $sender} {return false} - } - - # Here we test for all devices with a long keypress available, if the config parameter LONG_PRESS_TIME is set to a value == 0. - # If true, the long keypress doesn't work and should not be available for easymode profiles. - set result true - catch { - array set sender_ch_ps [xmlrpc $url getParamset $sender_address MASTER] - if {$sender_ch_ps(LONG_PRESS_TIME) == 0.000000} { - set result false - } - } - return $result -} - -proc devIsPowerMeter {devType} { - switch [string tolower $devType] { - hmip-bsm {return true} - hmip-fsm {return true} - hmip-fsm16 {return true} - hmip-psm {return true} - hmip-psm-2 {return true} - "hmip-psm-2 qhj" {return true} - hmip-usbsm {return true} - default {return false} - } -} - -proc getDevFirmware {} { - global dev_descr - return $dev_descr(FIRMWARE) -} - -proc getDevFwMajorMinorPatch {} { - global dev_descr - - # Firmware = x.y.z - set firmWare $dev_descr(FIRMWARE) - set fwMajorMinorPatch [split $firmWare .] - - set fw {} - - lappend fw [expr [lindex $fwMajorMinorPatch 0] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 1] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 2] * 1] - - return $fw -} - -proc getReceiverFw {} { - global url receiver_address dev_descr_receiver - array set dev_descr [xmlrpc $url getDeviceDescription $dev_descr_receiver(PARENT)] - - # Firmware (wthFw) = x.y.z - set wthFw $dev_descr(FIRMWARE) - set fwMajorMinorPatch [split $wthFw .] - - set fw {} - - lappend fw [expr [lindex $fwMajorMinorPatch 0] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 1] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 2] * 1] - - return $fw -} - - -# This can be used to return the original parameter name of a translation key -proc extractParamFromTranslationKey {key} { - - # A parameter key looks like ${thisIsTheKey} - # Here we remove the leading '${' and the trailing '}' so that we have the clean key - set key [string trim [string trim $key "\$\{"] "\}"] - - set ret "" - switch $key { - "channelModeTactileSwitch" {set ret TACTILE_SWITCH_INPUT} - } - return $ret -} - -# Some wall thermostats don't have a humidity sensor. -# We have to consider this in some easymodes. -# With this function you can maintain a list of such devices. -proc hasSenderHumiditySensor {} { - global dev_descr_sender - set senderType $dev_descr_sender(PARENT_TYPE) - set result true - - # List with thermostats without a humidity sensor - set devHasNoHumiditySensor {ALPHA-IP-RBGa} - - foreach val $devHasNoHumiditySensor { - if {$val == $senderType} { - set result false - } - } - return $result -} \ No newline at end of file diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl.orig b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl.orig deleted file mode 100755 index 6c35df9327..0000000000 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/hmip_helper.tcl.orig +++ /dev/null @@ -1,2763 +0,0 @@ -#!/bin/tclsh - - -# type = 'delay' or 'timeOnOff' -# base = Unit, factor = value -proc getComboBox {prn pref specialElement type {extraparam ""}} { - global psDescr - upvar ps ps - set s "" - - switch $type { - - "autoInterval" { - append s [getAutoInterval $prn $pref $specialElement] - } - - "delay" { - append s [getDelay $prn $pref $specialElement] - } - - "delayShort" { - append s [getDelayShort $prn $pref $specialElement] - } - - "delayShortA" { - append s [getDelayShortA $prn $pref $specialElement] - } - - "eventDelay" { - append s [getPanelA $prn $pref $specialElement "eventDelay"] - } - - "eventFilterTime" { - append s [getEventFilterTime $prn $pref $specialElement] - } - - "eventRandomTime" { - append s [getPanelA $prn $pref $specialElement "eventRandomTime"] - } - - "txMinDelay" { - append s [getPanelA $prn $pref $specialElement] - } - "delay0To20M_step2M" { - append s [getDelay0to20M_step2M $prn $pref $specialElement] - } - - "timeMin_10_15_20_25_30" { - append s [getMin_10_15_20_25_30 $prn $pref $specialElement] - } - - "timeOnOff" { - append s [getTimeOnOff $prn $pref $specialElement] - } - - "timeOnOffShort" { - append s [getTimeOnOffShort $prn $pref $specialElement] - } - - - "rampOnOff" { - append s [getRampOnOff $prn $pref $specialElement $extraparam] - } - - "switchingInterval" { - append s [getSwitchingInterval $prn $pref $specialElement] - } - - "switchingIntervalOnTime" { - append s [getSwitchingIntervalOnTime $prn $pref $specialElement] - } - - "blindRunningTime" { - append s [getBlindRunningTime $prn $pref $specialElement] - } - - "slatRunningTime" { - append s [getSlatRunningTime $prn $pref $specialElement] - } - - "alarmTimeMax10Min" { - append s [getAlarmTimeMax10Min $prn $pref $specialElement] - } - - "blink" { - append s [getBlink $prn $pref $specialElement] - } - - "blink0" { - append s [getBlink $prn $pref $specialElement] - } - - "interval_1D_7D_14D_28D" { - append s [getInterval_1D_7D_14D_28D $prn $pref $specialElement] - } - - } - - return $s -} - -proc getPanelA {prn pref specialElement {paramType ""}} { - set s "" - append s "" - append s "" - - if {$paramType == "eventDelay"} { - append s " [getHelpIcon EVENT_DELAY 450 75]" - } - - if {$paramType == "eventRandomTime"} { - append s " [getHelpIcon EVENT_RANDOMTIME 450 75]" - } - - append s "" - - append s "" - - return $s -} - -proc getDelayShort {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getDelayShortA {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getEventFilterTime {prn pref specialElement} { - set helpEvemtFilterTime EVENT_FILTER_TIME - set s "" - append s "" - append s "  " - - append s [getHelpIcon $helpEvemtFilterTime] - - append s "" - - append s "" - - return $s -} - -proc getDelay0to20M_step2M {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getDelay {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s - -} - -proc getTimeOnOffShort {prn pref specialElement {extraparam ""}} { - set s "" - append s "" - append s "" - append s "" - - append s "" - return $s -} - -# Returns a option list with values for the ontime delay, offtime delay and so on -proc getTimeOnOff {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - return $s -} - -proc getRampOnOff {prn pref specialElement {extraparam ""}} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getSwitchingInterval {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getInterval_1D_7D_14D_28D {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getSwitchingIntervalOnTime {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -## START ## - -proc getAutoInterval {prn pref specialElement} { - set s "" - append s "" - append s "" - - append s " [getHelpIcon AUTO_SENSOR_CLEANING 600 150]" - - append s "" - - append s "" - - return $s -} - -## END ## - -proc getBlindRunningTime {prn pref specialElement} { - set helpRunningTime BLIND_REFERENCE_RUNNING_TIME - - set s "" - append s "" - append s " " - append s [getHelpIcon $helpRunningTime] - append s "" - - append s "" - - return $s -} - -proc getSlatRunningTime {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getMin_10_15_20_25_30 {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getAlarmTimeMax10Min {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -proc getBlink {prn pref specialElement} { - set s "" - append s "" - append s "" - append s "" - - append s "" - - return $s -} - -## - -proc trimParam {param} { - set s [string trimleft $param '] - set s [string trimright $s '] - return $s -} - -proc getEventFilterNumber {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - set s "" - append s "\${[getDescription $param\_A $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBox {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxB {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxC {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxD {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnitComboBoxShort {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set trName "" - set specialVal0 "" - set specialVal1 "" - - if {[string equal $extraparam ""] != 1} { - set specialVal0 [lindex [split $extraparam =] 0] - set specialVal1 [lindex [split $extraparam =] 1] - - if {[string equal $specialVal0 "trNAME"] != -1 } { - set trName name=$specialVal1 - } - } - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getTimeUnit10ms_100ms_1s_10s {param value chn prn special_input_id {extraparam ""}} { - set param [trimParam $param] - set elemId 'separate_$special_input_id\_$prn' - set j_elemId '#separate_$special_input_id\_$prn' - - set s "" - append s "\${[getDescription $param $extraparam]}" - append s "" - append s "" - append s "" - append s "" - append s "" - return $s -} - -proc getDescription {param {extraparam ""}} { - set result $param - set desc(REPEATED_LONG_PRESS_TIMEOUT_UNIT) "stringTableKeyLongPressTimeOutUnit" - set desc(EVENT_DELAY_UNIT) "stringTableEventDelayUnit" - set desc(EVENT_RANDOMTIME_UNIT) "stringTableEventRandomTimeUnit" - set desc(POWER_OFFDELAY_UNIT) "stringTableOffDelayUnit" - set desc(POWERUP_ONDELAY_UNIT) "stringTableOnDelayUnit" - set desc(POWERUP_OFFDELAY_UNIT) "stringTableOffDelayUnit" - set desc(POWERUP_ONTIME_UNIT) "stringTableOnTimeUnit" - set desc(POWERUP_OFFTIME_UNIT) "stringTableOffTimeUnit" - set desc(ON_TIME_BASE) "stringTableOnTimeUnit" - - set desc(OFFDELAY_TIME_BASE) "stringTableOffDelayUnit" - set desc(ONDELAY_TIME_BASE) "stringTableOnDelayUnit" - - set desc(SWITCHING_INTERVAL_BASE) "stringTableSwitchingIntervalBase" - set desc(TX_MINDELAY_UNIT) "stringTableTxMinDelayUnit" - set desc(REFERENCE_RUNNING_TIME_BOTTOM_TOP_UNIT) "stringTableTimeBottomTopUnit" - set desc(REFERENCE_RUNNING_TIME_TOP_BOTTOM_UNIT) "stringTableTimeTopBottomUnit" - set desc(REFERENCE_RUNNING_TIME_SLATS_UNIT) "stringTableTimeSlatsUnit" - set desc(BLOCKING_PERIOD_UNIT) "stringTableBlockingPeriodUnit" - set desc(EVENT_FILTER_NUMBER) "stringTableEventFilterNumber" - set desc(EVENT_FILTER_NUMBER_A) "stringTableEventFilterNumberA" - set desc(INTERVAL_UNIT) "stringTableCalibrationIntervalUnit" - - # Special handling of parameters - if {[string equal $extraparam 'rainDrop'] != 1} { - set desc(EVENT_BLINDTIME_BASE) "stringTableEventBlindTimeBase" - } else { - # special for rain recognition - set desc(EVENT_BLINDTIME_BASE) "eventTimeoutBaseRainDrop" - } - - if {[string equal $extraparam 'rainCounter'] != 1} { - set desc(EVENT_TIMEOUT_BASE) "stringTableEventTimeoutBase" - } else { - # special for rain counter - set desc(EVENT_TIMEOUT_BASE) "eventTimeoutBaseRainCounter" - } - - if {[catch {set result $desc($param)}]} { - return $result - } - return $result -} - -proc getMaintenanceAddress {channelAddress} { - set parentAddress [lindex [split $channelAddress :] 0] - return "$parentAddress:0" -} - -proc getChannel {special_input_id} { - return [lindex [split $special_input_id _] 1] -} - -proc getSpecialID {special_input_id} { - return "[lindex [split $special_input_id _] 0]" -} - -proc isLongKeypressAvailable {sender sender_address url} { - - # Here we check for certain device types without a long keypress. - set devWithoutLongKeyPress { - HmIP-ASIR - } - - foreach item $devWithoutLongKeyPress { - if {$item == $sender} {return false} - } - - # Here we test for all devices with a long keypress available, if the config parameter LONG_PRESS_TIME is set to a value == 0. - # If true, the long keypress doesn't work and should not be available for easymode profiles. - set result true - catch { - array set sender_ch_ps [xmlrpc $url getParamset $sender_address MASTER] - if {$sender_ch_ps(LONG_PRESS_TIME) == 0.000000} { - set result false - } - } - return $result -} - -proc devIsPowerMeter {devType} { - switch [string tolower $devType] { - hmip-bsm {return true} - hmip-fsm {return true} - hmip-fsm16 {return true} - hmip-psm {return true} - hmip-usbsm {return true} - default {return false} - } -} - -proc getDevFirmware {} { - global dev_descr - return $dev_descr(FIRMWARE) -} - -proc getDevFwMajorMinorPatch {} { - global dev_descr - - # Firmware = x.y.z - set firmWare $dev_descr(FIRMWARE) - set fwMajorMinorPatch [split $firmWare .] - - set fw {} - - lappend fw [expr [lindex $fwMajorMinorPatch 0] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 1] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 2] * 1] - - return $fw -} - -proc getReceiverFw {} { - global url receiver_address dev_descr_receiver - array set dev_descr [xmlrpc $url getDeviceDescription $dev_descr_receiver(PARENT)] - - # Firmware (wthFw) = x.y.z - set wthFw $dev_descr(FIRMWARE) - set fwMajorMinorPatch [split $wthFw .] - - set fw {} - - lappend fw [expr [lindex $fwMajorMinorPatch 0] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 1] * 1] - lappend fw [expr [lindex $fwMajorMinorPatch 2] * 1] - - return $fw -} - - -# This can be used to return the original parameter name of a translation key -proc extractParamFromTranslationKey {key} { - - # A parameter key looks like ${thisIsTheKey} - # Here we remove the leading '${' and the trailing '}' so that we have the clean key - set key [string trim [string trim $key "\$\{"] "\}"] - - set ret "" - switch $key { - "channelModeTactileSwitch" {set ret TACTILE_SWITCH_INPUT} - } - return $ret -} - -# Some wall thermostats don't have a humidity sensor. -# We have to consider this in some easymodes. -# With this function you can maintain a list of such devices. -proc hasSenderHumiditySensor {} { - global dev_descr_sender - set senderType $dev_descr_sender(PARENT_TYPE) - set result true - - # List with thermostats without a humidity sensor - set devHasNoHumiditySensor {ALPHA-IP-RBGa} - - foreach val $devHasNoHumiditySensor { - if {$val == $senderType} { - set result false - } - } - return $result -} \ No newline at end of file diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl index 112084e8f3..0f63c8a97e 100755 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl +++ b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl @@ -31,27 +31,27 @@ proc getMaxValue {param} { proc getUserDefinedMaxValue {devType {extraparam ""}} { if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return 3680.0} - hmip-psm-2 - - "hmip-psm-2 qhj" {return 3000.0} - hmip-bsm - - hmip-fsm {return 1150.0} - hmip-usbsm {return 60.0} - default {return "max value not available"} + hmip-psm - + hmip-fsm16 {return 3680.00} + hmip-psm-2 - + "hmip-psm-2 qhj" {return 3000.00} + hmip-bsm - + hmip-fsm {return 1150.00} + hmip-usbsm {return 60.00} + default {return "max value not available"} } } if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return "3680.00"} - hmip-psm-2 - - "hmip-psm-2 qhj" {return "3000.00"} - hmip-bsm - - hmip-fsm {return "1150.00"} - hmip-usbsm {return "60.00"} - default {return "max value not available"} + hmip-psm - + hmip-fsm16 {return "3680.00"} + hmip-psm-2 - + "hmip-psm-2 qhj" {return "3000.00"} + hmip-bsm - + hmip-fsm {return "1150.00"} + hmip-usbsm {return "60.00"} + default {return "max value not available"} } } @@ -168,7 +168,10 @@ proc getUnit {param} { proc getCondTXThresholdUnit {devType chn} { switch [string tolower $devType] { - hmip-stho { + hmip-stho + hmip-stho-a + elv-sh-cth + { if {$chn == "2"} {return "°C"} if {$chn == "3"} {return "%"} } @@ -539,6 +542,8 @@ proc getHelpIcon {topic {x 0} {y 0}} { "DIM_LEVEL_LOWEST" {set x 450; set y 125} "DIM_STEP" {set x 500; set y 150} "DISABLE_DEVICE_ALIVE_SIGNAL" {set x 500; set y 75 } + "DISPLAY_MODE" {set x 500; set y 200 } + "DISPLAY_INVERTED_COLORS" {set x 550; set y 60 } "DURATION_5MIN" {set x 500; set y 160} "ENABLE_ROUTING" {set x 500; set y 120} "EVENT_FILTER_NUMBER_motionDetect" {set x 400; set y 60} diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig index 43861b7a1f..a662519deb 100755 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig +++ b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/easymodes/etc/uiElements.tcl.orig @@ -31,23 +31,27 @@ proc getMaxValue {param} { proc getUserDefinedMaxValue {devType {extraparam ""}} { if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return 3680.0} - hmip-bsm - - hmip-fsm {return 1150.0} - hmip-usbsm {return 60.0} - default {return "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return 3680.00} + hmip-bsm - + hmip-fsm {return 1150.00} + hmip-usbsm {return 60.00} + default {return "max value not available"} } } if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { - hmip-psm - - hmip-fsm16 {return "3680.00"} - hmip-bsm - - hmip-fsm {return "1150.00"} - hmip-usbsm {return "60.00"} - default {return "max value not available"} + hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - + hmip-fsm16 {return "3680.00"} + hmip-bsm - + hmip-fsm {return "1150.00"} + hmip-usbsm {return "60.00"} + default {return "max value not available"} } } @@ -164,7 +168,10 @@ proc getUnit {param} { proc getCondTXThresholdUnit {devType chn} { switch [string tolower $devType] { - hmip-stho { + hmip-stho + hmip-stho-a + elv-sh-cth + { if {$chn == "2"} {return "°C"} if {$chn == "3"} {return "%"} } @@ -182,6 +189,8 @@ proc getCondTXThresholdUnit {devType chn} { proc getUserDefinedCondTXThresholdUnitMinMaxDescr {devType param} { switch [string tolower $devType] { hmip-psm - + hmip-psm-2 - + "hmip-psm-2 qhj" - hmip-fsm16 - hmip-bsm - hmip-fsm - @@ -533,6 +542,8 @@ proc getHelpIcon {topic {x 0} {y 0}} { "DIM_LEVEL_LOWEST" {set x 450; set y 125} "DIM_STEP" {set x 500; set y 150} "DISABLE_DEVICE_ALIVE_SIGNAL" {set x 500; set y 75 } + "DISPLAY_MODE" {set x 500; set y 200 } + "DISPLAY_INVERTED_COLORS" {set x 550; set y 60 } "DURATION_5MIN" {set x 500; set y 160} "ENABLE_ROUTING" {set x 500; set y 120} "EVENT_FILTER_NUMBER_motionDetect" {set x 400; set y 60}