Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Off Topic
  4. Grafana
  5. Reienfolge in einem Datenfeld ändern

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Reienfolge in einem Datenfeld ändern

Scheduled Pinned Locked Moved Grafana
4 Posts 2 Posters 230 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matthias 5
    wrote on last edited by
    #1

    Moin zusammen,
    entschuldigt bitte meine dumme Frage! Bin leider schon über 70.
    Ich möchte die Daten in diesem Grafana-Fenster in der richtigen Reihenfolge anzeigen.
    a8234618-d8a8-414c-ba4d-eb503791d7c0-image.png

    Die Influx-Abfrage sieht wie folgt aus:

    from(bucket: "iobrokerDB")
    |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
    |> filter(fn: (r) => r["_measurement"] == "shelly.0.shellyplus1pm#441793d4bd0c#1.Relay0.Power" or r["_measurement"] == "shelly.0.shellyplus1pm#441793d4ae90#1.Relay0.Power" or r["_measurement"] == "shelly.0.shellyplus1pm#441793d4b98c#1.Relay0.Power")
    |> filter(fn: (r) => r["_field"] == "value")
    |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
    |> yield(name: "last")

    Vielen Dank für eure Hilfe!

    1 Reply Last reply
    0
    • arteckA Offline
      arteckA Offline
      arteck
      Developer Most Active
      wrote on last edited by
      #2

      Heiz3 = shelly.0.shellyplus1pm#441793d4bd0c#1.Relay0.Power
      Heiz1 = shelly.0.shellyplus1pm#441793d4ae90#1.Relay0.Power
      Heiz2 = shelly.0.shellyplus1pm#441793d4b98c#1.Relay0.Power

      zur kontrolle ist das so richtig ?

      zigbee hab ich, zwave auch, nuc's genauso und HA auch

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Matthias 5
        wrote on last edited by Matthias 5
        #3

        @arteck

        Heiz3 = shelly.0.shellyplus1pm#441793d4bd0c#1.Relay0.Power = Heizstufe 2
        Heiz1 = shelly.0.shellyplus1pm#441793d4ae90#1.Relay0.Power = Heizstufe 3
        Heiz2 = shelly.0.shellyplus1pm#441793d4b98c#1.Relay0.Power = Heizstufe 1

        Hallo arteck, die Reihenfolge der Shellys in der Abfrage habe ich mehrfach geändert.
        Die Anordnung erfolgt gnadenlos immer in gleicher Reihenfolge.
        Es sieht so aus als wird nach alphabetische Reihenfolge der Shelly Geräte ID sortiert.

        Ich glaube ich muss mich mal mit Alias-Namen beschäftigen!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Matthias 5
          wrote on last edited by
          #4

          Geht doch
          84da7797-1785-45e9-883a-033f360580a6-image.png

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          746

          Online

          32.6k

          Users

          82.3k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe