Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. [Frage] Welches Widget für Text bei State vom Typ Zeichenkette?

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      weimaraner last edited by

      Meine erste Frage im neuen Forum! ☺

      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 Reply Quote 0
      • htrecksler
        htrecksler Forum Testing last edited by

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

        1 Reply Last reply Reply Quote 0
        • W
          weimaraner last edited by

          Leider völlig unsportlich... 😂
          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

          Homoran 1 Reply Last reply Reply Quote 0
          • htrecksler
            htrecksler Forum Testing last edited by

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

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

              @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>
              
              1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators last edited by

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

                Dessen Inhalt wird dann in vis dargestellt

                1 Reply Last reply Reply Quote 1
                • W
                  weimaraner last edited by

                  Super! Das paßt ja perfekt. Danke.

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  464
                  Online

                  32.0k
                  Users

                  80.5k
                  Topics

                  1.3m
                  Posts

                  vis
                  3
                  7
                  288
                  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