Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. marco121990

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 10
    • Best 0
    • Groups 1

    marco121990

    @marco121990

    Starter

    0
    Reputation
    6
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    marco121990 Follow
    Starter

    Latest posts made by marco121990

    • RE: Auslesen Daten Stromzähler

      @mickym

      Vielen Dank für deine Hilfe. Werde ich morgen nach der Arbeit mal testen.

      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym

      Das wird von tasmota anscheinend schon nicht übergeben oder?

      23:15:54.844 MQT: tele/tasmota_Stromzaehler/STATE = {"Time":"2023-04-24T23:15:54","Uptime":"1T00:46:50","UptimeSec":89210,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"TP-Link","BSSId":"54:AF:97:D9:63:50","Channel":11,"Mode":"11n","RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:03"}}
      23:15:54.852 MQT: tele/tasmota_Stromzaehler/SENSOR = {"Time":"2023-04-24T23:15:54","":{"Total_in":21817.33,"Total_out":7.12,"Power_curr":514}}
      
      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym

      {"Time":"2023-04-24T23:10:24","":{"Total_in":21817.28,"Total_out":7.12,"Power_curr":554}}
      
      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym

      Das war schon einmal der erste Fehler.
      Nun kann ich die Pfade als payload kopieren.

      Allerdings gibt er mir trotz Change alle 3 Werte aus.

      69b49944-3e00-4789-9825-0a72dbcaccf5-image.png

      3db6882d-7bcf-42f7-b04f-4a5780707491-image.png

      So war die vorgehendweise in einem der Youtube Videos.

      [
          {
              "id": "56f626e4b62c825a",
              "type": "mqtt in",
              "z": "f6f2187d.f17ca8",
              "name": "Strom",
              "topic": "tele/tasmota_Stromzaehler/SENSOR",
              "qos": "0",
              "datatype": "auto-detect",
              "broker": "6b0c5137b3a546c3",
              "nl": false,
              "rap": true,
              "rh": 0,
              "inputs": 0,
              "x": 90,
              "y": 100,
              "wires": [
                  [
                      "707e6a5fd1adb822",
                      "1de823b8ddeb6c63",
                      "9ebb34cc2a3228e8"
                  ]
              ]
          },
          {
              "id": "b26daa48e8b63891",
              "type": "debug",
              "z": "f6f2187d.f17ca8",
              "name": "debug 1",
              "active": true,
              "tosidebar": true,
              "console": true,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 670,
              "y": 140,
              "wires": []
          },
          {
              "id": "707e6a5fd1adb822",
              "type": "change",
              "z": "f6f2187d.f17ca8",
              "name": "",
              "rules": [
                  {
                      "t": "move",
                      "p": "payload[\"\"].Total_in",
                      "pt": "msg",
                      "to": "payload",
                      "tot": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 350,
              "y": 200,
              "wires": [
                  [
                      "b26daa48e8b63891"
                  ]
              ]
          },
          {
              "id": "1de823b8ddeb6c63",
              "type": "change",
              "z": "f6f2187d.f17ca8",
              "name": "",
              "rules": [
                  {
                      "t": "move",
                      "p": "payload[\"\"].Total_out",
                      "pt": "msg",
                      "to": "payload",
                      "tot": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 360,
              "y": 240,
              "wires": [
                  [
                      "58e492acb7933ee1"
                  ]
              ]
          },
          {
              "id": "9ebb34cc2a3228e8",
              "type": "change",
              "z": "f6f2187d.f17ca8",
              "name": "",
              "rules": [
                  {
                      "t": "move",
                      "p": "payload[\"\"].Power_curr",
                      "pt": "msg",
                      "to": "payload",
                      "tot": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 370,
              "y": 280,
              "wires": [
                  [
                      "0be43a1afe4539c9"
                  ]
              ]
          },
          {
              "id": "58e492acb7933ee1",
              "type": "debug",
              "z": "f6f2187d.f17ca8",
              "name": "debug 2",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 680,
              "y": 200,
              "wires": []
          },
          {
              "id": "0be43a1afe4539c9",
              "type": "debug",
              "z": "f6f2187d.f17ca8",
              "name": "debug 3",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 680,
              "y": 260,
              "wires": []
          },
          {
              "id": "6b0c5137b3a546c3",
              "type": "mqtt-broker",
              "name": "Stromzaehler",
              "broker": "192.168.178.100",
              "port": "1883",
              "clientid": "",
              "autoConnect": true,
              "usetls": false,
              "protocolVersion": "4",
              "keepalive": "60",
              "cleansession": true,
              "birthTopic": "",
              "birthQos": "0",
              "birthPayload": "",
              "birthMsg": {},
              "closeTopic": "",
              "closeQos": "0",
              "closePayload": "",
              "closeMsg": {},
              "willTopic": "",
              "willQos": "0",
              "willPayload": "",
              "willMsg": {},
              "userProps": "",
              "sessionExpiry": ""
          }
      ]
      
      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym
      Kommt aus einer Mqtt-in node

      0c1ae55c-4e3f-47b9-88b3-e8e6169888b8-image.png

      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym Habe ich oben im ersten Post angepasst.

      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @marco121990 Das wird von Tasmota übergeben:

      22:40:54.825 MQT: tele/tasmota_Stromzaehler/STATE = {"Time":"2023-04-24T22:40:54","Uptime":"1T00:11:50","UptimeSec":87110,"Heap":19,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":29,"MqttCount":1,"Wifi":{"AP":1,"SSId":"TP-Link","BSSId":"54:AF:97:D9:63:50","Channel":11,"Mode":"11n","RSSI":50,"Signal":-75,"LinkCount":1,"Downtime":"0T00:00:03"}}

      22:40:54.834 MQT: tele/tasmota_Stromzaehler/SENSOR = {"Time":"2023-04-24T22:40:54","":{"Total_in":21816.99,"Total_out":7.12,"Power_curr":506}}

      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym
      Habe nach einigen Fehlversuchen die Übergabe an die Influxdb zunächst wieder gelöscht und nur per debug ausgelesen.

      0cd699d0-7852-4572-8551-16bca9fd3760-image.png

      [
          {
              "id": "f6f2187d.f17ca8",
              "type": "tab",
              "label": "Flow 1",
              "disabled": false,
              "info": ""
          },
          {
              "id": "56f626e4b62c825a",
              "type": "mqtt in",
              "z": "f6f2187d.f17ca8",
              "name": "Strom",
              "topic": "tele/tasmota_Stromzaehler/SENSOR",
              "qos": "0",
              "datatype": "json",
              "broker": "6b0c5137b3a546c3",
              "nl": false,
              "rap": true,
              "rh": 0,
              "inputs": 0,
              "x": 150,
              "y": 100,
              "wires": [
                  [
                      "b26daa48e8b63891"
                  ]
              ]
          },
          {
              "id": "b26daa48e8b63891",
              "type": "debug",
              "z": "f6f2187d.f17ca8",
              "name": "debug 1",
              "active": true,
              "tosidebar": true,
              "console": true,
              "tostatus": false,
              "complete": "payload",
              "targetType": "jsonata",
              "statusVal": "",
              "statusType": "auto",
              "x": 370,
              "y": 100,
              "wires": []
          },
          {
              "id": "6b0c5137b3a546c3",
              "type": "mqtt-broker",
              "name": "Stromzaehler",
              "broker": "192.168.178.100",
              "port": "1883",
              "clientid": "",
              "autoConnect": true,
              "usetls": false,
              "protocolVersion": "4",
              "keepalive": "60",
              "cleansession": true,
              "birthTopic": "",
              "birthQos": "0",
              "birthPayload": "",
              "birthMsg": {},
              "closeTopic": "",
              "closeQos": "0",
              "closePayload": "",
              "closeMsg": {},
              "willTopic": "",
              "willQos": "0",
              "willPayload": "",
              "willMsg": {},
              "userProps": "",
              "sessionExpiry": ""
          }
      ]
      

      Da ich bei Youtube einige Videos zur Visualsierung über den Weg MQTT -> Note Red -> Influxdb -> Grafana gefunden habe, habe ich mich bisher nicht mit anderen Methoden auseinander gesetzt. Bin recht neu auf diesem Gebiet und habe nur wenig bis keine Ahnung davon.

      Möchte iegentlich nur meinen Stromverbrauch aufzeichnen und grafisch auswerten.

      posted in Node-Red
      M
      marco121990
    • RE: Auslesen Daten Stromzähler

      @mickym

      Das habe ich so bereits versucht. Wenn ich den Pfad kopieren will erscheint das [""].Total_in. Das payload fehlt, damit ich es entsprechend per Change umwandeln kann.

      posted in Node-Red
      M
      marco121990
    • Auslesen Daten Stromzähler

      Hallo, bitte steinigt mich nicht umgehen.
      Ich versuche mich gerade bei Red Note einzuarbeiten um die Daten die per MQTT von Tasmota übertragen werden in eine Influxdb zu schreiben. Ich habe auch schon einige Stunden herum probiert und einige Foren durchsucht, bin bisher jedoch nicht auf ein Ergebnis gekommen oder habe vielleicht auch nach dem falschen gesucht.

      Folgendes kommt an:

      854d0a7b-8713-497c-8059-54bfe61f2620-image.png

      {"Time":"2023-04-24T22:05:22","":{"Total_in":21816.67,"Total_out":7.12,"Power_curr":654}}

      Ich benötige die Werte von Total_in; Total_out und Power_curr einzeln, damit ich die Daten über Grafana visualisieren kann.

      Habe bisher jedoch noch nicht heraus gefunden, wie ich diese so Umwandeln kann, dass diese einzeln an Influxdb übertragen werden.

      Vielen Dank vorab.

      posted in Node-Red
      M
      marco121990
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo