Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Sunny Webbox direkt auslesen auch einzelne Geräte (GetProcessData + GetPlantOverview)

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Sunny Webbox direkt auslesen auch einzelne Geräte (GetProcessData + GetPlantOverview)

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wobo last edited by

      Ich habe eine Lösung wie man direkt alle Daten auslesen kann.

      [

      {

      "id": "f3f362c6.7083d",

      "type": "inject",

      "z": "cf838eb3.2423c8",

      "name": "",

      "topic": "",

      "payload": "",

      "payloadType": "date",

      "repeat": "5",

      "crontab": "",

      "once": false,

      "x": 134.14987182617187,

      "y": 194.030029296875,

      "wires": [

      [

      "1b87043a.fbbf6",

      "afd0a28b.1f2c6",

      "f09d259f.a79f38"

      ]

      ]

      },

      {

      "id": "1b87043a.fbbf6",

      "type": "http request",

      "z": "cf838eb3.2423c8",

      "name": "SMA WEBBOX Wechselrichter",

      "method": "GET",

      "ret": "obj",

      "url": "http://192.168.10.253/rpc?RPC={%22versi … %22JSON%22}",

      "tls": "",

      "x": 396.8999328613281,

      "y": 136.8699951171875,

      "wires": [

      [

      "2c5dbb84.78d7d4"

      ]

      ]

      },

      {

      "id": "2c5dbb84.78d7d4",

      "type": "function",

      "z": "cf838eb3.2423c8",

      "name": "Strom auslesen",

      "func": "// Script von Wolfgang Boldt\n// Aktueller Leistung\nmsg1 = {};\nmsg1.payload = msg.payload.result.overview[0].value + " " + msg.payload.result.overview[0].unit;\n// Tagesertrag\nmsg2 = {};\nmsg2.payload = msg.payload.result.overview[1].value + " " + msg.payload.result.overview[1].unit;\n// Gesamtertrag der Anlage\nmsg3 = {};\nmsg3.payload = msg.payload.result.overview[2].value + " " + msg.payload.result.overview[2].unit ;\n//Aktuelle Leistung ohne Maßeinheit\nmsg4 = {};\nmsg4.payload = msg.payload.result.overview[0].value; \nreturn [msg1,msg2,msg3,msg4];",

      "outputs": "4",

      "noerr": 0,

      "x": 637.1698913574219,

      "y": 126.69003295898437,

      "wires": [

      [

      "8a1b5dd0.6b3c"

      ],

      [

      "9eace255.2e9bf"

      ],

      [

      "97268ca0.9440a"

      ],

      []

      ]

      },

      {

      "id": "8a1b5dd0.6b3c",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Webbox Leistung",

      "topic": "hm-rega.0.5942",

      "ack": "false",

      "autoCreate": "false",

      "x": 1270.8800048828125,

      "y": 35.900001525878906,

      "wires": []

      },

      {

      "id": "9eace255.2e9bf",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Webbox Tagesertrag",

      "topic": "hm-rega.0.5941",

      "ack": "false",

      "autoCreate": "false",

      "x": 1289.0499267578125,

      "y": 86.2000732421875,

      "wires": []

      },

      {

      "id": "97268ca0.9440a",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Webbox Gesamtertrag",

      "topic": "hm-rega.0.5943",

      "ack": "false",

      "autoCreate": "false",

      "x": 1288.4599609375,

      "y": 137.1200408935547,

      "wires": []

      },

      {

      "id": "afd0a28b.1f2c6",

      "type": "http request",

      "z": "cf838eb3.2423c8",

      "name": "SMA Webbox Sensorbox ( Wert eines einzelnen Gerätes Auslesen )",

      "method": "GET",

      "ret": "obj",

      "url": "http://192.168.10.253/rpc?RPC={%22versi … devices%22:[{%22key%22:%220088:0000725b%22,%22channels%22:null}]}}}",

      "tls": "",

      "x": 502.4698791503906,

      "y": 263.40997314453125,

      "wires": [

      [

      "faa4bb62.eff298"

      ]

      ]

      },

      {

      "id": "faa4bb62.eff298",

      "type": "function",

      "z": "cf838eb3.2423c8",

      "name": "Sensoren auslesen",

      "func": "// Script von Wolfgang Boldt\n// Aktueller Windgeschwindigkeit\nmsg1 = {};\nmsg1.payload = msg.payload.result.devices[0].channels [2].value; + " " + msg.payload.result.devices[0].channels [2].unit;\n// Aussen Temperatur\nmsg2 = {};\nmsg2.payload = msg.payload.result.devices[0].channels [3].value; + " " + msg.payload.result.devices[0].channels [3].unit;\n// Einstrahlung\nmsg3 = {};\nmsg3.payload = msg.payload.result.devices[0].channels [4].value + " " + msg.payload.result.devices[0].channels [4].unit;\n// Modultemperatur\nmsg4 = {};\nmsg4.payload = msg.payload.result.devices[0].channels [9].value; + " " + msg.payload.result.devices[0].channels [9].unit;\nreturn [msg1,msg2,msg3,msg4];",

      "outputs": "4",

      "noerr": 0,

      "x": 877.0500793457031,

      "y": 263.3901062011719,

      "wires": [

      [

      "2376655c.a82c66"

      ],

      [

      "7ddd2192.c4c274"

      ],

      [

      "49e80443.6f49d8"

      ],

      [

      "860f21bf.5c1108"

      ]

      ]

      },

      {

      "id": "7ddd2192.c4c274",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Aussentemperatur",

      "topic": "hm-rega.0.5944",

      "ack": "false",

      "autoCreate": "false",

      "x": 1275.9500732421875,

      "y": 271.0299987792969,

      "wires": []

      },

      {

      "id": "2376655c.a82c66",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Windgeschwindigkeit",

      "topic": "hm-rega.0.5945",

      "ack": "false",

      "autoCreate": "false",

      "x": 1287.7598876953125,

      "y": 223.1500244140625,

      "wires": []

      },

      {

      "id": "49e80443.6f49d8",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Einstrahlung",

      "topic": "hm-rega.0.5947",

      "ack": "false",

      "autoCreate": "false",

      "x": 1255.93994140625,

      "y": 324.57000732421875,

      "wires": []

      },

      {

      "id": "860f21bf.5c1108",

      "type": "ioBroker out",

      "z": "cf838eb3.2423c8",

      "name": "SMA Modultemperatur",

      "topic": "hm-rega.0.5946",

      "ack": "false",

      "autoCreate": "false",

      "x": 1264.7200927734375,

      "y": 374.8700256347656,

      "wires": []

      },

      {

      "id": "f09d259f.a79f38",

      "type": "http request",

      "z": "cf838eb3.2423c8",

      "name": "SMA WEBBOX Wechselrichter Geräte auslesen",

      "method": "GET",

      "ret": "obj",

      "url": "[http://192.168.10.253/rpc?RPC={](http://192.168.10.253/rpc?RPC={\"version\":\"1.0\",\"proc\":\"GetDevices\",\"id\":\"1\",\"format\":\"JSON)"}}",

      "tls": "",

      "x": 442.9698791503906,

      "y": 346.0899963378906,

      "wires": [

      [

      "edfe99b4.8a0048"

      ]

      ]

      },

      {

      "id": "edfe99b4.8a0048",

      "type": "function",

      "z": "cf838eb3.2423c8",

      "name": "Key auslesen",

      "func": "// Script von Wolfgang Boldt\n// Anzahl der Geräte\nmsg1 = {};\nmsg1.payload = msg.payload.result.totalDevicesReturned;\n// Key Gerät eins\nmsg2 = {};\nmsg2.payload = msg.payload.result.devices[0].key;\n// Key Gerät zwei\nmsg3 = {};\nmsg3.payload = msg.payload.result.devices[1].key;\n// Key Gerät drei\nmsg4 = {};\nmsg4.payload = msg.payload.result.devices[2].key;\nreturn [msg1,msg2,msg3,msg4,];",

      "outputs": "4",

      "noerr": 0,

      "x": 756.6199645996094,

      "y": 345.4900207519531,

      "wires": [

      [],

      [],

      [],

      []

      ]

      },

      {

      "id": "c9f47099.5dd5a",

      "type": "comment",

      "z": "cf838eb3.2423c8",

      "name": "Kommentar für einzelne Geräte aus der Webbox ",

      "info": "in den html Strin muss der jeweilige Key eingetragen werden.\nhttp://192.168.10.253 == IP Adresse der SMA Webbox\n0088:0000725 == Key des Gerätes in diesen Fall eine Sensorbox\n\nhttp://192.168.10.253/rpc?RPC={%22version%22:%221.0%22,%22proc%22:%22GetProcessData%22,%22id%22:%221%22,%22format%22:%22JSON%22,%22params%22:{%22devices%22:[{%22key%22:%220088:0000725b%22,%22channels%22:null}]}}}",

      "x": 442.1498718261719,

      "y": 225.47998046875,

      "wires": []

      }

      ]
      1330_2.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      957
      Online

      31.7k
      Users

      79.7k
      Topics

      1.3m
      Posts

      1
      1
      1582
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo