diff --git a/VGT_Sub/form.json b/VGT_Sub/form.json index f115aaf..995b368 100644 --- a/VGT_Sub/form.json +++ b/VGT_Sub/form.json @@ -1,91 +1,5 @@ { "elements": [ - { - "type": "Label", - "caption": "MQTT Verbindungseinstellungen" - }, - { - "type": "ValidationTextBox", - "name": "MQTTClientID", - "caption": "Client ID" - }, - { - "type": "ValidationTextBox", - "name": "MQTTUser", - "caption": "Benutzername" - }, - { - "type": "PasswordTextBox", - "name": "MQTTPassword", - "caption": "Passwort" - }, - { - "type": "CheckBox", - "name": "UpdateGatewayConfig", - "caption": "Diese Einstellungen auf das Gateway anwenden (Überschreiben)" - }, - { - "type": "Label", - "caption": "--------------------------------------------------------" - }, - { - "type": "Label", - "caption": "MQTT Topic Konfiguration" - }, - { - "type": "ValidationTextBox", - "name": "MQTTBaseTopic", - "caption": "Base Topic (z.B. Test VGT_Steuerung/Komm)" - }, - { - "type": "Label", - "caption": "Hardware Verknüpfungen (Intern)" - }, - { - "type": "SelectVariable", - "name": "SourceSoC", - "caption": "State of Charge (SoC)", - "validVariableTypes": [1, 2] - }, - { - "type": "SelectVariable", - "name": "SourcePowerProd", - "caption": "Power Production", - "validVariableTypes": [1, 2] - }, - { - "type": "SelectVariable", - "name": "SourceIsReady", - "caption": "Is Ready (Bool)", - "validVariableTypes": [0] - }, - { - "type": "SelectVariable", - "name": "SourceIsRunning", - "caption": "Is Running (Bool)", - "validVariableTypes": [0] - }, - { - "type": "SelectVariable", - "name": "SourceMinSoC", - "caption": "Min SoC", - "validVariableTypes": [1, 2] - }, - { - "type": "SelectVariable", - "name": "SourceMaxSoC", - "caption": "Max SoC", - "validVariableTypes": [1, 2] - }, - { - "type": "Label", - "caption": "Steuerung (Output)" - }, - { - "type": "SelectVariable", - "name": "TargetControlVar", - "caption": "Wechselrichter Sollwert (Ziel)", - "validVariableTypes": [1, 2] - } + ] } \ No newline at end of file diff --git a/VGT_Sub/module.json b/VGT_Sub/module.json index 6793c9f..ff2a514 100644 --- a/VGT_Sub/module.json +++ b/VGT_Sub/module.json @@ -11,7 +11,7 @@ ], "childRequirements": [], "implemented": [ - "{018EF6B5-AB94-40C6-AA53-46943E824ACF}" + "{7F7632D9-FA40-4F38-8DEA-C83CD4325A32}" ], "prefix": "VGT", "version": "1.0" diff --git a/VGT_Sub/module.php b/VGT_Sub/module.php index 029df68..82cb66f 100644 --- a/VGT_Sub/module.php +++ b/VGT_Sub/module.php @@ -11,12 +11,13 @@ class VGT_Sub extends IPSModule { parent::Create(); // Verbindet sich automatisch mit einem MQTT Client - $this->ConnectParent(self::PARENT_GUID); + $this->ConnectParent('{C6D2AEB3-6E1F-4B2E-8E69-3A1A00246850}'); } public function ApplyChanges() { parent::ApplyChanges(); + $this->ConnectParent('{C6D2AEB3-6E1F-4B2E-8E69-3A1A00246850}'); // Topic Definitionen $requestTopic = 'feedback-request/deviceOne';