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. Visualisierung
  4. [Frage] Welches Widget für Text bei State vom Typ Zeichenkette?

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    346

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

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

[Frage] Welches Widget für Text bei State vom Typ Zeichenkette?

Scheduled Pinned Locked Moved Visualisierung
vis
7 Posts 3 Posters 386 Views 1 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.
  • W Offline
    W Offline
    weimaraner
    wrote on last edited by
    #1

    Meine erste Frage im neuen Forum! :relaxed:

    Ich habe einen Weatherman. Der liefert u.a. die Windrichtung als state vom Typ Zeichenkette mit folgenden Angaben: N, NO, O, SO, S, SW, W, NW
    Ich möchte in der vis aber die Windrichtung ausgeschrieben. Also Norden, Osten, usw.
    Ich finde kein widget (oder kann es nicht konfigurieren), welches statt N also Norden anzeigt. für Zahlenwerte habe ich das value list. Aber Zeichenkette?
    Grüße Andreas

    1 Reply Last reply
    0
    • htreckslerH Offline
      htreckslerH Offline
      htrecksler
      Forum Testing
      wrote on last edited by
      #2

      Mit einem Script würde es gehen.
      Aber ich weiß nicht wie fit du darin bist

      Gruss Hermann

      ioBroker auf Proxmox (Debian) auf IntelNuc als Produktivsystem

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weimaraner
        wrote on last edited by
        #3

        Leider völlig unsportlich... :joy:
        Ich dachte, es gäbe ein widget, was das kann. Ähnlich dem value list.
        Ich könnte aber bestimmt ein blockly versuchen.
        Grüße Andreas

        HomoranH 1 Reply Last reply
        0
        • htreckslerH Offline
          htreckslerH Offline
          htrecksler
          Forum Testing
          wrote on last edited by
          #4

          da bin ich raus. Ich kann nur das normale javascript. Zumindest für den Hausgebrauch

          Gruss Hermann

          ioBroker auf Proxmox (Debian) auf IntelNuc als Produktivsystem

          1 Reply Last reply
          0
          • W weimaraner

            Leider völlig unsportlich... :joy:
            Ich dachte, es gäbe ein widget, was das kann. Ähnlich dem value list.
            Ich könnte aber bestimmt ein blockly versuchen.
            Grüße Andreas

            HomoranH Do not disturb
            HomoranH Do not disturb
            Homoran
            Global Moderator Administrators
            wrote on last edited by
            #5

            @weimaraner
            das ist ein ganz leichtes Blockly
            Triggern auf den Datenpunkt , der sich ändert und dann ein mehrfaches falls in denen die Möglichen Werte in Klartext konvertiert werden
            Habe ich bei meinem Wechselrichter genauso:
            konvertierer.png

            <xml xmlns="http://www.w3.org/1999/xhtml">
              <block type="on_ext" id="U6uIvYGIpS7D!x+,Vpmv" x="-12" y="-262">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="f3:wR1WhrJPqZgwmNbPk">
                    <field name="oid">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="bBj8AObw9sx4)m0n}f/S">
                    <mutation elseif="5" else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="H6]r}ZBdyT@h*O*d342W">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="y8hIoJi+.f{rIBOqj3tn">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="8]UnDq3#x@l7rDYMx6*Z">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="update" id="RJxZ*6B#F3=eLOXL)MCs">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id=",uLUmes+.g=M9CHIW%fY">
                            <field name="TEXT">aus</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="[n-xyV|w!m:)pMs5}U2=">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="G1I,6t).Xe123VJpod!#">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id=".~oDxm8eZDWRc{V![?Q{">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="update" id="ZzWupPP1+1}.JJ5O~?[~">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="cTE?).qfsKqw}IaEO2.7">
                            <field name="TEXT">Leerlauf</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF2">
                      <block type="logic_compare" id="2gEG8![5]C=n/7jd{eeG">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="5*PP](Pg94v;gRkAWe+@">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="*yp-@9hBBh(FRm~7W=e;">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO2">
                      <block type="update" id="7ba*nde2NH^V39s{Fz]b">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="cL)v4[?xZk2aXS`TNDQF">
                            <field name="TEXT">Anfahren</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF3">
                      <block type="logic_compare" id="TjBZhe2vOY_;516v!KBY">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="z=5gjgq_td56^~jO/k|K">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="FmK!DKwU7C46D/MpJg@n">
                            <field name="NUM">3</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO3">
                      <block type="update" id="oJ_I%UOkQ1Rs%/H_A:uN">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="ynuL`[+15s,5a[D^v?/0">
                            <field name="TEXT">Einspeisen MPP</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF4">
                      <block type="logic_compare" id="MKqAQ8!DD.Ig)Tv@k}d)">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="i+[|iN=pc^84D3!-Mcm5">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="9sRqn(m?uLLQosp}j/nT">
                            <field name="NUM">4</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO4">
                      <block type="update" id="E;Xy,YAbG7Tx1%_#Kv~H">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="Hg{?ADUX2!gLmx1*arsf">
                            <field name="TEXT">Einspeisen abgeregelt</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF5">
                      <block type="logic_compare" id="oD[`+`/Vo=ola}rlCu;-">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="3Zwc^N_lkGV2h@Hp6P!T">
                            <field name="ATTR">val</field>
                            <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="#4nBQwS9OWSP]R-eJNIn">
                            <field name="NUM">7</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO5">
                      <block type="update" id="9.Bz:D)(cy(Bl{`Ax#ec">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="JLdKs=lDv.D|!+@cAaF3">
                            <field name="TEXT">Isolationsmessung</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="update" id="dmn?]^E`me_zDZ,zj~+p">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text_join" id="muH4Du32mGvss_4`jz7q">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id=":7VU7X9Rh[9OR2LIe.Uh">
                                <field name="TEXT">Code </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="convert_tostring" id="e:Ff5Hh]3dQ6;KnCRoXp">
                                <value name="VALUE">
                                  <block type="get_value" id="xCt:yn77@(hX6Iv.521a">
                                    <field name="ATTR">val</field>
                                    <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </xml>
            

            kein Support per PN! - Fragen im Forum stellen -
            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
            Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

            1 Reply Last reply
            0
            • HomoranH Do not disturb
              HomoranH Do not disturb
              Homoran
              Global Moderator Administrators
              wrote on last edited by
              #6

              Ach so:
              Status_Klartext ist ein selbst angelegter Datenpunkt vom Typ String/Text

              Dessen Inhalt wird dann in vis dargestellt

              kein Support per PN! - Fragen im Forum stellen -
              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
              Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
              der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

              1 Reply Last reply
              1
              • W Offline
                W Offline
                weimaraner
                wrote on last edited by
                #7

                Super! Das paßt ja perfekt. Danke.

                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

                601

                Online

                32.7k

                Users

                82.5k

                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