Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. blockly eleganter machen

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.6k

blockly eleganter machen

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
72 Beiträge 5 Kommentatoren 6.8k Aufrufe 6 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • A Ahnungsbefreit

    @dos1973 Genau! Zumindest keinen "sauberen" Namen. In meinem Beispiel wäre das dann "BUR-RAU:0.UNREACH" statt nur "BUR-RAU". Evtl. ist der Name auch gar nicht gesetzt für den DP "UNREACH" bzw. in Deinem Fall "online"

    D Offline
    D Offline
    dos1973
    schrieb am zuletzt editiert von
    #63

    @Ahnungsbefreit
    ich muss nochmals etwas fragen, mit welchem Widget zeigst du das Json im VIS an. Bei mir werden alle klammern angezeigt?
    habe es mit Basic und HTML widget versucht

    A 1 Antwort Letzte Antwort
    0
    • D dos1973

      @Ahnungsbefreit
      ich muss nochmals etwas fragen, mit welchem Widget zeigst du das Json im VIS an. Bei mir werden alle klammern angezeigt?
      habe es mit Basic und HTML widget versucht

      A Offline
      A Offline
      Ahnungsbefreit
      schrieb am zuletzt editiert von
      #64

      @dos1973 vis-inventwo JSON

      Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

      D 1 Antwort Letzte Antwort
      0
      • A Ahnungsbefreit

        @dos1973 vis-inventwo JSON

        D Offline
        D Offline
        dos1973
        schrieb am zuletzt editiert von dos1973
        #65

        @Ahnungsbefreit

        du machst mich fertig ;-)
        von einem Problem ins andere... ich habe das mal installiert... da kommt erstmal nichts an - mal sehen.

        A 1 Antwort Letzte Antwort
        0
        • D dos1973

          @Ahnungsbefreit

          du machst mich fertig ;-)
          von einem Problem ins andere... ich habe das mal installiert... da kommt erstmal nichts an - mal sehen.

          A Offline
          A Offline
          Ahnungsbefreit
          schrieb am zuletzt editiert von
          #66

          @dos1973 ich poste morgen mal ein Beispiel, bin jetzt nicht mehr am PC

          Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

          A 1 Antwort Letzte Antwort
          0
          • A Ahnungsbefreit

            @dos1973 ich poste morgen mal ein Beispiel, bin jetzt nicht mehr am PC

            A Offline
            A Offline
            Ahnungsbefreit
            schrieb am zuletzt editiert von
            #67

            @dos1973 So kannst Du das Widget vis-inventwo JSON Table ganz einfach konfigurieren, damit das JSON angezeigt wird:
            3384d41a-2ebf-4b22-b601-ddee1b9c044a-image.png

            Als Objekt ID verwendest Du das Objekt, in das am Ende meines Blockly Scripts das JSON geschrieben wird und das Du natürlich "von Hand" als Zeichenkette angelegt hast.

            Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

            1 Antwort Letzte Antwort
            0
            • David G.D Online
              David G.D Online
              David G.
              schrieb am zuletzt editiert von David G.
              #68

              @Ahnungsbefreit
              @dos1973

              Danke für eure Inspiration.
              Ich habe mir anhand eurer Diskussion ein Skript bauen können, welches mir eine schöne HTML-Tabelle erstellt.
              Mit dieser lasse ich mir zeigen, ob meine HomematicIP-Geäte den Akku schwach haben (zum Testen steht es grade noch auf dem Schaltzustand, damit ich unterschiedliche Werte habe.).

              Lässt sich natürlich für jegliche Abfrage mit true und false missbrauchen.

              Unbenannt.JPG

              Screenshot_20210105-082125_Fully Kiosk Browser.jpg

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="q=Q/4S_nykMJv,R-%5SK">id</variable>
                  <variable id="SKh+R[G%ptX]9uv^hB,!">wahr</variable>
                  <variable id=";O,|I4cqK/q|U6dt.?NN">falsch</variable>
                  <variable id="%62`(Q[9y{,UvP3o}T|/">i</variable>
                  <variable id="GI^dumJfw0)4Nzi2HVw`">ParentID</variable>
                </variables>
                <block type="schedule" id="=M?}+$74/A|+fu)hob?*" x="1188" y="463">
                  <field name="SCHEDULE">* * * * *</field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="dZ;P0S=A~Ue9U{sxWFjF">
                      <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                      <value name="VALUE">
                        <block type="text" id="1Rdn%LJ,UsyiTo}^fQyi">
                          <field name="TEXT"></field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="JoJ{Z)?hFmCa3B.z1B~;">
                          <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                          <value name="VALUE">
                            <block type="text" id="I)B703c6WPKo}@_L8ai^">
                              <field name="TEXT"></field>
                            </block>
                          </value>
                          <next>
                            <block type="controls_forEach" id="VXic[*WK}rqr0-!U:EFy">
                              <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                              <value name="LIST">
                                <block type="selector" id="vI2MD73D2c=a4z1nh`=`">
                                  <field name="TEXT">hm-rpc.0.*.1.STATE</field>
                                </block>
                              </value>
                              <statement name="DO">
                                <block type="variables_set" id="5%|F-TdcQ{4t*4:+v!]w">
                                  <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                  <value name="VALUE">
                                    <block type="text_getSubstring" id="`QFsslqwXJcDRwUQ_z;$" inline="false">
                                      <mutation at1="true" at2="true"></mutation>
                                      <field name="WHERE1">FROM_START</field>
                                      <field name="WHERE2">FROM_START</field>
                                      <value name="STRING">
                                        <block type="variables_get" id="2K5mqiyK-@A,u?+%_r-I">
                                          <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                        </block>
                                      </value>
                                      <value name="AT1">
                                        <block type="math_number" id="_q*GktBrg4YS~$oc@#.$">
                                          <field name="NUM">1</field>
                                        </block>
                                      </value>
                                      <value name="AT2">
                                        <block type="math_arithmetic" id="BHxb,^*vvK^,t3OWIp~N" inline="false">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="V4^8g/Fq~(QA(Gn,=_g9">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="text_indexOf" id=";@~lMPhmFt@}zblOq8}z" inline="false">
                                              <field name="END">LAST</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="ZxgO1Qq@jpN)?*](o;s%">
                                                  <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                                </block>
                                              </value>
                                              <value name="FIND">
                                                <shadow type="text" id="xWkYFdwM0dR_rBOFM|zY">
                                                  <field name="TEXT">.1.STATE</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="h-25vZ[WT=N4?QJ3saG%">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="[t4#.[R7stu?S`@$u3BW">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="get_value_var" id="Iq+@rH{{dyJ9HWgoI~T4">
                                          <field name="ATTR">val</field>
                                          <value name="OID">
                                            <shadow type="text">
                                              <field name="TEXT"></field>
                                            </shadow>
                                            <block type="variables_get" id="B)n%:}PX%zZGvt#JtbR(">
                                              <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="sh;fX7NWP+]`^FcnbVjU">
                                          <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                          <value name="VALUE">
                                            <block type="text_join" id="|Xz[CQA5p*BCe{uu*,ir">
                                              <mutation items="5"></mutation>
                                              <value name="ADD0">
                                                <block type="variables_get" id="F4J0jDpn[Na[1p8Ruf=%">
                                                  <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="text" id="C+UnHlb%GLN.|tA3o,`C">
                                                  <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="get_attr" id="=z[7ycSqfif0h~4Sz*|=" inline="false">
                                                  <value name="PATH">
                                                    <shadow type="text" id="C*^0Xt3cP0zy%F4#veYO">
                                                      <field name="TEXT">common.name</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OBJECT">
                                                    <block type="procedures_callcustomreturn" id=",{*p|W,%6Npy^h.,(XSP">
                                                      <mutation name="GetObjectByID">
                                                        <arg name="id"></arg>
                                                      </mutation>
                                                      <value name="ARG0">
                                                        <block type="variables_get" id="dgPrr_H^_1Z}0!cS+Iw{">
                                                          <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="text" id="yNUk#G;)wLb1Xq!/%A[M">
                                                  <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=green&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="variables_set" id="S+Gd]Tap?Ej$]1P.V.(_">
                                          <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                          <value name="VALUE">
                                            <block type="text_join" id="5?soV=/V!gT:YP;%=C7*">
                                              <mutation items="4"></mutation>
                                              <value name="ADD0">
                                                <block type="variables_get" id="t5Hgf|mSwoVqQ}(:~9Y7">
                                                  <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="text" id="xa}qmEJ|8{^pBcPkIB|C">
                                                  <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="get_attr" id="N%K=-ar/nF2t;vp68{4;" inline="false">
                                                  <value name="PATH">
                                                    <shadow type="text" id="NEKfB0mKYNB9yf[p[(LM">
                                                      <field name="TEXT">common.name</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OBJECT">
                                                    <block type="procedures_callcustomreturn" id="mBvJ_WhP|}o*z}@Nf9Gx">
                                                      <mutation name="GetObjectByID">
                                                        <arg name="id"></arg>
                                                      </mutation>
                                                      <value name="ARG0">
                                                        <block type="variables_get" id="D:=8pGehBP5ZOKH2LV2?">
                                                          <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="text" id="2WmqZ^-K89eQ9Z!T.Sg!">
                                                  <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=red&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="update" id="|*Wyl;F2(g0J1J^:!x68">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.VIS.Akkumeldungen.hmip_akku_tabelle</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text_join" id="CF52S*}*)[vTA|Y~w+@1">
                                      <mutation items="5"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="yxd%qU_@2Bv39AdiqwQ*">
                                          <field name="TEXT">&lt;table style="width: 100%;"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width=100%&gt;&lt;b&gt;&lt;font size="3"&gt;Gerät&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;td ALIGN="CENTER"&gt;&lt;b&gt;&lt;font size="3"&gt;Batteriestatus&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;/tr&gt;</field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="text" id="`hArP:}QO5fa:5w(*q*y">
                                          <field name="TEXT">&lt;tr&gt; &lt;td colspan="2"&gt; &lt;hr&gt; &lt;/dt&gt; &lt;/tr&gt;</field>
                                        </block>
                                      </value>
                                      <value name="ADD2">
                                        <block type="variables_get" id="!NM$6J~B9mGR:#`~#8V_">
                                          <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                        </block>
                                      </value>
                                      <value name="ADD3">
                                        <block type="variables_get" id="JwXRwyMGnb)]ut6eTQc-">
                                          <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                        </block>
                                      </value>
                                      <value name="ADD4">
                                        <block type="text" id="#E/@/Eiu!x|i4nvHP^wR">
                                          <field name="TEXT">&lt;/tbody&gt; &lt;/table&gt;</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                <block type="procedures_defcustomreturn" id="z1v5P%=uhnATnl`x*fMU" x="1287" y="462">
                  <mutation statements="false">
                    <arg name="id" varid="q=Q/4S_nykMJv,R-%5SK"></arg>
                  </mutation>
                  <field name="NAME">GetObjectByID</field>
                  <field name="SCRIPT">cmV0dXJuIGdldE9iamVjdChpZCk7</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                </block>
              </xml>
              

              Zeigt eure Lovelace-Visualisierung klick
              (Auch ideal um sich Anregungen zu holen)

              Meine Tabellen für eure Visualisierung klick

              A D 2 Antworten Letzte Antwort
              1
              • David G.D David G.

                @Ahnungsbefreit
                @dos1973

                Danke für eure Inspiration.
                Ich habe mir anhand eurer Diskussion ein Skript bauen können, welches mir eine schöne HTML-Tabelle erstellt.
                Mit dieser lasse ich mir zeigen, ob meine HomematicIP-Geäte den Akku schwach haben (zum Testen steht es grade noch auf dem Schaltzustand, damit ich unterschiedliche Werte habe.).

                Lässt sich natürlich für jegliche Abfrage mit true und false missbrauchen.

                Unbenannt.JPG

                Screenshot_20210105-082125_Fully Kiosk Browser.jpg

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="q=Q/4S_nykMJv,R-%5SK">id</variable>
                    <variable id="SKh+R[G%ptX]9uv^hB,!">wahr</variable>
                    <variable id=";O,|I4cqK/q|U6dt.?NN">falsch</variable>
                    <variable id="%62`(Q[9y{,UvP3o}T|/">i</variable>
                    <variable id="GI^dumJfw0)4Nzi2HVw`">ParentID</variable>
                  </variables>
                  <block type="schedule" id="=M?}+$74/A|+fu)hob?*" x="1188" y="463">
                    <field name="SCHEDULE">* * * * *</field>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="dZ;P0S=A~Ue9U{sxWFjF">
                        <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                        <value name="VALUE">
                          <block type="text" id="1Rdn%LJ,UsyiTo}^fQyi">
                            <field name="TEXT"></field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="JoJ{Z)?hFmCa3B.z1B~;">
                            <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                            <value name="VALUE">
                              <block type="text" id="I)B703c6WPKo}@_L8ai^">
                                <field name="TEXT"></field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_forEach" id="VXic[*WK}rqr0-!U:EFy">
                                <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                <value name="LIST">
                                  <block type="selector" id="vI2MD73D2c=a4z1nh`=`">
                                    <field name="TEXT">hm-rpc.0.*.1.STATE</field>
                                  </block>
                                </value>
                                <statement name="DO">
                                  <block type="variables_set" id="5%|F-TdcQ{4t*4:+v!]w">
                                    <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                    <value name="VALUE">
                                      <block type="text_getSubstring" id="`QFsslqwXJcDRwUQ_z;$" inline="false">
                                        <mutation at1="true" at2="true"></mutation>
                                        <field name="WHERE1">FROM_START</field>
                                        <field name="WHERE2">FROM_START</field>
                                        <value name="STRING">
                                          <block type="variables_get" id="2K5mqiyK-@A,u?+%_r-I">
                                            <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                          </block>
                                        </value>
                                        <value name="AT1">
                                          <block type="math_number" id="_q*GktBrg4YS~$oc@#.$">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                        <value name="AT2">
                                          <block type="math_arithmetic" id="BHxb,^*vvK^,t3OWIp~N" inline="false">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <shadow type="math_number" id="V4^8g/Fq~(QA(Gn,=_g9">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="text_indexOf" id=";@~lMPhmFt@}zblOq8}z" inline="false">
                                                <field name="END">LAST</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="ZxgO1Qq@jpN)?*](o;s%">
                                                    <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                                  </block>
                                                </value>
                                                <value name="FIND">
                                                  <shadow type="text" id="xWkYFdwM0dR_rBOFM|zY">
                                                    <field name="TEXT">.1.STATE</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="h-25vZ[WT=N4?QJ3saG%">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="[t4#.[R7stu?S`@$u3BW">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="get_value_var" id="Iq+@rH{{dyJ9HWgoI~T4">
                                            <field name="ATTR">val</field>
                                            <value name="OID">
                                              <shadow type="text">
                                                <field name="TEXT"></field>
                                              </shadow>
                                              <block type="variables_get" id="B)n%:}PX%zZGvt#JtbR(">
                                                <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="sh;fX7NWP+]`^FcnbVjU">
                                            <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                            <value name="VALUE">
                                              <block type="text_join" id="|Xz[CQA5p*BCe{uu*,ir">
                                                <mutation items="5"></mutation>
                                                <value name="ADD0">
                                                  <block type="variables_get" id="F4J0jDpn[Na[1p8Ruf=%">
                                                    <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="text" id="C+UnHlb%GLN.|tA3o,`C">
                                                    <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="get_attr" id="=z[7ycSqfif0h~4Sz*|=" inline="false">
                                                    <value name="PATH">
                                                      <shadow type="text" id="C*^0Xt3cP0zy%F4#veYO">
                                                        <field name="TEXT">common.name</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="OBJECT">
                                                      <block type="procedures_callcustomreturn" id=",{*p|W,%6Npy^h.,(XSP">
                                                        <mutation name="GetObjectByID">
                                                          <arg name="id"></arg>
                                                        </mutation>
                                                        <value name="ARG0">
                                                          <block type="variables_get" id="dgPrr_H^_1Z}0!cS+Iw{">
                                                            <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="ADD3">
                                                  <block type="text" id="yNUk#G;)wLb1Xq!/%A[M">
                                                    <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=green&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="variables_set" id="S+Gd]Tap?Ej$]1P.V.(_">
                                            <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                            <value name="VALUE">
                                              <block type="text_join" id="5?soV=/V!gT:YP;%=C7*">
                                                <mutation items="4"></mutation>
                                                <value name="ADD0">
                                                  <block type="variables_get" id="t5Hgf|mSwoVqQ}(:~9Y7">
                                                    <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="text" id="xa}qmEJ|8{^pBcPkIB|C">
                                                    <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="get_attr" id="N%K=-ar/nF2t;vp68{4;" inline="false">
                                                    <value name="PATH">
                                                      <shadow type="text" id="NEKfB0mKYNB9yf[p[(LM">
                                                        <field name="TEXT">common.name</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="OBJECT">
                                                      <block type="procedures_callcustomreturn" id="mBvJ_WhP|}o*z}@Nf9Gx">
                                                        <mutation name="GetObjectByID">
                                                          <arg name="id"></arg>
                                                        </mutation>
                                                        <value name="ARG0">
                                                          <block type="variables_get" id="D:=8pGehBP5ZOKH2LV2?">
                                                            <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="ADD3">
                                                  <block type="text" id="2WmqZ^-K89eQ9Z!T.Sg!">
                                                    <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=red&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="update" id="|*Wyl;F2(g0J1J^:!x68">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.VIS.Akkumeldungen.hmip_akku_tabelle</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="CF52S*}*)[vTA|Y~w+@1">
                                        <mutation items="5"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="yxd%qU_@2Bv39AdiqwQ*">
                                            <field name="TEXT">&lt;table style="width: 100%;"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width=100%&gt;&lt;b&gt;&lt;font size="3"&gt;Gerät&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;td ALIGN="CENTER"&gt;&lt;b&gt;&lt;font size="3"&gt;Batteriestatus&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;/tr&gt;</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text" id="`hArP:}QO5fa:5w(*q*y">
                                            <field name="TEXT">&lt;tr&gt; &lt;td colspan="2"&gt; &lt;hr&gt; &lt;/dt&gt; &lt;/tr&gt;</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="variables_get" id="!NM$6J~B9mGR:#`~#8V_">
                                            <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="variables_get" id="JwXRwyMGnb)]ut6eTQc-">
                                            <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="text" id="#E/@/Eiu!x|i4nvHP^wR">
                                            <field name="TEXT">&lt;/tbody&gt; &lt;/table&gt;</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                  <block type="procedures_defcustomreturn" id="z1v5P%=uhnATnl`x*fMU" x="1287" y="462">
                    <mutation statements="false">
                      <arg name="id" varid="q=Q/4S_nykMJv,R-%5SK"></arg>
                    </mutation>
                    <field name="NAME">GetObjectByID</field>
                    <field name="SCRIPT">cmV0dXJuIGdldE9iamVjdChpZCk7</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  </block>
                </xml>
                
                A Offline
                A Offline
                Ahnungsbefreit
                schrieb am zuletzt editiert von
                #69

                @David-G Freut mich, wenn ich helfen konnte.

                Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                1 Antwort Letzte Antwort
                0
                • David G.D David G.

                  @Ahnungsbefreit
                  @dos1973

                  Danke für eure Inspiration.
                  Ich habe mir anhand eurer Diskussion ein Skript bauen können, welches mir eine schöne HTML-Tabelle erstellt.
                  Mit dieser lasse ich mir zeigen, ob meine HomematicIP-Geäte den Akku schwach haben (zum Testen steht es grade noch auf dem Schaltzustand, damit ich unterschiedliche Werte habe.).

                  Lässt sich natürlich für jegliche Abfrage mit true und false missbrauchen.

                  Unbenannt.JPG

                  Screenshot_20210105-082125_Fully Kiosk Browser.jpg

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="q=Q/4S_nykMJv,R-%5SK">id</variable>
                      <variable id="SKh+R[G%ptX]9uv^hB,!">wahr</variable>
                      <variable id=";O,|I4cqK/q|U6dt.?NN">falsch</variable>
                      <variable id="%62`(Q[9y{,UvP3o}T|/">i</variable>
                      <variable id="GI^dumJfw0)4Nzi2HVw`">ParentID</variable>
                    </variables>
                    <block type="schedule" id="=M?}+$74/A|+fu)hob?*" x="1188" y="463">
                      <field name="SCHEDULE">* * * * *</field>
                      <statement name="STATEMENT">
                        <block type="variables_set" id="dZ;P0S=A~Ue9U{sxWFjF">
                          <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                          <value name="VALUE">
                            <block type="text" id="1Rdn%LJ,UsyiTo}^fQyi">
                              <field name="TEXT"></field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="JoJ{Z)?hFmCa3B.z1B~;">
                              <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                              <value name="VALUE">
                                <block type="text" id="I)B703c6WPKo}@_L8ai^">
                                  <field name="TEXT"></field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_forEach" id="VXic[*WK}rqr0-!U:EFy">
                                  <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                  <value name="LIST">
                                    <block type="selector" id="vI2MD73D2c=a4z1nh`=`">
                                      <field name="TEXT">hm-rpc.0.*.1.STATE</field>
                                    </block>
                                  </value>
                                  <statement name="DO">
                                    <block type="variables_set" id="5%|F-TdcQ{4t*4:+v!]w">
                                      <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                      <value name="VALUE">
                                        <block type="text_getSubstring" id="`QFsslqwXJcDRwUQ_z;$" inline="false">
                                          <mutation at1="true" at2="true"></mutation>
                                          <field name="WHERE1">FROM_START</field>
                                          <field name="WHERE2">FROM_START</field>
                                          <value name="STRING">
                                            <block type="variables_get" id="2K5mqiyK-@A,u?+%_r-I">
                                              <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                            </block>
                                          </value>
                                          <value name="AT1">
                                            <block type="math_number" id="_q*GktBrg4YS~$oc@#.$">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <value name="AT2">
                                            <block type="math_arithmetic" id="BHxb,^*vvK^,t3OWIp~N" inline="false">
                                              <field name="OP">MINUS</field>
                                              <value name="A">
                                                <shadow type="math_number" id="V4^8g/Fq~(QA(Gn,=_g9">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="text_indexOf" id=";@~lMPhmFt@}zblOq8}z" inline="false">
                                                  <field name="END">LAST</field>
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="ZxgO1Qq@jpN)?*](o;s%">
                                                      <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                                    </block>
                                                  </value>
                                                  <value name="FIND">
                                                    <shadow type="text" id="xWkYFdwM0dR_rBOFM|zY">
                                                      <field name="TEXT">.1.STATE</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="h-25vZ[WT=N4?QJ3saG%">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="[t4#.[R7stu?S`@$u3BW">
                                          <mutation else="1"></mutation>
                                          <value name="IF0">
                                            <block type="get_value_var" id="Iq+@rH{{dyJ9HWgoI~T4">
                                              <field name="ATTR">val</field>
                                              <value name="OID">
                                                <shadow type="text">
                                                  <field name="TEXT"></field>
                                                </shadow>
                                                <block type="variables_get" id="B)n%:}PX%zZGvt#JtbR(">
                                                  <field name="VAR" id="%62`(Q[9y{,UvP3o}T|/">i</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="sh;fX7NWP+]`^FcnbVjU">
                                              <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="|Xz[CQA5p*BCe{uu*,ir">
                                                  <mutation items="5"></mutation>
                                                  <value name="ADD0">
                                                    <block type="variables_get" id="F4J0jDpn[Na[1p8Ruf=%">
                                                      <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="text" id="C+UnHlb%GLN.|tA3o,`C">
                                                      <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="get_attr" id="=z[7ycSqfif0h~4Sz*|=" inline="false">
                                                      <value name="PATH">
                                                        <shadow type="text" id="C*^0Xt3cP0zy%F4#veYO">
                                                          <field name="TEXT">common.name</field>
                                                        </shadow>
                                                      </value>
                                                      <value name="OBJECT">
                                                        <block type="procedures_callcustomreturn" id=",{*p|W,%6Npy^h.,(XSP">
                                                          <mutation name="GetObjectByID">
                                                            <arg name="id"></arg>
                                                          </mutation>
                                                          <value name="ARG0">
                                                            <block type="variables_get" id="dgPrr_H^_1Z}0!cS+Iw{">
                                                              <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="text" id="yNUk#G;)wLb1Xq!/%A[M">
                                                      <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=green&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <statement name="ELSE">
                                            <block type="variables_set" id="S+Gd]Tap?Ej$]1P.V.(_">
                                              <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="5?soV=/V!gT:YP;%=C7*">
                                                  <mutation items="4"></mutation>
                                                  <value name="ADD0">
                                                    <block type="variables_get" id="t5Hgf|mSwoVqQ}(:~9Y7">
                                                      <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="text" id="xa}qmEJ|8{^pBcPkIB|C">
                                                      <field name="TEXT">&lt;tr&gt;&lt;td&gt;</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="get_attr" id="N%K=-ar/nF2t;vp68{4;" inline="false">
                                                      <value name="PATH">
                                                        <shadow type="text" id="NEKfB0mKYNB9yf[p[(LM">
                                                          <field name="TEXT">common.name</field>
                                                        </shadow>
                                                      </value>
                                                      <value name="OBJECT">
                                                        <block type="procedures_callcustomreturn" id="mBvJ_WhP|}o*z}@Nf9Gx">
                                                          <mutation name="GetObjectByID">
                                                            <arg name="id"></arg>
                                                          </mutation>
                                                          <value name="ARG0">
                                                            <block type="variables_get" id="D:=8pGehBP5ZOKH2LV2?">
                                                              <field name="VAR" id="GI^dumJfw0)4Nzi2HVw`">ParentID</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="text" id="2WmqZ^-K89eQ9Z!T.Sg!">
                                                      <field name="TEXT">&lt;/td&gt; &lt;td ALIGN="CENTER"&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;font color=red&gt;●&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt;</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="update" id="|*Wyl;F2(g0J1J^:!x68">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.VIS.Akkumeldungen.hmip_akku_tabelle</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text_join" id="CF52S*}*)[vTA|Y~w+@1">
                                          <mutation items="5"></mutation>
                                          <value name="ADD0">
                                            <block type="text" id="yxd%qU_@2Bv39AdiqwQ*">
                                              <field name="TEXT">&lt;table style="width: 100%;"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width=100%&gt;&lt;b&gt;&lt;font size="3"&gt;Gerät&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;td ALIGN="CENTER"&gt;&lt;b&gt;&lt;font size="3"&gt;Batteriestatus&lt;/b&gt;&lt;/td&gt;&lt;/font&gt; &lt;/tr&gt;</field>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="text" id="`hArP:}QO5fa:5w(*q*y">
                                              <field name="TEXT">&lt;tr&gt; &lt;td colspan="2"&gt; &lt;hr&gt; &lt;/dt&gt; &lt;/tr&gt;</field>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="variables_get" id="!NM$6J~B9mGR:#`~#8V_">
                                              <field name="VAR" id=";O,|I4cqK/q|U6dt.?NN">falsch</field>
                                            </block>
                                          </value>
                                          <value name="ADD3">
                                            <block type="variables_get" id="JwXRwyMGnb)]ut6eTQc-">
                                              <field name="VAR" id="SKh+R[G%ptX]9uv^hB,!">wahr</field>
                                            </block>
                                          </value>
                                          <value name="ADD4">
                                            <block type="text" id="#E/@/Eiu!x|i4nvHP^wR">
                                              <field name="TEXT">&lt;/tbody&gt; &lt;/table&gt;</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                    <block type="procedures_defcustomreturn" id="z1v5P%=uhnATnl`x*fMU" x="1287" y="462">
                      <mutation statements="false">
                        <arg name="id" varid="q=Q/4S_nykMJv,R-%5SK"></arg>
                      </mutation>
                      <field name="NAME">GetObjectByID</field>
                      <field name="SCRIPT">cmV0dXJuIGdldE9iamVjdChpZCk7</field>
                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    </block>
                  </xml>
                  
                  D Offline
                  D Offline
                  dos1973
                  schrieb am zuletzt editiert von
                  #70

                  @David-G @Ahnungsbefreit

                  oh mann wieso könnt ihr das so gut.
                  kopieren kann ich gut ;-) hab das von David gleich aufgenommen.

                  Bildschirmfoto 2021-01-05 um 11.00.54.png

                  Toll wäre es, diese Tabelle jetzt zu erweitern, IP, FW tec. aber bei mir reicht es nicht, dafür sind meine Kenntnisse nicht ausreichend ...

                  A David G.D 2 Antworten Letzte Antwort
                  0
                  • D dos1973

                    @David-G @Ahnungsbefreit

                    oh mann wieso könnt ihr das so gut.
                    kopieren kann ich gut ;-) hab das von David gleich aufgenommen.

                    Bildschirmfoto 2021-01-05 um 11.00.54.png

                    Toll wäre es, diese Tabelle jetzt zu erweitern, IP, FW tec. aber bei mir reicht es nicht, dafür sind meine Kenntnisse nicht ausreichend ...

                    A Offline
                    A Offline
                    Ahnungsbefreit
                    schrieb am zuletzt editiert von
                    #71

                    @dos1973 Wie oben erwähnt, bitte noch als "[Gelöst]" im Titel markieren!

                    Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                    1 Antwort Letzte Antwort
                    0
                    • D dos1973

                      @David-G @Ahnungsbefreit

                      oh mann wieso könnt ihr das so gut.
                      kopieren kann ich gut ;-) hab das von David gleich aufgenommen.

                      Bildschirmfoto 2021-01-05 um 11.00.54.png

                      Toll wäre es, diese Tabelle jetzt zu erweitern, IP, FW tec. aber bei mir reicht es nicht, dafür sind meine Kenntnisse nicht ausreichend ...

                      David G.D Online
                      David G.D Online
                      David G.
                      schrieb am zuletzt editiert von
                      #72

                      @dos1973

                      Da kann ich dir leider auch nicht weiterhelfen.
                      Hab ja nur die Dinge von weiter oben genommen und noch was HTML beigefügt.

                      Das hatte ich vor 15 Jahren mal in der Schule :-D
                      Wenn man das, was man von da noch im Kopf hat, mit einem Online-HTML-Tabellengenerator vereint bekommt man es gerade noch so hin^^.

                      Zeigt eure Lovelace-Visualisierung klick
                      (Auch ideal um sich Anregungen zu holen)

                      Meine Tabellen für eure Visualisierung klick

                      1 Antwort Letzte Antwort
                      0
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      758

                      Online

                      32.5k

                      Benutzer

                      81.6k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe