Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. ioBroker Daten auf influxdb

    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

    ioBroker Daten auf influxdb

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Toni-PV last edited by Homoran

      Hallo zusammen

      Ich würde gerne den Power "state" (On or Off des Sonoff Pow R2) von boolean auf int ändern, um in "grafana" die <value to text> Funktion zu benützen.
      Verstehe ich das richtig, dass ich mit einem Script in ioBroker die Aufzeichnung in influxdb von boolean auf int erzwingen kann ???

      Folgendes finde ich auf dem ioBroker ....

      {
        "from": "system.adapter.influxdb.0",
        "user": "system.user.admin",
        "ts": 1602764148684,
        "common": {
          "name": "Sonoff PV001 POWER",
          "type": "boolean",
          "role": "switch",
          "read": true,
          "write": true,
          "storeMap": true,
          "custom": {
            "influxdb.0": {
              "enabled": true,
              "changesOnly": true,
              "debounce": 0,
              "maxLength": 10,
              "retention": "31536000",
              "changesRelogInterval": 0,
              "changesMinDelta": 0,
              "storageType": "boolean",
              "aliasId": ""
            }
          }
        },
        "native": {},
        "acl": {
          "object": 1638,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator",
          "state": 1638
        },
        "_id": "sonoff.0.Sonoff PV001.POWER",
        "type": "state"
      }
      

      MOD-Edit: Code in code-tags gesetzt!

      Kann ich hier Code anfügen um die Umwandlung durchzuführen?

      Gruss
      Toni

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Toni-PV last edited by

        @Toni-PV wenn du etwas "Umwandeln" möchtest, kannst du das mittels Alias.
        Frage, warum/weshalb möchtest du etwas umwandeln? Verstehe gerade nicht was du erreichen möchtest?

        T 1 Reply Last reply Reply Quote 0
        • T
          Toni-PV @crunchip last edited by

          @crunchip Hallo
          Ich kann mit dem boolean type nicht weiterarbeiten, brauche eine Ausgabe 1 oder 0 ... für den "Sonoff PV001 Power" Wert ...
          Hoffe das hilft 😉

          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Toni-PV last edited by

            @Toni-PV Stichwort Value Mappings in Grafana

            T 1 Reply Last reply Reply Quote 0
            • T
              Toni-PV @crunchip last edited by

              @crunchip leider eben nicht mit boolean !!!

              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @Toni-PV last edited by

                @Toni-PV dann eben über den Alias, oder du legst dir einfach manuell nen Datenpunkt an und mit nem Blockly kannst du den DP schalten, diesen dann in Influx loggen
                Beispiel
                bd46b14c-393c-49b3-832b-6b1b924ab825-image.png

                T 1 Reply Last reply Reply Quote 0
                • T
                  Toni-PV @crunchip last edited by

                  @crunchip Hallo
                  Vielen Dank, das hat mir geholfen, jetzt kann ich die Auswertung machen. Gruss Toni

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  760
                  Online

                  31.8k
                  Users

                  80.0k
                  Topics

                  1.3m
                  Posts

                  javascript
                  2
                  7
                  909
                  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