Windhager Heizung Werte über IP abfragen

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Fendt43
    Dumb Home'r
    • 28.07.2023
    • 27

    #16
    Ok, i just installed that. Now i've got the loxone nodes on the left side and I'm receiving the numbers from Loxone. How can i connect the input from Loxone to the inject button?
    Angehängte Dateien
    Zuletzt geändert von Fendt43; 16.06.2024, 14:24.

    Kommentar

    • Tico
      Lox Guru
      • 31.08.2016
      • 1035

      #17
      Create a Virtual Input in Loxone. It can have any input range, but I have chosen an arbitrary range of 0 to 5. Importantly, it must have 'Use in User Interface' checked. I have many links to Node-Red under a single Category that contains a wealth of data flow. I don't have any interest in seeing the values but they must visualised to work with Node-Red.

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Virtual Input.png
Ansichten: 171
Größe: 37,7 KB
ID: 434689

      'Save in Miniserver' and check you can alter the value via the Loxone App.

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Virtual Input_2.png
Ansichten: 81
Größe: 2,4 KB
ID: 434690


      In Node-Red, drag in a Loxone 'control-in' node. Click in the control-in node and select the Miniserver entry and 'add new loxone-miniserver'. Select the edit button and add the credentials for the Miniserver including IP, Port, Loxone Username and Password, Token etc.


      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Miniserver credentials.png
Ansichten: 79
Größe: 43,3 KB
ID: 434691


      Select Update, then do a Deploy in Node-Red. From this point, you should be able to link anything that is visualised within Loxone.

      Now select the Room and Category created earlier with the test Virtual Input. A list of Controls will show in the drop-down. Select the desired Control.


      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Node-Red_Virtual_Input2.png
Ansichten: 78
Größe: 19,8 KB
ID: 434693


      Drag a debug onto the Control-in node and Deploy. Then you should see values update in Node-Red as you change the value in the Loxone App.


      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Test Link.png
Ansichten: 81
Größe: 38,1 KB
ID: 434692

      Note you need to 'Save in Miniserver' before any new controls will be visible in Node-Red. I'll follow-up with the specifics of the Windhager integration when I get a chance.
      Ich spreche kein Deutsch. Gib Google Translate die Schuld, wenn ich unverständlich bin.

      Kommentar


      • Fendt43
        Fendt43 kommentierte
        Kommentar bearbeiten
        Ok thanks, I managed it to get the values from Loxone to Nodered. How can i forward the value to the inject button?
    • Tico
      Lox Guru
      • 31.08.2016
      • 1035

      #18
      Try this flow connected to your existing control-in node -

      Klicke auf die Grafik für eine vergrößerte Ansicht  Name: Full flow.png Ansichten: 0 Größe: 13,0 KB ID: 434707

      Code:
      [
          {
              "id": "4606eeeab464f2f0",
              "type": "inject",
              "z": "e2778122e634373b",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "2",
              "payloadType": "num",
              "x": 150,
              "y": 260,
              "wires": [
                  [
                      "3bdb74c4ed8d45c4"
                  ]
              ]
          },
          {
              "id": "3bdb74c4ed8d45c4",
              "type": "change",
              "z": "e2778122e634373b",
              "name": "Set OID and Value",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "$string('{\"OID\":\"/1/15/0/3/50/0\",\"value\":\"') & $string(payload) & '\"}'",
                      "tot": "jsonata"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 340,
              "y": 260,
              "wires": [
                  [
                      "adc9bb5d3e224e97"
                  ]
              ]
          },
          {
              "id": "adc9bb5d3e224e97",
              "type": "http request",
              "z": "e2778122e634373b",
              "name": "",
              "method": "PUT",
              "ret": "obj",
              "paytoqs": "ignore",
              "url": "http://192.168.178.71/api/1.0/datapoint",
              "tls": "",
              "persist": false,
              "proxy": "",
              "insecureHTTPParser": false,
              "authType": "digest",
              "senderr": false,
              "headers": [],
              "x": 540,
              "y": 260,
              "wires": [
                  [
                      "96ea6ace2ef8df97"
                  ]
              ]
          },
          {
              "id": "96ea6ace2ef8df97",
              "type": "debug",
              "z": "e2778122e634373b",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 740,
              "y": 260,
              "wires": []
          }
      ]
      Zuletzt geändert von Tico; 16.06.2024, 16:11.
      Ich spreche kein Deutsch. Gib Google Translate die Schuld, wenn ich unverständlich bin.

      Kommentar


      • Fendt43
        Fendt43 kommentierte
        Kommentar bearbeiten
        Thank you very much! Now it works perfectly fine!
    • Tico
      Lox Guru
      • 31.08.2016
      • 1035

      #19
      Hello Fendt43 . I'm interested if you could try something else -

      The Loxone Virtual Input doesn't work with Windhager because of the Digest Authentication on login. That's what originally required the use of Node-Red for the authentication routine when requesting data.

      I haven't tested the Loxone Virtual Output to see whether that is similarly afflicted with non-existent handling of Digest Authentication. There might be a remote chance that outbound commands can be made directly with Loxone.

      Can you try setting up a Virtual Output and feed it with a numeric value appropriate to the OID?

      The Virtual Output properties would look like this -

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Windhager Command_1.png
Ansichten: 135
Größe: 14,0 KB
ID: 434720

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Windhager_Command_2.png
Ansichten: 76
Größe: 35,9 KB
ID: 434721

      Then change the value fed into the Virtual Output and check what response occurs.
      Ich spreche kein Deutsch. Gib Google Translate die Schuld, wenn ich unverständlich bin.

      Kommentar


      • Fendt43
        Fendt43 kommentierte
        Kommentar bearbeiten
        Hello,
        I just had time to try this method, but sadly this doesn't work. There is no response on the Windhager surface. Probably because of the digest-Authentication again. But thanks for your effort here!
    Lädt...