diff --git a/www/config/cp_add_device.cgi b/www/config/cp_add_device.cgi
index 082113daa..afe05b618 100755
--- a/www/config/cp_add_device.cgi
+++ b/www/config/cp_add_device.cgi
@@ -20,6 +20,9 @@ if { [info exists EQ3_SERVICE_HS485D_PORT] } {
}
set HS485D_URL "bin://127.0.0.1:$portnumber"
+set KEYSERVER_HOST "secgtw.homematic.com"
+set KEYSERVER_PORT 8443
+
proc getButton {class onclick title} {
set html ""
@@ -46,12 +49,14 @@ proc initJavascript {} {
var thisSection = jQuery("body").data(section);
if(thisSection) {
jQuery('#section'+section).show();
+ jQuery('#sectionUNAVAIL').hide();
} else {
if (typeof thisSection == "undefined") {
homematic('Interface.isPresent', {"interface": section}, function(result, error) {
if (result == true)
{
jQuery('#section'+section).show();
+ jQuery('#sectionUNAVAIL').hide();
dlgPopup.readaptSize();
}
});
@@ -62,6 +67,16 @@ proc initJavascript {} {
}
}
+proc putSectionUNAVAIL {} {
+ set html ""
+ append html "
"
+ append html "| "
+ append html "\${dialogNewDevicesUNAVAILWarn}"
+ append html " | "
+ append html "
"
+ return $html
+}
+
proc putSectionBidCosRF {} {
set html ""
@@ -190,7 +205,7 @@ proc putSectionHMIP {} {
append html ""
append html ""
- append html "\${dialogNewDevicesBidCosRFFetchmodeNotActive} | "
+ append html "\${dialogNewDevicesBidCosRFFetchmodeNotActive} \${dialogNewDevicesKeyserverChecking} | "
append html ""
append html [getButton {CLASS21210 colorGradient50px} {buttonPressed(this); hmip_install_mode("HmIP-RF")} \${dialogNewDevicesHmIPAddDeviceBtn}]
append html " | "
@@ -224,7 +239,7 @@ proc putSectionHMIP {} {
append html "\${lblTeachInKEY}"
append html ""
append html ""
- append html ""
+ append html ""
append html " | "
append html "
"
@@ -233,7 +248,7 @@ proc putSectionHMIP {} {
append html "\${lblTeachInSGTIN}"
append html ""
append html ""
- append html ""
+ append html ""
append html " | "
append html ""
@@ -292,7 +307,7 @@ proc putSectionHMIPWired {} {
append html ""
append html ""
- append html "\${dialogNewDevicesBidCosRFFetchmodeNotActive} | "
+ append html "\${dialogNewDevicesBidCosRFFetchmodeNotActive} \${dialogNewDevicesKeyserverChecking} | "
append html ""
append html [getButton {CLASS21210 colorGradient50px} {buttonPressed(this); hmip_install_mode("HmIP-Wired")} \${dialogNewDevicesHmIPAddDeviceBtn}]
append html " | "
@@ -383,6 +398,8 @@ proc action_put_page {} {
puts ""
+ puts ""
+
initJavascript
puts "