Dokumentation
Aufzählung
Benötigt: Symcon >= 8.0
Parameter
Informationen zu den visuellen Eigenschaften und Bedeutungen der Parameter sind in der Objekt-Darstellung zu finden.
| Name | Typ | Parameter | Beschreibung |
|---|---|---|---|
| PRESENTATION | String | The ID of the presentation | VARIABLE_PRESENTATION_ENUMERATION {52D9E126-D7D2-2CBB-5E62-4CF7BA7C5D82} |
| ICON | String | Standard Icon | Icons |
| OPTIONS | String | Optionen | JSON-kodierte Liste von Objekten, die genauen Parameter sind unter Optionen beschrieben |
| LAYOUT | Integer | Anordnung | 0: Spalte, 1: Reihe, 2: Gitter |
| DISPLAY | Integer | Zeige... | 0: Beschriftung, 1: Icon, 2: Beschriftung und Icon |
Optionen
| Name | Typ | Parameter | Beschreibung |
|---|---|---|---|
| Value | Boolean/String/Integer/Float | Wert | Abhängig vom Typ der Variable |
| Caption | String | Beschriftung | |
| IconActive | Boolean | Überschreibe Icon | |
| IconValue | String | Icon | Icons |
| Color | Integer | Farbe |
Beispiele
// Beim Registrieren einer Variable für PHP-Module
// Es werden nur Icons angezeigt. Eines ist farblich hervorgehoben.
$this->RegisterVariableInteger('Modus', 'Modus', [
'PRESENTATION' => VARIABLE_PRESENTATION_ENUMERATION,
'DISPLAY' => 1 /* Icon */,
'OPTIONS' => json_encode([
['Value' => 1, 'Caption' => 'Automatic', 'IconActive' => true, 'IconValue' => 'circle-a'],
['Value' => 2, 'Caption' => 'Eco', 'IconActive' => true, 'IconValue' => 'circle-e', 'Color' => 40448],
['Value' => 3, 'Caption' => 'Manual', 'IconActive' => true, 'IconValue' => 'circle-m'],
])
]);
// Für bestehende Variablen via Skript
// Es werden nur Icons angezeigt. Eines ist farblich hervorgehoben.
IPS_SetVariableCustomPresentation(12345, [
'PRESENTATION' => VARIABLE_PRESENTATION_ENUMERATION,
'DISPLAY' => 1 /* Icon */,
'OPTIONS' => json_encode([
['Value' => 1, 'Caption' => 'Automatic', 'IconActive' => true, 'IconValue' => 'circle-a'],
['Value' => 2, 'Caption' => 'Eco', 'IconActive' => true, 'IconValue' => 'circle-e', 'Color' => 40448],
['Value' => 3, 'Caption' => 'Manual', 'IconActive' => true, 'IconValue' => 'circle-m'],
])
]);