Moin allerseits,
egal was ich mache die liste des Configurators bleibt leer.
Habe folgendes bereits Probiert:
- Eure Beispiel direkt ins Formular Integriert.
- Versucht die Values mittels RegisterPropertyString zu schreiben.
- Values mittels IPS_SetProperty und IPS_ApplyChanges beschrieben.
Mach ich irgendwas Falsch, oder funktioniert der Configurator derzeit nicht?
Hier die form.json:
{
"elements":
[
{ "type": "ValidationTextBox", "name": "IPAddress", "caption": "Host" },
{ "type": "NumberSpinner", "name": "Port", "caption": "Port" },
{ "type": "NumberSpinner", "name": "WSPort", "caption": "Websocket-Port" },
{ "type": "IntervalBox", "name": "Interval", "caption": "Sek" },
{ "type": "ValidationTextBox", "name": "APIKey", "caption": "API Key" },
{
"type": "Configurator",
"name": "Configuration",
"caption": "Configuration",
"delete": true,
"values": [
{
"id": 1,
"name": "Kategorie",
"address": ""
},{
"parent": 1,
"name": "Rechenmodul - Minimum",
"address": "2",
"create": {
"moduleID": "{A7B0B43B-BEB0-4452-B55E-CD8A9A56B052}",
"configuration": {
"Calculation": 2,
"Variables": "[]"
}
}
},{
"parent": 1,
"name": "Rechenmodul im Wohnzimmer",
"address": "2",
"create": {
"moduleID": "{A7B0B43B-BEB0-4452-B55E-CD8A9A56B052}",
"configuration": {
"Calculation": 2,
"Variables": "[]"
},
"location": [
"Erdgeschoss",
"Wohnzimmer"
]
}
},{
"parent": 1,
"instanceID": 53398,
"name": "Fehlerhafte Instanz",
"address": "4"
},{
"parent": 1,
"name": "Rechenmodul - Auswahl",
"address": "2",
"create": {
"Maximum": {
"moduleID": "{A7B0B43B-BEB0-4452-B55E-CD8A9A56B052}",
"configuration": {
"Calculation": 3,
"Variables": "[]"
}
},
"Average": {
"moduleID": "{A7B0B43B-BEB0-4452-B55E-CD8A9A56B052}",
"configuration": {
"Calculation": 4,
"Variables": "[]"
}
}
}
}, {
"parent": 1,
"name": "OZW772 IP-Interface",
"address": "00:A0:03:FD:14:BB",
"create": [
{
"moduleID": "{33765ABB-CFA5-40AA-89C0-A7CEA89CFE7A}",
"configuration": {}
},
{
"moduleID": "{1C902193-B044-43B8-9433-419F09C641B8}",
"configuration": {
"GatewayMode":1
}
},
{
"moduleID": "{82347F20-F541-41E1-AC5B-A636FD3AE2D8}",
"configuration": {
"Host":"172.17.31.95",
"Port":3671,
"Open":true
}
}
]
}
]
}
],
"actions":
[
{ "type": "Button", "label": "Konfiguration holen", "onClick": "deCONZ_GETConfiguration($id);" },
{ "type": "Button", "label": "Nur API-Key holen", "onClick": "deCONZ_GETAPIKey($id);" },
{ "type": "Button", "label": "Geräteliste aktualisieren", "onClick": "echo deCONZ_UpdateDevices($id);" }
],
"status":
[
{ "code": 102, "icon": "active", "caption": "Connection Success!" },
{ "code": 201, "icon": "error", "caption": "Abrufen der Daten fehlgeschalgen! Weitere Infos in den Debug Logs!" },
{ "code": 202, "icon": "error", "caption": "App verbinden Schaltfläche ist nicht aktive! Gehe in dein Webinterface und aktiviere \"App Verbinden\" unter Gateway => Erweitert" },
{ "code": 203, "icon": "error", "caption": "Führe bitte zuerst \"Konfiguration holen\"" }
]
}
Gruß: Swen