Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Klammerwert/ Wert in Visualisierung

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Klammerwert/ Wert in Visualisierung

    This topic has been deleted. Only users with topic management privileges can see it.
    • arteck
      arteck Developer Most Active @Minifutzi last edited by arteck

      @minifutzi screenshot ?? kein plan was du meinst

      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Minifutzi last edited by

        @minifutzi sagte in Klammerwert/ Wert in Visualisierung:

        der Klammerwert statt der tatsächliche Wert angezeigt

        der "Klammerwert" ist der tatsächliche Wert!
        der Klartext wird daraus übersetzt.

        Ich setze jetzt mangels Informationen voraus, dass es sich um eine Werteliste handelt

        M 1 Reply Last reply Reply Quote 0
        • M
          Minifutzi @Homoran last edited by

          @homoran Genau.

          efb9b813-9427-4ab3-b354-bdeab2d6320d-image.png

          Hier werden 2 Werte geschrieben (ohne Klammer, mit Klammer)

          Bei der Visualisierung sieht das dann so aus:

          dc4b0d7f-154b-4b1d-b8ea-faa0a35f8a44-image.png

          Wie bekomm ich den Wert ohne Klammer dargestellt?

          Homoran arteck 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Minifutzi last edited by Homoran

            @minifutzi sagte in Klammerwert/ Wert in Visualisierung:

            Wie bekomm ich den Wert ohne Klammer dargestellt?

            nochmal: der Wert ist die Zahl.

            du müsstest bei vis ein Widget für Wertelisten nehmen und den Werten (Zahlen) den gewünschten Text zuordnen.

            Leider hast du alles wichtige abgeschnitten!
            wie sehen die Objektdaten aus?

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Homoran last edited by paul53

              @homoran sagte: der Wert ist die Zahl.

              Hier ist der Wert ein langer String. Es ist trotzdem eine Werteliste mit Zuordnungen unter common.states (siehe hier und hier).

              Homoran M 2 Replies Last reply Reply Quote 1
              • Homoran
                Homoran Global Moderator Administrators @paul53 last edited by

                @paul53 Danke!
                So ein Konstrukt kannte ich bisher nicht

                1 Reply Last reply Reply Quote 0
                • M
                  Minifutzi @paul53 last edited by

                  @paul53 Danke 🙂
                  Gibt es so eine Werte-Liste bei OpenHAB Visualisierung? Ich finde keine 😞

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @Minifutzi last edited by paul53

                    @minifutzi sagte: Visualisierung von OpenHAB.

                    Wenn die Zustandstexte nur angezeigt werden sollen, erstelle zwei eigene Datenpunkte vom Typ "string" für die Visualisierung und schreibe sie mit folgendem Skript:

                    const idSrcTuer = 'bsh.0.xyz'; // ID anpassen!
                    const idSrcProg = 'bsh.0.abc'; // ID anpassen!
                    const idDstTuer = '0_userdata.0.Geschirrspueler.Tuer'; // Typ: "string"
                    const idDstProg = '0_userdata.0.Geschirrspueler.Programm'; // Typ: "string"
                    
                    on(idSrcTuer, function(dp) {
                        setState(idDstTuer, dp.common.states[dp.state.val], true);
                    });
                    
                    on(idSrcProg, function(dp) {
                        setState(idDstProg, dp.common.states[dp.state.val], true);
                    });
                    

                    Anmerkung: Nach Skriptstart muss sich der Quellwert erst ändern, damit in die Datenpunkte geschrieben wird.

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Minifutzi last edited by

                      @minifutzi sagte: Gibt es so eine Werte-Liste bei OpenHAB Visualisierung?

                      Ich kenne die OpenHAB Visualisierung nicht.

                      1 Reply Last reply Reply Quote 0
                      • arteck
                        arteck Developer Most Active @Minifutzi last edited by

                        @minifutzi hier klicken
                        ba2cfbf1-9081-4af4-9946-82d68b0c1297-grafik.png

                        und posten.. aber ALLES

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @arteck last edited by

                          @arteck sagte: posten.. aber ALLES

                          Findet man unter den geposteten Links.

                          arteck 1 Reply Last reply Reply Quote 0
                          • arteck
                            arteck Developer Most Active @paul53 last edited by

                            @paul53 ja ich weiss.. ich wollte dass er @Minifutzi das auch sieht..

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              Minifutzi @arteck last edited by

                              @arteck

                              1136c0b4-6ec4-4405-ba93-bf6fa06ecc5c-image.png

                              aa206c27-60bd-496c-baa3-d6083dee76a1-image.png

                              1 Reply Last reply Reply Quote 0
                              • arteck
                                arteck Developer Most Active last edited by arteck

                                @minifutzi na also ..da siehst du es ja auch
                                f8de7e13-2c15-4f74-acca-2d04960e6d1d-grafik.png

                                das rote ist das was der adapter liefert und auch das was du auswählen kannst
                                das blaue ist das was wir daraus machen..bzw was die combobox dir als Text zur verfügungn stellt

                                willst du es auswählen musst du in den Datenpunkt auch das ganze reinschreiben
                                b63480d1-ba78-4e43-a663-2061e278f5cd-grafik.png

                                sonst findet der es nicht

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                938
                                Online

                                31.7k
                                Users

                                79.7k
                                Topics

                                1.3m
                                Posts

                                4
                                15
                                552
                                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