function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("Fhem"); $gui->label("FhemServerID", "Server"); $gui->label("FhemName", "Name in FHEM"); $gui->label("FhemAlias", "Zu zeigender Name"); $gui->label("FhemType", "Type"); $gui->label("FhemSpecific", "Adresscode"); $gui->label("FhemRoom", "Raumname"); $gui->label("FhemModel", "Model"); $gui->label("FhemFHTModel", "Model"); $gui->label("FhemITModel", "Model"); $gui->label("FhemHMModel", "Model"); $gui->label("FhemHMSub", "Sub-Type"); $gui->label("FhemHMClass", "hmClass"); $gui->label("FhemEMModel", "Model"); $gui->label("FhemRunOn", "run on"); $gui->label("FhemCommand", "Command"); $gui->label("FhemLocationID", "Location"); $gui->label("FhemInOverview", "In Overview?"); $gui->label("FhemFHTDefaultDayTemp", "day-temp"); $gui->label("FhemExtension", "Erweiterung"); $extensions = array("none" => "keine"); if (Session::isPluginLoaded("mSieHabenPost")) { $extensions["SieHabenPost"] = "Briefkasten"; } $gui->type("FhemExtension", "select", $extensions); $gui->type("FhemInOverview", "checkbox"); $gui->type("FhemModel", "select", array("" => "none", "fs20du" => "FS20 DU", "fs20s4u" => "FS20 S4U", "fs20s4" => "FS20 S4", "fs20st" => "FS20 ST", "fs20di" => "FS20 DI", "fs20irf" => "FS20 IRF", "fs20rsu" => "FS20 RSU")); $gui->type("FhemITModel", "select", array("" => "none", "itdimmer" => "IT-Dimmer", "itswitch" => "IT-Switch")); $gui->type("FhemHMModel", "select", array("" => "none", "dimmer" => "Dimmer", "switch" => "Switch", "HM-LC-Dim1L-CV" => "HM-LC-Dim1L-CV", "HM-LC-Dim1L-Pl" => "HM-LC-Dim1L-Pl", "HM-LC-Dim1PBU-FM" => "HM-LC-Dim1PBU-FM", "HM-LC-Dim1T-CV" => "HM-LC-Dim1T-CV", "HM-LC-Dim1T-Pl" => "HM-LC-Dim1T-Pl", "HM-LC-Dim2L-SM" => "HM-LC-Dim2L-SM", "HM-LC-Dim2T-SM" => "HM-LC-Dim2T-SM", "HM-LC-Sw1-FM" => "HM-LC-Sw1-FM", "HM-LC-Sw1-Pl" => "HM-LC-Sw1-Pl", "HM-LC-Sw1-SM" => "HM-LC-Sw1-SM", "HM-LC-Sw1PB-FM" => "HM-LC-Sw1PB-FM", "HM-LC-Sw1PBU-FM" => "HM-LC-Sw1PBU-FM", "HM-LC-Sw2-FM" => "HM-LC-Sw2-FM", "HM-LC-Sw4-WM" => "HM-LC-Sw4-WM", "HM-Sec-RHS" => "HM-Sec-RHS")); $gui->type("FhemHMSub", "select", array("" => "none", "AlarmControl" => "AlarmControl", "KFM100" => "KFM100", "THSensor" => "THSensor", "blindActuator" => "blindActuator", "dimmer" => "dimmer", "keyMatic" => "keyMatic", "motionDetector" => "motionDetector", "pushButton" => "pushButton", "remote" => "remote", "sensor" => "sensor", "smokeDetector" => "smokeDetector", "swi" => "swi", "switch" => "switch", "threeStateSensor" => "threeStateSensor", "winMatic" => "winMatic")); $gui->type("FhemHMClass", "select", array("" => "none", "receiver" => "Empfänger", "sender" => "Sender")); $gui->type("FhemEMModel", "select", array("" => "none", "EMEM" => "EM 1000-EM")); $gui->type("FhemFHTModel", "select", array("" => "none", "fht80b" => "80B")); $gui->type("FhemType", "select", array("" => "none", "FS20" => "FS20", "FHZ" => "FHZ", "FHT" => "FHT", "CUL_HM" => "HomeMatic", "IT" => "Intertechno", "CUL_EM" => "ELV EM", "notify" => "notify", "dummy" => "dummy")); $B = $gui->addSideButton("Show\ndata", "./fheME/Fhem/showData.png"); $B->popup("", "Show data", "Fhem", $this->getID(), "showData"); $gui->type("FhemLocationID", "select", new mFhemLocationGUI(), "FhemLocationName", "everywhere"); #$gui->selectWithCollection("FhemLocationID", ); $gui->type("FhemCommand", "textarea"); $gui->descriptionField("FhemRunOn", "e.g. Door:toggle"); $gui->descriptionField("FhemCommand", "you may use new line, it will be replaced by space"); $gui->inputStyle("FhemCommand", "height:300px;font-size:8px;"); $gui->attributes(array("FhemServerID", "FhemLocationID", "FhemName", "FhemAlias", "FhemInOverview", "FhemType", "FhemExtension", "FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemFHTModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand")); $gui->space("FhemType"); $gui->toggleFieldsInit("FhemType", array("FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand", "FhemFHTModel", "FhemFHTDefaultDayTemp", "FhemExtension")); $gui->toggleFields("FhemType", "FHZ", array("FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "FS20", array("FhemModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "notify", array("FhemRunOn", "FhemCommand", "FhemRoom")); $gui->toggleFields("FhemType", "IT", array("FhemITModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "CUL_HM", array("FhemHMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom")); $gui->toggleFields("FhemType", "CUL_EM", array("FhemEMModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "FHT", array("FhemFHTModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "dummy", array("FhemRoom", "FhemExtension")); $gui->type("FhemServerID", "select", new mFhemServerGUI(), "FhemServerName"); return $gui->getEditHTML(); }