Navigation

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

    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

    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 20
    • Best 9
    • Groups 1

    hinti

    @hinti

    Starter

    9
    Reputation
    6
    Profile views
    20
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    hinti Follow
    Starter

    Best posts made by hinti

    • RE: Fronius Wattpilot Test 4.0.x

      @c1olli
      Die 3.1.0 ist bei mir jetzt 4 Stunden gelaufen. Jetzt hab ich die 3.0.0 drauf. Mal sehen wie lange diese funktioniert.
      Könnte es auch Distributionsabhängig sein? Bei mir läuft iobroker auf ubuntu-22.04 im Container auf einem Proxmox-Server. Werde es auch auf anderen Distris versuchen.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @c1olli said in Fronius Wattpilot Test 3.0.x:

      Der Entwickler ist @tim2zg.

      Sorry, da hab ich mich vertan.

      Ja, ich hab nodejs 16 installiert
      7c42e1ee-78ae-4d5b-9ec3-0eb980863767-grafik.png

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @c1olli
      Hallo! Ich habe gestern noch die aktuelle Version 3.0.2 installiert. Doch leider sind die Ausfälle noch viel häufiger geworden. Jetzt läuft der Adapter nur noch ein paar Minuten, und obwohl bei den Instanzen der Wattpilot auf grün ist kommen keine Werte.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @c1olli
      Bei mir läuft er Adapter auch nur ca. 1 Tag. Kann kommen keine Werte mehr.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Danke Tim für deine / eure großartige Arbeit.👍
      Ich benutze ein Huawei Glasfaser-Modem.
      Ich hab den aktuellen Adapter grad installiert und werde gleich testen.
      Lg. Gerhard

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Bei den früheren Adapter-Versionen kann ich das Problem nicht feststellen.
      Mir ist da aber jetzt was aufgefallen.

      71a35d0d-595c-445a-9da3-e573c943af6d-grafik.png

      Bei der Zeit 2022-10-05 19:49:15.578 in der Logdatei hat sch der Adapter mit dem Wattpiloten verbunden. Die Werte kommen jede Sekunde genau 1 x.

      Bei 2022-10-05 19:51:47.387 hast sich der Adapter neu Verbunden. Ab da an kommt der gleiche Wert 2 x je Sekunde.

      Bei 2022-10-05 19:54:17.432 verbindet er sich wieder, und es kommt der gleiche Wert 3 x je Sekunde.

      Bei 2022-10-05 19:56:47.443 wieder neu verbunden, und es kommen die gleichen Werte 4 x je Sekunde.

      Als ob der Service 4 x im Hintergrund laufen würde.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      ich hab auch die Version 38.5

      Der Wert bei der Frequenz wird jede Sekunde aktualisiert. Das komische ist, wenn ich die Daten über Node-Red in die influxdb schreibe, wird in jeder Sekunde der Wert 4 x geschrieben.
      9948d1dc-00c3-4454-b041-f110bd514c85-grafik.png

      Wenn ich die Werte direkt mit iobroker in die influxdb schreibe, nur 2 x.
      4b2d5d66-a3e3-4761-b1a2-6289682fed68-grafik.png
      918a00cc-b616-42aa-807d-fa8a71538139-grafik.png

      Ich werde jetzt nochmal eine frühere Version vom Adapter raufspielen. Mal schauen wie oft da die Werte kommen.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Hallo Tim!
      Der Adapter läuft bis jetzt ohne Ausfälle. Aber es kommen jetzt die Werte innerhalb 1 Sekunde 4fach an.
      Bildschirmfoto vom 2022-10-04 21-04-30.png
      039e610d-f0ad-4cbe-80c6-4f88b45d8001-grafik.png
      Nach einem Neustart kommt dann wieder nur ein Wert. Aber dann mit der Zeit erhöhen sich die Werte bis zu 4 Stück.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Hallo Tim!
      Der Adapter läuft jetzt ohne Fehlermeldungen so wie er soll.
      Danke für die tolle Arbeit!

      posted in Tester
      H
      hinti

    Latest posts made by hinti

    • RE: Variable in Node "influxdb in"

      @mickym
      OK, Super. Danke für deine Hilfe.

      posted in Node-Red
      H
      hinti
    • RE: Variable in Node "influxdb in"

      @mickym
      Danke für die Antwort.
      Hier nochmals der Flow:

      [
         {
             "id": "72c36d015644d984",
             "type": "tab",
             "label": "Flow 2",
             "disabled": false,
             "info": "",
             "env": []
         },
         {
             "id": "8a88b6fdb45f100c",
             "type": "inject",
             "z": "72c36d015644d984",
             "name": "",
             "props": [
                 {
                     "p": "payload"
                 },
                 {
                     "p": "topic",
                     "vt": "str"
                 }
             ],
             "repeat": "",
             "crontab": "",
             "once": false,
             "onceDelay": 0.1,
             "topic": "",
             "payload": "",
             "payloadType": "date",
             "x": 120,
             "y": 140,
             "wires": [
                 [
                     "a9316343deec6c53"
                 ]
             ]
         },
         {
             "id": "a9316343deec6c53",
             "type": "function",
             "z": "72c36d015644d984",
             "name": "Monatstage",
             "func": "var msg = {};\n\n// ------------- Aktuellen Monat herausfinden -------------------------\nvar Tage;\nvar now = new Date();\nvar month = now.getMonth() + 1;\n\nif (month == 1) {Tage = 31}\nif (month == 2) { Tage = 28 }\nif (month == 3) { Tage = 31}\nif (month == 4) { Tage = 30 }\nif (month == 5) { Tage = 31}\nif (month == 6) { Tage = 30 }\nif (month == 7) { Tage = 31 }\nif (month == 8) { Tage = 31 }\nif (month == 9) { Tage = 30 }\nif (month == 10) { Tage = 31 }\nif (month == 11) { Tage = 30 }\nif (month == 12) { Tage = 31 }\n// --------------------------------------------------------------------\n\n\nmsg.payload =\n{\n   Tage:Tage,\n}\nreturn [msg];",
             "outputs": 1,
             "noerr": 0,
             "initialize": "",
             "finalize": "",
             "libs": [],
             "x": 290,
             "y": 140,
             "wires": [
                 [
                     "7e701c0656398ec3",
                     "1ea910c9a8ca6a24"
                 ]
             ]
         },
         {
             "id": "7e701c0656398ec3",
             "type": "influxdb in",
             "z": "72c36d015644d984",
             "influxdb": "655abc6ff1dd28f5",
             "name": "Abfrage Zählerst. Energie",
             "query": "SELECT sum(\"Pool_vom_Netz\") / 120000 FROM \"Bilanz\" WHERE time > now() '-${payload.Tage}d'",
             "rawOutput": true,
             "precision": "",
             "retentionPolicy": "",
             "org": "",
             "x": 510,
             "y": 140,
             "wires": [
                 [
                     "31afc62051488e86"
                 ]
             ]
         },
         {
             "id": "31afc62051488e86",
             "type": "debug",
             "z": "72c36d015644d984",
             "name": "payload",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 720,
             "y": 140,
             "wires": []
         },
         {
             "id": "1ea910c9a8ca6a24",
             "type": "debug",
             "z": "72c36d015644d984",
             "name": "payload",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 460,
             "y": 80,
             "wires": []
         },
         {
             "id": "655abc6ff1dd28f5",
             "type": "influxdb",
             "hostname": "10.1.1.113",
             "port": "8086",
             "protocol": "http",
             "database": "whirlpool",
             "name": "whirlpool",
             "usetls": false,
             "tls": "",
             "influxdbVersion": "1.x",
             "url": "http://localhost:8086",
             "rejectUnauthorized": true
         }
      ]
      


      Mit der Variable direkt im Query hab ich das Problem. Mit deiner Lösung mit dem Change Node funktioniert es jetzt

      [
         {
             "id": "f6bfa45d44848e0b",
             "type": "tab",
             "label": "Flow 3",
             "disabled": false,
             "info": "",
             "env": []
         },
         {
             "id": "d6218fe1418c8ae9",
             "type": "inject",
             "z": "f6bfa45d44848e0b",
             "name": "",
             "props": [
                 {
                     "p": "payload"
                 },
                 {
                     "p": "topic",
                     "vt": "str"
                 }
             ],
             "repeat": "",
             "crontab": "",
             "once": false,
             "onceDelay": 0.1,
             "topic": "",
             "payload": "",
             "payloadType": "date",
             "x": 100,
             "y": 260,
             "wires": [
                 [
                     "2e25ecba20d95814"
                 ]
             ]
         },
         {
             "id": "2e25ecba20d95814",
             "type": "function",
             "z": "f6bfa45d44848e0b",
             "name": "Monatstage",
             "func": "var msg = {};\n\n// ------------- Aktuellen Monat herausfinden -------------------------\nvar Tage;\nvar now = new Date();\nvar month = now.getMonth() + 1;\n\nif (month == 1) {Tage = 31}\nif (month == 2) { Tage = 28 }\nif (month == 3) { Tage = 31}\nif (month == 4) { Tage = 30 }\nif (month == 5) { Tage = 31}\nif (month == 6) { Tage = 30 }\nif (month == 7) { Tage = 31 }\nif (month == 8) { Tage = 31 }\nif (month == 9) { Tage = 30 }\nif (month == 10) { Tage = 31 }\nif (month == 11) { Tage = 30 }\nif (month == 12) { Tage = 31 }\n// --------------------------------------------------------------------\n\n\nmsg.payload =\n{\n   Tage:Tage,\n}\nreturn [msg];",
             "outputs": 1,
             "noerr": 0,
             "initialize": "",
             "finalize": "",
             "libs": [],
             "x": 270,
             "y": 260,
             "wires": [
                 [
                     "0374cab1d63834c4",
                     "42e42ac5275c90ae"
                 ]
             ]
         },
         {
             "id": "42e42ac5275c90ae",
             "type": "debug",
             "z": "f6bfa45d44848e0b",
             "name": "payload",
             "active": false,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 440,
             "y": 220,
             "wires": []
         },
         {
             "id": "0374cab1d63834c4",
             "type": "change",
             "z": "f6bfa45d44848e0b",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "query",
                     "pt": "msg",
                     "to": "'SELECT sum(\"Pool_vom_Netz\") / 120000 FROM \"Bilanz\" WHERE time > now() -' & payload.Tage & 'd'",
                     "tot": "jsonata"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 460,
             "y": 260,
             "wires": [
                 [
                     "9005b1ef0601da83",
                     "7e1adada9963614b"
                 ]
             ]
         },
         {
             "id": "7e1adada9963614b",
             "type": "debug",
             "z": "f6bfa45d44848e0b",
             "name": "query",
             "active": false,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "query",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 630,
             "y": 220,
             "wires": []
         },
         {
             "id": "9005b1ef0601da83",
             "type": "influxdb in",
             "z": "f6bfa45d44848e0b",
             "influxdb": "655abc6ff1dd28f5",
             "name": "Abfrage Zählerst. Energie",
             "query": "msg.query",
             "rawOutput": true,
             "precision": "",
             "retentionPolicy": "",
             "org": "",
             "x": 690,
             "y": 260,
             "wires": [
                 [
                     "af64830ef5a1d939",
                     "833e8db5cdba66d3"
                 ]
             ]
         },
         {
             "id": "af64830ef5a1d939",
             "type": "debug",
             "z": "f6bfa45d44848e0b",
             "name": "payload",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 840,
             "y": 220,
             "wires": []
         },
         {
             "id": "833e8db5cdba66d3",
             "type": "function",
             "z": "f6bfa45d44848e0b",
             "name": "E_Whirlpool_Monat_v_Netz",
             "func": "var msg1 = {};\n\nvar Pool_vom_Netz = msg.payload.results[0].series[0].values[0][1];\n\n\nmsg1.payload =\n{\n\nPool_vom_Netz_Monat: parseFloat(Pool_vom_Netz.toFixed(2)),\n  \n\n}\n\n\nreturn [msg1];",
             "outputs": 1,
             "noerr": 0,
             "initialize": "",
             "finalize": "",
             "libs": [],
             "x": 940,
             "y": 260,
             "wires": [
                 [
                     "8014820292266bd7"
                 ]
             ]
         },
         {
             "id": "8014820292266bd7",
             "type": "debug",
             "z": "f6bfa45d44848e0b",
             "name": "payload",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 1020,
             "y": 220,
             "wires": []
         },
         {
             "id": "655abc6ff1dd28f5",
             "type": "influxdb",
             "hostname": "10.1.1.113",
             "port": "8086",
             "protocol": "http",
             "database": "whirlpool",
             "name": "whirlpool",
             "usetls": false,
             "tls": "",
             "influxdbVersion": "1.x",
             "url": "http://localhost:8086",
             "rejectUnauthorized": true
         }
      ]
      


      Kann man sich die change Node sparren, und die Variable direkt in die Query stecken?

      posted in Node-Red
      H
      hinti
    • Variable in Node "influxdb in"

      Hallo!

      Ich verwende die Node "influxdb in" und habe ein Problem mit einer Variable.
      Bei

      SELECT sum("Pool_vom_Netz") / 120000 FROM "Bilanz" WHERE time > now() -31d
      

      funktioniert es. Ich möchte aber die (-31d) Tage in einer Variable verpacken.
      Das was ich im Netz gefunden habe funktioniert leider nicht.

      SELECT sum("Pool_vom_Netz") / 120000 FROM "Bilanz" WHERE time > now() '-${payload.Tage}d'
      

      Wie schaut die Variable richtig aus?
      Hier der Flow:


      [
      {
      "id": "c4adbc7357d003d1",
      "type": "tab",
      "label": "Flow 1",
      "disabled": false,
      "info": "",
      "env": []
      },
      {
      "id": "45b9ad6228447b62",
      "type": "inject",
      "z": "c4adbc7357d003d1",
      "name": "",
      "props": [
      {
      "p": "payload"
      },
      {
      "p": "topic",
      "vt": "str"
      }
      ],
      "repeat": "",
      "crontab": "",
      "once": false,
      "onceDelay": 0.1,
      "topic": "",
      "payload": "",
      "payloadType": "date",
      "x": 200,
      "y": 160,
      "wires": [
      [
      "473b104681483dc8"
      ]
      ]
      },
      {
      "id": "473b104681483dc8",
      "type": "function",
      "z": "c4adbc7357d003d1",
      "name": "Monatstage",
      "func": "var msg = {};\n\n// ------------- Aktuellen Monat herausfinden -------------------------\nvar Tage;\nvar now = new Date();\nvar month = now.getMonth() + 1;\n\nif (month == 1) {Tage = 31}\nif (month == 2) { Tage = 28 }\nif (month == 3) { Tage = 31}\nif (month == 4) { Tage = 30 }\nif (month == 5) { Tage = 31}\nif (month == 6) { Tage = 30 }\nif (month == 7) { Tage = 31 }\nif (month == 😎 { Tage = 31 }\nif (month == 9) { Tage = 30 }\nif (month == 10) { Tage = 31 }\nif (month == 11) { Tage = 30 }\nif (month == 12) { Tage = 31 }\n// --------------------------------------------------------------------\n\n\nmsg.payload =\n{\n Tage:Tage,\n}\nreturn [msg];",
      "outputs": 1,
      "noerr": 0,
      "initialize": "",
      "finalize": "",
      "libs": [],
      "x": 370,
      "y": 160,
      "wires": [
      [
      "e73be277cb1cc425"
      ]
      ]
      },
      {
      "id": "e73be277cb1cc425",
      "type": "influxdb in",
      "z": "c4adbc7357d003d1",
      "influxdb": "655abc6ff1dd28f5",
      "name": "Abfrage Zählerst. Energie",
      "query": "SELECT sum("Pool_vom_Netz") / 120000 FROM "Bilanz" WHERE time > now() '-${payload.Tage}d'",
      "rawOutput": true,
      "precision": "",
      "retentionPolicy": "",
      "org": "",
      "x": 590,
      "y": 160,
      "wires": [
      []
      ]
      },
      {
      "id": "655abc6ff1dd28f5",
      "type": "influxdb",
      "hostname": "10.1.1.113",
      "port": "8086",
      "protocol": "http",
      "database": "whirlpool",
      "name": "whirlpool",
      "usetls": false,
      "tls": "",
      "influxdbVersion": "1.x",
      "url": "http://localhost:8086",
      "rejectUnauthorized": true
      }
      ]

      Danke.

      posted in Node-Red
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      Hallo!
      Gibt es einen Parameter, der bei der Ladung anzeigt, wie viel vom Netz und wie viel von der PV geladen wird? Ev. auch als Summen?

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Hallo Tim!
      Der Adapter läuft jetzt ohne Fehlermeldungen so wie er soll.
      Danke für die tolle Arbeit!

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg said in Fronius Wattpilot Test 3.0.x:

      @c1olli
      Das ist komisch, hast du den Adapter nachdem du das Update gemacht hast neu gestartet?

      Diese Fehlermeldungen bekomm ich jetzt auch.
      Aber bei der 3.2.2 kommen die Werte jetzt so wie sie sollen. Kein Ausfall und keine doppelten Werte.

      fronius-wattpilot.0
      	2022-10-08 09:01:12.879	error	Pleas check your Pilot!
      fronius-wattpilot.0
      	2022-10-08 09:01:12.879	error	Error on parsing JSON: SyntaxError: Unexpected token e in JSON at position 1 never send invalid JSON in any direction through this websocket, yours could not be parsed: InvalidInput
      fronius-wattpilot.0
      	2022-10-08 09:01:11.725	info	Try to reconnect... Connection LOST!
      fronius-wattpilot.0
      	2022-10-08 06:58:42.872	error	Pleas check your Pilot!
      fronius-wattpilot.0
      	2022-10-08 06:58:42.871	error	Error on parsing JSON: SyntaxError: Unexpected token e in JSON at position 1 never send invalid JSON in any direction through this websocket, yours could not be parsed: InvalidInput
      fronius-wattpilot.0
      	2022-10-08 06:58:41.724	info	Try to reconnect... Connection LOST!
      fronius-wattpilot.0
      	2022-10-08 06:56:12.868	error	Pleas check your Pilot!
      fronius-wattpilot.0
      	2022-10-08 06:56:12.867	error	Error on parsing JSON: SyntaxError: Unexpected token e in JSON at position 1 never send invalid JSON in any direction through this websocket, yours could not be parsed: InvalidInput
      fronius-wattpilot.0
      	2022-10-08 06:56:11.723	info	Try to reconnect... Connection LOST!
      fronius-wattpilot.0
      	2022-10-08 06:53:41.724	info	Try to reconnect... Connection LOST!
      fronius-wattpilot.0
      	2022-10-08 06:51:13.638	info	Connected!
      fronius-wattpilot.0
      	2022-10-08 06:51:11.724	info	Try to reconnect... Connection LOST!
      

      Den Abfrageintervall hab ich noch nicht getestet. Ich lass mittels Node-Red Werte nur alle 30 sec. durch.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Bei den früheren Adapter-Versionen kann ich das Problem nicht feststellen.
      Mir ist da aber jetzt was aufgefallen.

      71a35d0d-595c-445a-9da3-e573c943af6d-grafik.png

      Bei der Zeit 2022-10-05 19:49:15.578 in der Logdatei hat sch der Adapter mit dem Wattpiloten verbunden. Die Werte kommen jede Sekunde genau 1 x.

      Bei 2022-10-05 19:51:47.387 hast sich der Adapter neu Verbunden. Ab da an kommt der gleiche Wert 2 x je Sekunde.

      Bei 2022-10-05 19:54:17.432 verbindet er sich wieder, und es kommt der gleiche Wert 3 x je Sekunde.

      Bei 2022-10-05 19:56:47.443 wieder neu verbunden, und es kommen die gleichen Werte 4 x je Sekunde.

      Als ob der Service 4 x im Hintergrund laufen würde.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      ich hab auch die Version 38.5

      Der Wert bei der Frequenz wird jede Sekunde aktualisiert. Das komische ist, wenn ich die Daten über Node-Red in die influxdb schreibe, wird in jeder Sekunde der Wert 4 x geschrieben.
      9948d1dc-00c3-4454-b041-f110bd514c85-grafik.png

      Wenn ich die Werte direkt mit iobroker in die influxdb schreibe, nur 2 x.
      4b2d5d66-a3e3-4761-b1a2-6289682fed68-grafik.png
      918a00cc-b616-42aa-807d-fa8a71538139-grafik.png

      Ich werde jetzt nochmal eine frühere Version vom Adapter raufspielen. Mal schauen wie oft da die Werte kommen.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Hallo Tim!
      Der Adapter läuft bis jetzt ohne Ausfälle. Aber es kommen jetzt die Werte innerhalb 1 Sekunde 4fach an.
      Bildschirmfoto vom 2022-10-04 21-04-30.png
      039e610d-f0ad-4cbe-80c6-4f88b45d8001-grafik.png
      Nach einem Neustart kommt dann wieder nur ein Wert. Aber dann mit der Zeit erhöhen sich die Werte bis zu 4 Stück.

      posted in Tester
      H
      hinti
    • RE: Fronius Wattpilot Test 4.0.x

      @tim2zg
      Danke Tim für deine / eure großartige Arbeit.👍
      Ich benutze ein Huawei Glasfaser-Modem.
      Ich hab den aktuellen Adapter grad installiert und werde gleich testen.
      Lg. Gerhard

      posted in Tester
      H
      hinti
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo