diff --git a/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel.patch b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel.patch new file mode 100644 index 0000000000..bf6f4df210 --- /dev/null +++ b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel.patch @@ -0,0 +1,11 @@ +--- ./www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig ++++ ./www/config/easymodes/etc/hmipChannelConfigDialogs.tcl +@@ -1119,7 +1119,7 @@ + append html "};" + + append html "window.setTimeout(function() {" +- append html "var elmOperationMode = jQuery(\"#separate_$CHANNEL\_2\")," ++ append html "var elmOperationMode = jQuery(\"#separate_$CHANNEL\_1\")," + append html "mode = elmOperationMode.val()," + append html "chn = elmOperationMode.prop(\"id\").split(\"_\")\[2\];" + append html "showHideKeyParams(mode, chn);" diff --git a/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl new file mode 100644 index 0000000000..62a019e18e --- /dev/null +++ b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl @@ -0,0 +1,6561 @@ +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/hmipHeatingClimateControlTransceiverEffect.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) || ([string equal $devType "HmIP-RFUSB"] == 1)} { + append html "[getNoParametersToSet]" + return $html + } + + if {[string equal $devType "HmIP-DRG-DALI"] == 1} { + append html "" + append html "\${lblRefreshDaliDevices}" + append html "" + append html "" + append html "[getHorizontalLine]" + append 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-A"] != 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 "" + } + } + + # INPUT_1_COPRO_ENABLED - INPUT_X_COPRO_ENABLED + if {[string equal $devType "ELV-SH-BM-S"] == 1} { + for {set loop 1} {$loop <= 4} {incr loop} { + if {[info exists ps(INPUT_$loop\_COPRO_ENABLED)] == 1} { + if {$loop == 1} {append html "[getHorizontalLine]"} + incr prn + append html "" + append html "\${stringTableInputCoProEnabled_$loop}" + append html "[getCheckBox 'INPUT_$loop\_COPRO_ENABLED' $ps(INPUT_$loop\_COPRO_ENABLED) $chn $prn] [getHelpIcon INPUT_COPRO_ENABLED]" + append html "" + if {$loop == 4} {append html "[getHorizontalLine]"} + } + } + } + + 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 + if {[string equal $devType "HmIP-STI"] != 1} { + option RAW_0_100Percent + } else { + # HmIP-STI = 0 - 4 + for {set val 0} {$val <= 4} {incr val} { + set options($val) "[expr $val + 1]" + } + } + + append html "" + if {([string first "HmIP-SMO230" $devType] != -1) || ([string first "HmIPW-SMO230" $devType] != -1)} { + append html "\${stringTableDeviceSensorSensibilitySabotage}" + } else { + append html "\${stringTableDeviceSensorSensibility}" + } + + if {[string equal $devType "HmIP-STI"] != 1} { + append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" + } else { + # HmIP-STI + 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) + && ([string first "HmIP-BDT" $devType] == -1) + && ([string first "HmIP-eTRV-F" $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 DISPLAY_MODE + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDisplayModeETRV}" + array_clear options + set options(0) "\${optionReducedMode}" + set options(1) "\${optionFunctionalMode}" + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + append html "" + } + + set param DISPLAY_INVERTED_COLORS + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDisplayColor}" + array_clear options + set options(0) "\${optionNormalColors}" + set options(1) "\${optionInvertedColors}" + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + 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-A"] == 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-A"] == 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-A"] == 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) && ([string equal $devType "HmIP-DLD-A"] != 1) && ([string equal $devType "HmIP-DLD-S"] != 1) && ([string equal $devType "HmIP-SMO230"] != 1) && ([string equal $devType "HmIP-SMO230-A"] != 1) && ([string equal $devType "HmIPW-SMO230"] != 1) && ([string equal $devType "HmIPW-SMO230-A"] != 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 LED_DISABLE_SENDSTATE + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableLEDDisableSendState}" + 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}" + } + + if {[lsearch $valueList LEVEL_KEY_BEHAVIOR ] != -1} { + set options(4) "\${stringTableKeyTransceiverChannelOperationModeLevelKeyBehavior}" + } + + if {[lsearch $valueList CONDITIONAL_BEHAVIOR ] != -1} { + set options(5) "\${stringTableKeyTransceiverChannelOperationModeConditionalBehavior}" + } + + 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 getSwitchTransceiver {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 specialID "[getSpecialID $special_input_id]" + + set html "" + +## puts "" + + set param POWERUP_JUMPTARGET + if { [info exists ps($param)] == 1 } { + append html [getPowerUpSelector $chn ps $special_input_id] + } + + 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 "" + } + + 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 + catch { + 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 + catch { + 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 "" + } + + set param DELAY_COMPENSATION + if { [info exists ps($param)] == 1 } { + + append html "[getHorizontalLine]" + + # 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 _chn $chn + + set prn 0 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + 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}" + + if { ($fwMajor >= 2) || (($fwMajor == 2) && ($fwMinor >= 1)) || (($fwMajor == 2) && ($fwMinor == 1) && ($fwPatch >= 12)) } { + set options(2) "\${optionAdjustDimmerLevel}" + } + + } 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=\"showAdjustDimmingRange(this.value,$chn)\"] + append html "" + } + + set param DIM_LEVEL_LOWEST + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableDimmerLevelLowest}" + append html "[getTextField $param $ps($param) $chn $prn $ps(ON_MIN_LEVEL) onchange=checkDimLevelLowest(this)] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" + append html "" + } + + set param DIM_LEVEL_HIGHEST + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableDimmerLevelHighest}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" + append html "" + 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 ON_MIN_LEVEL + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDimmerOnMinLevel}" + append html "[getTextField $param $ps($param) $chn $prn onchange=setDimmerLevelLowest(this.value)] % [getMinMaxValueDescr $param] [getHelpIcon $param\_RGBW 450 75]" + 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 "" + } + + 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} { + + 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 devType $dev_descr(TYPE) + + set showPosSaveTime 1 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + if { ([string equal "HmIP-BBL" $devType] == 1) && (($fwMajor == 1) && ($fwMinor >= 10)) || ($fwMajor >= 2)} { + set showPosSaveTime 0 + } + + 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]" + } + } + + if {$showPosSaveTime == 1} { + set param POSITION_SAVE_TIME + catch { + 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} { + + 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 devType $dev_descr(TYPE) + + puts "" + + + set showPosSaveTime 1 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + if { ([string equal "HmIP-BBL" $devType] == 1) && (($fwMajor == 1) && ($fwMinor >= 10)) || ($fwMajor >= 2)} { + set showPosSaveTime 0 + } + + 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]" + } + } + + if {$showPosSaveTime == 1} { + set param POSITION_SAVE_TIME + catch { + 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 {extraparam ""}} { + 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 "" + set onlyHeatingCooling 0 + + if {[string equal $extraparam "humidity"] == 1} { + set climateFunction 1 + set onlyHeatingCooling 1 + } elseif {[string equal $extraparam "temperature"] == 1} { + set climateFunction 0 + set onlyHeatingCooling 2 + } + + 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}" + if {$onlyHeatingCooling == 0} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" + } else { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + } + 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 + set comment { + # See SPHM-1079 + for {set val 2} {$val <= 20} {set val [expr $val + 2]} { + set options([expr $val / 2]) "[expr $val] % rF" + } + } + + # See SPHM-1293 + 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}" + } + if {$onlyHeatingCooling == 0} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A 600 300]" + } elseif {$onlyHeatingCooling == 1} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_B 600 300]" + } elseif {$onlyHeatingCooling == 2} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + } + append html "" + } + + append html "" + + if {([info exists ps(COOLING_ENABLE)] == 1) && ([info exists ps(HEATING_ENABLE)] == 1)} { + append html "" + + array_clear options + set options(0) "\${optionInactiv}" + set options(1) "\${optionActiv}" + + # left + incr prn + set param COOLING_ENABLE + append html "\${lblCoolingDisable}" + # append html "[getCheckBox '$param' $ps($param) $chn $prn]" + append html "[getOptionBox '$param' options $ps($param) $chn $prn]" + append html "" + + append html "" + # right + incr prn + set param HEATING_ENABLE + + append html "\${lblHeatingDisable}" + # append html "[getCheckBox '$param' $ps($param) $chn $prn]" + append html "[getOptionBox '$param' options $ps($param) $chn $prn]" + 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 "" + + # right + incr prn + set param TEMPERATURE_LOWERING + 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]\${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 + if { [info exists ps(TEMPERATURE_WINDOW_OPEN_COOLING)] == 1 } { + append html "" + } else { + append html "" + } + append html "" + } + + #left + set param TEMPERATURE_WINDOW_OPEN_COOLING + 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]
\${lblTemperatureWindowOpenHeating}
\${stringTableTemperatureFallWindowOpen}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" + append html "
\${lblTemperatureWindowOpenCooling}[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 { ([info exists ps(CHANNEL_OPERATION_MODE)] == 1) || ([info exists ps(ACOUSTIC_ALARM_SIGNAL)] == 1) || ([info exists ps(EFFECT_ADAPTION_FADE_OUT_TIME_FACTOR)] == 1) } { + 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 "" + } + + set param EFFECT_ADAPTION_FADE_OUT_TIME_FACTOR + if { [info exists ps($param)] == 1 } { + append html "" + 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 "
" + append html "\${lblSignalColor}" + append html "
" + + if { [info exists ps($param)] == 1 } { + append html "" + append html "[getHeatingControlEffects $chn]" + 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}" + + set param TX_THRESHOLD_POWER + if { [info exists ps($param)] == 1 } { + incr prn + 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 "" + } + + if { [info exists ps($param)] == 1 } { + 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 getEnergieMeterTransmitterESI {chn p descr chnAddress} { + 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 sensorUnknown 0 + set sensorGas 1 + set sensorLED 2 + set sensorIEC 3 + + set chnOperationMode 0 + + set html "" + + + puts "" + + + if {$chn == 1} { + append html "" + append html "\${lblPowerMeterSensorIdentification}" + append html "" + append html "" + append html "" + } + + + set param CHANNEL_OPERATION_MODE + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + + set chnOperationMode $ps($param) + + # for testing + # append html "
CHANNEL_OPERATION_MODE: $chnOperationMode
" + + array_clear options + set options(0) "\${optionSensorUnknown}" + set options(1) "\${optionSensorGas}" + set options(2) "\${optionSensorLED}" + set options(3) "\${optionSensorIEC}" + set options(4) "\${optionSensorIEC_SML}" + set options(5) "\${optionSensorIEC_SML_WH}" + set options(6) "\${optionSensorIEC_D0_A}" + set options(7) "\${optionSensorIEC_D0_B}" + set options(8) "\${optionSensorIEC_D0_C}" + set options(9) "\${optionSensorIEC_D0_D}" + append html "\${lblSensorMode}" + # append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=showSensorType(this.value);] [getHelpIcon ESI_$param]" + append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param disabled=true]" + append html "
 [getHelpIcon ESI_$param 450 100]" + append html "" + + # append html "[getHorizontalLine]" + } + + set param METER_CONSTANT_VOLUME + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + append html "" + # append html "\${stringTablePowerMeterConstantVolume}" + append html "\${stringTablePowerMeterConstant}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" + append html "" + } + + set param METER_CONSTANT_ENERGY + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + append html "" + # append html "\${stringTablePowerMeterConstantEnergy}" + append html "\${stringTablePowerMeterConstant}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" + append html "" + } + + set param METER_OBIS_SEARCH_STRING + if { ([info exists ps($param)] == 1) && ($ps(CHANNEL_OPERATION_MODE) >= 3) } { + set paramValue $ps($param) + if {$paramValue == "$$$$$"} { + set paramValue " " + } + incr prn + append html "" + append html "\${stringTableMeterObisSearchString}" + # append html "[getTextField $param $paramValue $chn $prn]  [getMinMaxValueDescr $param]" + append html "[getTextField $param $paramValue $chn $prn] [getHelpIcon ESI_$param 450 180]" + append html "" + } + + if {$html == ""} { + append html [getNoParametersToSet] + } else { + append html "" + } + + return $html +} + +proc getEnergieMeterTransmitterESIStartValue {chn p descr chnAddress chnOpMode} { + 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 startValue "0.000" + + append html "" + append html "\${lblSetStartValue}" + append html "" + append html "" + append html "" + append html "" + + append html "" + append html "\${lblStartValue}" + # append html "" + append html "" + append html "" + + append html "" + append html "" + append html "TIME" + append html "" + + if {$chnOpMode > 3} { + set param METER_OBIS_SEARCH_STRING + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + set paramValue $ps($param) + if {$paramValue == "$$$$$"} { + set paramValue " " + } + + append html "
" + + incr prn + append html "" + append html "\${stringTableMeterObisSearchString}" + # append html "[getTextField $param $paramValue $chn $prn]  [getMinMaxValueDescr $param]" + append html "[getTextField $param $paramValue $chn $prn] [getHelpIcon ESI_$param 450 180]" + append html "" + } + } + 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 +} + +proc getLevelCommandTransmitter_CO2 {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] [getUnit $param] [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] [getUnit $param] [getMinMaxValueDescr $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 "" + } + return $html +} + + +# ACCELERATION_TRANSCEIVER +proc getAccelerationTransceiver {chn p descr address} { + + 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 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] + + set devType $dev_descr(TYPE) + + if {($fwMajor > 1 || ($fwMajor == 1 && $fwMinor >= 2) ) || ([string equal $devType "ELV-SH-TACO"] == 1)} { + 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 } { + 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 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 && ([string equal $devType "HmIP-SAM"] != 1) } { + 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_HYSTERESIS + if { [info exists ps($param)] == 1 } { + + incr prn + append html "" + append html "\${motionDetectorTriggerAngleHysteresis}" + 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 "" + } + + 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 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" "delay0To20M_step2M"] + 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" "delay0To20M_step2M"] + 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 getGenericMeasuringTransmitter {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 html "" + set prn 0 + + # Add Textbox for the Unit + append html "" + append html "\${lblGenericUnit}" + append html " [getHelpIcon GENERIC_UNIT] " + append html "" + + # Add Selectbox for the number of decimal places + append html "" + append html "\${lblNoOfDecimalPlaces}" + append html "" + append html "" + append html "" + append html "" + + # Store and read the unit as meta data + append html "" + return $html +} + +proc getNoParametersToSet {} { + set html "
\${deviceAndChannelParamsLblNoParamsToSet}
" + # center content + append html "" + return $html +} diff --git a/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig new file mode 100644 index 0000000000..3dd445dca1 --- /dev/null +++ b/buildroot-external/patches/occu/0186-WebUI-Fix-HmIPW-DRI16_DRI32-Channel/www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.orig @@ -0,0 +1,6561 @@ +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/hmipHeatingClimateControlTransceiverEffect.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) || ([string equal $devType "HmIP-RFUSB"] == 1)} { + append html "[getNoParametersToSet]" + return $html + } + + if {[string equal $devType "HmIP-DRG-DALI"] == 1} { + append html "" + append html "\${lblRefreshDaliDevices}" + append html "" + append html "" + append html "[getHorizontalLine]" + append 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-A"] != 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 "" + } + } + + # INPUT_1_COPRO_ENABLED - INPUT_X_COPRO_ENABLED + if {[string equal $devType "ELV-SH-BM-S"] == 1} { + for {set loop 1} {$loop <= 4} {incr loop} { + if {[info exists ps(INPUT_$loop\_COPRO_ENABLED)] == 1} { + if {$loop == 1} {append html "[getHorizontalLine]"} + incr prn + append html "" + append html "\${stringTableInputCoProEnabled_$loop}" + append html "[getCheckBox 'INPUT_$loop\_COPRO_ENABLED' $ps(INPUT_$loop\_COPRO_ENABLED) $chn $prn] [getHelpIcon INPUT_COPRO_ENABLED]" + append html "" + if {$loop == 4} {append html "[getHorizontalLine]"} + } + } + } + + 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 + if {[string equal $devType "HmIP-STI"] != 1} { + option RAW_0_100Percent + } else { + # HmIP-STI = 0 - 4 + for {set val 0} {$val <= 4} {incr val} { + set options($val) "[expr $val + 1]" + } + } + + append html "" + if {([string first "HmIP-SMO230" $devType] != -1) || ([string first "HmIPW-SMO230" $devType] != -1)} { + append html "\${stringTableDeviceSensorSensibilitySabotage}" + } else { + append html "\${stringTableDeviceSensorSensibility}" + } + + if {[string equal $devType "HmIP-STI"] != 1} { + append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param]" + } else { + # HmIP-STI + 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) + && ([string first "HmIP-BDT" $devType] == -1) + && ([string first "HmIP-eTRV-F" $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 DISPLAY_MODE + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDisplayModeETRV}" + array_clear options + set options(0) "\${optionReducedMode}" + set options(1) "\${optionFunctionalMode}" + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + append html "" + } + + set param DISPLAY_INVERTED_COLORS + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDisplayColor}" + array_clear options + set options(0) "\${optionNormalColors}" + set options(1) "\${optionInvertedColors}" + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + 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-A"] == 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-A"] == 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-A"] == 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) && ([string equal $devType "HmIP-DLD-A"] != 1) && ([string equal $devType "HmIP-DLD-S"] != 1) && ([string equal $devType "HmIP-SMO230"] != 1) && ([string equal $devType "HmIP-SMO230-A"] != 1) && ([string equal $devType "HmIPW-SMO230"] != 1) && ([string equal $devType "HmIPW-SMO230-A"] != 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 LED_DISABLE_SENDSTATE + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableLEDDisableSendState}" + 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}" + } + + if {[lsearch $valueList LEVEL_KEY_BEHAVIOR ] != -1} { + set options(4) "\${stringTableKeyTransceiverChannelOperationModeLevelKeyBehavior}" + } + + if {[lsearch $valueList CONDITIONAL_BEHAVIOR ] != -1} { + set options(5) "\${stringTableKeyTransceiverChannelOperationModeConditionalBehavior}" + } + + 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 getSwitchTransceiver {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 specialID "[getSpecialID $special_input_id]" + + set html "" + +## puts "" + + set param POWERUP_JUMPTARGET + if { [info exists ps($param)] == 1 } { + append html [getPowerUpSelector $chn ps $special_input_id] + } + + 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 "" + } + + 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 + catch { + 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 + catch { + 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 "" + } + + set param DELAY_COMPENSATION + if { [info exists ps($param)] == 1 } { + + append html "[getHorizontalLine]" + + # 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 _chn $chn + + set prn 0 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + 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}" + + if { ($fwMajor >= 2) || (($fwMajor == 2) && ($fwMinor >= 1)) || (($fwMajor == 2) && ($fwMinor == 1) && ($fwPatch >= 12)) } { + set options(2) "\${optionAdjustDimmerLevel}" + } + + } 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=\"showAdjustDimmingRange(this.value,$chn)\"] + append html "" + } + + set param DIM_LEVEL_LOWEST + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableDimmerLevelLowest}" + append html "[getTextField $param $ps($param) $chn $prn $ps(ON_MIN_LEVEL) onchange=checkDimLevelLowest(this)] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" + append html "" + } + + set param DIM_LEVEL_HIGHEST + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${stringTableDimmerLevelHighest}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param] [getHelpIcon $param]" + append html "" + 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 ON_MIN_LEVEL + if { [info exists ps($param)] == 1 } { + incr prn + append html "" + append html "\${lblDimmerOnMinLevel}" + append html "[getTextField $param $ps($param) $chn $prn onchange=setDimmerLevelLowest(this.value)] % [getMinMaxValueDescr $param] [getHelpIcon $param\_RGBW 450 75]" + 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 "" + } + + 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} { + + 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 devType $dev_descr(TYPE) + + set showPosSaveTime 1 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + if { ([string equal "HmIP-BBL" $devType] == 1) && (($fwMajor == 1) && ($fwMinor >= 10)) || ($fwMajor >= 2)} { + set showPosSaveTime 0 + } + + 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]" + } + } + + if {$showPosSaveTime == 1} { + set param POSITION_SAVE_TIME + catch { + 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} { + + 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 devType $dev_descr(TYPE) + + puts "" + + + set showPosSaveTime 1 + + set Fw [getDevFwMajorMinorPatch] + set fwMajor [lindex $Fw 0] + set fwMinor [lindex $Fw 1] + set fwPatch [lindex $Fw 2] + + if { ([string equal "HmIP-BBL" $devType] == 1) && (($fwMajor == 1) && ($fwMinor >= 10)) || ($fwMajor >= 2)} { + set showPosSaveTime 0 + } + + 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]" + } + } + + if {$showPosSaveTime == 1} { + set param POSITION_SAVE_TIME + catch { + 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 {extraparam ""}} { + 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 "" + set onlyHeatingCooling 0 + + if {[string equal $extraparam "humidity"] == 1} { + set climateFunction 1 + set onlyHeatingCooling 1 + } elseif {[string equal $extraparam "temperature"] == 1} { + set climateFunction 0 + set onlyHeatingCooling 2 + } + + 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}" + if {$onlyHeatingCooling == 0} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A]" + } else { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + } + 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 + set comment { + # See SPHM-1079 + for {set val 2} {$val <= 20} {set val [expr $val + 2]} { + set options([expr $val / 2]) "[expr $val] % rF" + } + } + + # See SPHM-1293 + 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}" + } + if {$onlyHeatingCooling == 0} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_A 600 300]" + } elseif {$onlyHeatingCooling == 1} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param\_B 600 300]" + } elseif {$onlyHeatingCooling == 2} { + append html "[getOptionBox '$param' options $ps($param) $chn $prn] [getHelpIcon $param]" + } + append html "" + } + + append html "" + + if {([info exists ps(COOLING_ENABLE)] == 1) && ([info exists ps(HEATING_ENABLE)] == 1)} { + append html "" + + array_clear options + set options(0) "\${optionInactiv}" + set options(1) "\${optionActiv}" + + # left + incr prn + set param COOLING_ENABLE + append html "\${lblCoolingDisable}" + # append html "[getCheckBox '$param' $ps($param) $chn $prn]" + append html "[getOptionBox '$param' options $ps($param) $chn $prn]" + append html "" + + append html "" + # right + incr prn + set param HEATING_ENABLE + + append html "\${lblHeatingDisable}" + # append html "[getCheckBox '$param' $ps($param) $chn $prn]" + append html "[getOptionBox '$param' options $ps($param) $chn $prn]" + 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 "" + + # right + incr prn + set param TEMPERATURE_LOWERING + 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]\${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 + if { [info exists ps(TEMPERATURE_WINDOW_OPEN_COOLING)] == 1 } { + append html "" + } else { + append html "" + } + append html "" + } + + #left + set param TEMPERATURE_WINDOW_OPEN_COOLING + 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]
\${lblTemperatureWindowOpenHeating}
\${stringTableTemperatureFallWindowOpen}[getTextField $param $ps($param) $chn $prn] [getMinMaxValueDescr $param]" + append html "
\${lblTemperatureWindowOpenCooling}[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 { ([info exists ps(CHANNEL_OPERATION_MODE)] == 1) || ([info exists ps(ACOUSTIC_ALARM_SIGNAL)] == 1) || ([info exists ps(EFFECT_ADAPTION_FADE_OUT_TIME_FACTOR)] == 1) } { + 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 "" + } + + set param EFFECT_ADAPTION_FADE_OUT_TIME_FACTOR + if { [info exists ps($param)] == 1 } { + append html "" + 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 "
" + append html "\${lblSignalColor}" + append html "
" + + if { [info exists ps($param)] == 1 } { + append html "" + append html "[getHeatingControlEffects $chn]" + 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}" + + set param TX_THRESHOLD_POWER + if { [info exists ps($param)] == 1 } { + incr prn + 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 "" + } + + if { [info exists ps($param)] == 1 } { + 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 getEnergieMeterTransmitterESI {chn p descr chnAddress} { + 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 sensorUnknown 0 + set sensorGas 1 + set sensorLED 2 + set sensorIEC 3 + + set chnOperationMode 0 + + set html "" + + + puts "" + + + if {$chn == 1} { + append html "" + append html "\${lblPowerMeterSensorIdentification}" + append html "" + append html "" + append html "" + } + + + set param CHANNEL_OPERATION_MODE + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + + set chnOperationMode $ps($param) + + # for testing + # append html "
CHANNEL_OPERATION_MODE: $chnOperationMode
" + + array_clear options + set options(0) "\${optionSensorUnknown}" + set options(1) "\${optionSensorGas}" + set options(2) "\${optionSensorLED}" + set options(3) "\${optionSensorIEC}" + set options(4) "\${optionSensorIEC_SML}" + set options(5) "\${optionSensorIEC_SML_WH}" + set options(6) "\${optionSensorIEC_D0_A}" + set options(7) "\${optionSensorIEC_D0_B}" + set options(8) "\${optionSensorIEC_D0_C}" + set options(9) "\${optionSensorIEC_D0_D}" + append html "\${lblSensorMode}" + # append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param onchange=showSensorType(this.value);] [getHelpIcon ESI_$param]" + append html "[get_ComboBox options $param separate_$CHANNEL\_$prn ps $param disabled=true]" + append html "
 [getHelpIcon ESI_$param 450 100]" + append html "" + + # append html "[getHorizontalLine]" + } + + set param METER_CONSTANT_VOLUME + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + append html "" + # append html "\${stringTablePowerMeterConstantVolume}" + append html "\${stringTablePowerMeterConstant}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" + append html "" + } + + set param METER_CONSTANT_ENERGY + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + incr prn + append html "" + # append html "\${stringTablePowerMeterConstantEnergy}" + append html "\${stringTablePowerMeterConstant}" + append html "[getTextField $param $ps($param) $chn $prn] [getUnit $param] [getMinMaxValueDescr $param]" + append html "" + } + + set param METER_OBIS_SEARCH_STRING + if { ([info exists ps($param)] == 1) && ($ps(CHANNEL_OPERATION_MODE) >= 3) } { + set paramValue $ps($param) + if {$paramValue == "$$$$$"} { + set paramValue " " + } + incr prn + append html "" + append html "\${stringTableMeterObisSearchString}" + # append html "[getTextField $param $paramValue $chn $prn]  [getMinMaxValueDescr $param]" + append html "[getTextField $param $paramValue $chn $prn] [getHelpIcon ESI_$param 450 180]" + append html "" + } + + if {$html == ""} { + append html [getNoParametersToSet] + } else { + append html "" + } + + return $html +} + +proc getEnergieMeterTransmitterESIStartValue {chn p descr chnAddress chnOpMode} { + 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 startValue "0.000" + + append html "" + append html "\${lblSetStartValue}" + append html "" + append html "" + append html "" + append html "" + + append html "" + append html "\${lblStartValue}" + # append html "" + append html "" + append html "" + + append html "" + append html "" + append html "TIME" + append html "" + + if {$chnOpMode > 3} { + set param METER_OBIS_SEARCH_STRING + if { ([info exists ps($param)] == 1) && ($chn >= 1) } { + set paramValue $ps($param) + if {$paramValue == "$$$$$"} { + set paramValue " " + } + + append html "
" + + incr prn + append html "" + append html "\${stringTableMeterObisSearchString}" + # append html "[getTextField $param $paramValue $chn $prn]  [getMinMaxValueDescr $param]" + append html "[getTextField $param $paramValue $chn $prn] [getHelpIcon ESI_$param 450 180]" + append html "" + } + } + 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 +} + +proc getLevelCommandTransmitter_CO2 {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] [getUnit $param] [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] [getUnit $param] [getMinMaxValueDescr $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 "" + } + return $html +} + + +# ACCELERATION_TRANSCEIVER +proc getAccelerationTransceiver {chn p descr address} { + + 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 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] + + set devType $dev_descr(TYPE) + + if {($fwMajor > 1 || ($fwMajor == 1 && $fwMinor >= 2) ) || ([string equal $devType "ELV-SH-TACO"] == 1)} { + 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 } { + 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 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 && ([string equal $devType "HmIP-SAM"] != 1) } { + 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_HYSTERESIS + if { [info exists ps($param)] == 1 } { + + incr prn + append html "" + append html "\${motionDetectorTriggerAngleHysteresis}" + 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 "" + } + + 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 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" "delay0To20M_step2M"] + 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" "delay0To20M_step2M"] + 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 getGenericMeasuringTransmitter {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 html "" + set prn 0 + + # Add Textbox for the Unit + append html "" + append html "\${lblGenericUnit}" + append html " [getHelpIcon GENERIC_UNIT] " + append html "" + + # Add Selectbox for the number of decimal places + append html "" + append html "\${lblNoOfDecimalPlaces}" + append html "" + append html "" + append html "" + append html "" + + # Store and read the unit as meta data + append html "" + return $html +} + +proc getNoParametersToSet {} { + set html "
\${deviceAndChannelParamsLblNoParamsToSet}
" + # center content + append html "" + return $html +}