Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • 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. Was mache ich falsch

NEWS

  • Der neue Monatsrückblick für Mai und Juni 2026 ist online!
    BluefoxB
    Bluefox
    8
    1
    750

  • wichtiges UPDATE für controller 7.2.2 im stable
    HomoranH
    Homoran
    10
    1
    3.4k

  • Neues YouTube-Video: Visualisierung im Devices-Adapter
    BluefoxB
    Bluefox
    16
    1
    5.5k

Was mache ich falsch

Geplant Angeheftet Gesperrt Verschoben Blockly
3 Beiträge 3 Kommentatoren 363 Aufrufe 1 Beobachtet
  • Ä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.
  • Matze1976M Offline
    Matze1976M Offline
    Matze1976
    schrieb am zuletzt editiert von
    #1

    Also ich habe 6 Thermostate und möchte eine Textzeile aus diesen 6 verschiedenen Werten ausgeben, allerdings nimmt Blockly nur den ersten und setzt mir den überall im Text, es sind aber verschiedene, was mache ich falsch.

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="==Js{aiO%5{^?Qy6B*HB">Wonzimmertemperatur</variable>
        <variable type="" id="@:ZMx#zTmR=`I?[4zS(l">Kuechentemperatur</variable>
        <variable type="" id="w^B.:rEHXWiI+A0NG{K3">Schlafzimmertemperatur</variable>
        <variable type="" id="0e=`[RpmLw~4@a15Y:J%">Kinderzimmertemperatur</variable>
        <variable type="" id=",m8s*=hEZ~:06V-FZrpy">Badezimmertemperatur</variable>
        <variable type="" id="K5]i_:2-6FcbTRCv.Y^X">Flurtemperatur</variable>
      </variables>
      <block type="on_ext" id="4U7UxomLRok}9n}lW7So" x="568" y="-921">
        <mutation items="6"></mutation>
        <field name="CONDITION">any</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="G}%P,o(ztynPx,32y9F5">
            <field name="oid">fritzdect.0.Comet_119600031424.actualtemp</field>
          </shadow>
        </value>
        <value name="OID1">
          <shadow type="field_oid" id=":pzYzWjs{3hhE[t;%|p7">
            <field name="oid">fritzdect.0.Comet_119600032184.actualtemp</field>
          </shadow>
        </value>
        <value name="OID2">
          <shadow type="field_oid" id="z*JfG!=#0{PPLJLw8.VI">
            <field name="oid">fritzdect.0.Comet_119600030992.actualtemp</field>
          </shadow>
        </value>
        <value name="OID3">
          <shadow type="field_oid" id="fYmeI]?,?%5vmnH4m7wU">
            <field name="oid">fritzdect.0.Comet_109710493816.actualtemp</field>
          </shadow>
        </value>
        <value name="OID4">
          <shadow type="field_oid" id="vu,!RE`Jj?bIvc8*%$:]">
            <field name="oid">fritzdect.0.Comet_092950995544.actualtemp</field>
          </shadow>
        </value>
        <value name="OID5">
          <shadow type="field_oid" id="VD(:+YT{zkVzgy=(Po3_">
            <field name="oid">fritzdect.0.Comet_109710179872.actualtemp</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id=";-dRL#S#@3,4uv)n6q9g">
            <value name="IF0">
              <block type="get_value" id="P[Xyc(3b[!w+oN*m)/2;">
                <field name="ATTR">val</field>
                <field name="OID">fritzdect.0.Comet_119600031424.actualtemp</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="variables_set" id="k53Knn_T@YA9#`yNVrlt">
                <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                <value name="VALUE">
                  <block type="text_join" id="`w~Q58BebEz0{=:lV7UP">
                    <mutation items="3"></mutation>
                    <value name="ADD0">
                      <block type="text" id="4Rg6ExUmlk7cU?=i?4QK">
                        <field name="TEXT">Es sind </field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="on_source" id="ZGRQo-b#*$?wXilJ):w.">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="ADD2">
                      <block type="text" id="I(q=wyfsnz4O-9#sRY9D">
                        <field name="TEXT"> grad im Wohnzimmer, </field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="q4s_2A(Ns:o`W`+oIR9f">
                <value name="IF0">
                  <block type="get_value" id="(qgYBu[hoRVEC,At7*WV">
                    <field name="ATTR">val</field>
                    <field name="OID">fritzdect.0.Comet_119600032184.actualtemp</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="c2x]%J`Pu_cue3:zJ45q">
                    <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                    <value name="VALUE">
                      <block type="text_join" id="O[}S2goY+K5D;2v/@53B">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="on_source" id="2eZ@3WIq6o=a,:AkMHpY">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="text" id="co5~ytOop!sf#+@YK{bq">
                            <field name="TEXT"> grad in der Küche, </field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="#gi[@?sOt2.EXM;o#_SO">
                    <value name="IF0">
                      <block type="get_value" id="1Z(!?a?*XJv`x@)1h12H">
                        <field name="ATTR">val</field>
                        <field name="OID">fritzdect.0.Comet_119600030992.actualtemp</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="}|q!w7-S-n7kAiK0$pV-">
                        <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                        <value name="VALUE">
                          <block type="text_join" id="log[PY045D0T]IM=#)vP">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="on_source" id="[c;_uKR[pKwXPoX$%?2k">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="text" id=":qxtnVA1q##eSQaKq{vj">
                                <field name="TEXT"> grad im Schlafzimmer, </field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="/4g`!!~:=Lv{}I_^=8:o">
                        <value name="IF0">
                          <block type="get_value" id="=^|Nun44R^M)ECMhK}{S">
                            <field name="ATTR">val</field>
                            <field name="OID">fritzdect.0.Comet_109710493816.actualtemp</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="}MqGI_!+XC0H9GdfItf`">
                            <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                            <value name="VALUE">
                              <block type="text_join" id="9Px|ted`0c6[Ay$|_SuJ">
                                <mutation items="2"></mutation>
                                <value name="ADD0">
                                  <block type="on_source" id="~b4w^hTs+1OiJb4Z]n4c">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="text" id="/{v:N%7%inLH(t|ENEv6">
                                    <field name="TEXT"> grad im Kinderzimmer, </field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="LuQdVq8V/[TtGp8ZxcXL">
                            <value name="IF0">
                              <block type="get_value" id="E`tewS|IYdlJw8p0qW1z">
                                <field name="ATTR">val</field>
                                <field name="OID">fritzdect.0.Comet_092950995544.actualtemp</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="+Q=FYZeIKj[WQtn#qSQk">
                                <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                <value name="VALUE">
                                  <block type="text_join" id="._Oidy_+=6v7s;sRvu::">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="on_source" id="~dVVwD2I`,FSk}1TZ+6x">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="text" id="6j?9_K+DBx`B)oJu1KLK">
                                        <field name="TEXT"> grad im Badezimmer, </field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="mVQ1ffZ#^P,yIiNf*u$s">
                                <value name="IF0">
                                  <block type="get_value" id=";T3K!BKuSD7QLH#5Nx[)">
                                    <field name="ATTR">val</field>
                                    <field name="OID">fritzdect.0.Comet_109710179872.actualtemp</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="9%8Nq+=7WQ^2uM/zVj2a">
                                    <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="d1LZ~L7~kJnvA}/1^;.A">
                                        <mutation items="3"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="E_09b9%jLrq%y4?]Fw}a">
                                            <field name="TEXT">und </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="on_source" id=";J|+KYq7mNE}wWC,:^aI">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="h:dNO,0Aj(,1q=`-VQ:t">
                                            <field name="TEXT"> grad im Flur </field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="control" id="6F5wJx[5:Wd}:5kj{[R?">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.Wohnungstemperatur</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="Kdz0_=6fDoG(5Xx+bD9D">
                                        <mutation items="8"></mutation>
                                        <value name="ADD0">
                                          <block type="variables_get" id="`Mef7!-;bX@83Be$}dLM">
                                            <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="variables_get" id="CZzB6ne,@|5.!GfIU6i$">
                                            <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="variables_get" id="JEYo?f#$PqXt*[=f0wL8">
                                            <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="variables_get" id="bZ[6*+Jan.T$R{$?PY_u">
                                            <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="variables_get" id="87N?hq#?bg$^9MN6?,bJ">
                                            <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="variables_get" id="-;iE5N=j2ykKaVTI/vCg">
                                            <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    
    BBTownB paul53P 2 Antworten Letzte Antwort
    0
    • Matze1976M Matze1976

      Also ich habe 6 Thermostate und möchte eine Textzeile aus diesen 6 verschiedenen Werten ausgeben, allerdings nimmt Blockly nur den ersten und setzt mir den überall im Text, es sind aber verschiedene, was mache ich falsch.

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="==Js{aiO%5{^?Qy6B*HB">Wonzimmertemperatur</variable>
          <variable type="" id="@:ZMx#zTmR=`I?[4zS(l">Kuechentemperatur</variable>
          <variable type="" id="w^B.:rEHXWiI+A0NG{K3">Schlafzimmertemperatur</variable>
          <variable type="" id="0e=`[RpmLw~4@a15Y:J%">Kinderzimmertemperatur</variable>
          <variable type="" id=",m8s*=hEZ~:06V-FZrpy">Badezimmertemperatur</variable>
          <variable type="" id="K5]i_:2-6FcbTRCv.Y^X">Flurtemperatur</variable>
        </variables>
        <block type="on_ext" id="4U7UxomLRok}9n}lW7So" x="568" y="-921">
          <mutation items="6"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="G}%P,o(ztynPx,32y9F5">
              <field name="oid">fritzdect.0.Comet_119600031424.actualtemp</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id=":pzYzWjs{3hhE[t;%|p7">
              <field name="oid">fritzdect.0.Comet_119600032184.actualtemp</field>
            </shadow>
          </value>
          <value name="OID2">
            <shadow type="field_oid" id="z*JfG!=#0{PPLJLw8.VI">
              <field name="oid">fritzdect.0.Comet_119600030992.actualtemp</field>
            </shadow>
          </value>
          <value name="OID3">
            <shadow type="field_oid" id="fYmeI]?,?%5vmnH4m7wU">
              <field name="oid">fritzdect.0.Comet_109710493816.actualtemp</field>
            </shadow>
          </value>
          <value name="OID4">
            <shadow type="field_oid" id="vu,!RE`Jj?bIvc8*%$:]">
              <field name="oid">fritzdect.0.Comet_092950995544.actualtemp</field>
            </shadow>
          </value>
          <value name="OID5">
            <shadow type="field_oid" id="VD(:+YT{zkVzgy=(Po3_">
              <field name="oid">fritzdect.0.Comet_109710179872.actualtemp</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id=";-dRL#S#@3,4uv)n6q9g">
              <value name="IF0">
                <block type="get_value" id="P[Xyc(3b[!w+oN*m)/2;">
                  <field name="ATTR">val</field>
                  <field name="OID">fritzdect.0.Comet_119600031424.actualtemp</field>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="k53Knn_T@YA9#`yNVrlt">
                  <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                  <value name="VALUE">
                    <block type="text_join" id="`w~Q58BebEz0{=:lV7UP">
                      <mutation items="3"></mutation>
                      <value name="ADD0">
                        <block type="text" id="4Rg6ExUmlk7cU?=i?4QK">
                          <field name="TEXT">Es sind </field>
                        </block>
                      </value>
                      <value name="ADD1">
                        <block type="on_source" id="ZGRQo-b#*$?wXilJ):w.">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="ADD2">
                        <block type="text" id="I(q=wyfsnz4O-9#sRY9D">
                          <field name="TEXT"> grad im Wohnzimmer, </field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="q4s_2A(Ns:o`W`+oIR9f">
                  <value name="IF0">
                    <block type="get_value" id="(qgYBu[hoRVEC,At7*WV">
                      <field name="ATTR">val</field>
                      <field name="OID">fritzdect.0.Comet_119600032184.actualtemp</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="c2x]%J`Pu_cue3:zJ45q">
                      <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                      <value name="VALUE">
                        <block type="text_join" id="O[}S2goY+K5D;2v/@53B">
                          <mutation items="2"></mutation>
                          <value name="ADD0">
                            <block type="on_source" id="2eZ@3WIq6o=a,:AkMHpY">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="text" id="co5~ytOop!sf#+@YK{bq">
                              <field name="TEXT"> grad in der Küche, </field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="#gi[@?sOt2.EXM;o#_SO">
                      <value name="IF0">
                        <block type="get_value" id="1Z(!?a?*XJv`x@)1h12H">
                          <field name="ATTR">val</field>
                          <field name="OID">fritzdect.0.Comet_119600030992.actualtemp</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="}|q!w7-S-n7kAiK0$pV-">
                          <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                          <value name="VALUE">
                            <block type="text_join" id="log[PY045D0T]IM=#)vP">
                              <mutation items="2"></mutation>
                              <value name="ADD0">
                                <block type="on_source" id="[c;_uKR[pKwXPoX$%?2k">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="text" id=":qxtnVA1q##eSQaKq{vj">
                                  <field name="TEXT"> grad im Schlafzimmer, </field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="/4g`!!~:=Lv{}I_^=8:o">
                          <value name="IF0">
                            <block type="get_value" id="=^|Nun44R^M)ECMhK}{S">
                              <field name="ATTR">val</field>
                              <field name="OID">fritzdect.0.Comet_109710493816.actualtemp</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="}MqGI_!+XC0H9GdfItf`">
                              <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                              <value name="VALUE">
                                <block type="text_join" id="9Px|ted`0c6[Ay$|_SuJ">
                                  <mutation items="2"></mutation>
                                  <value name="ADD0">
                                    <block type="on_source" id="~b4w^hTs+1OiJb4Z]n4c">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="text" id="/{v:N%7%inLH(t|ENEv6">
                                      <field name="TEXT"> grad im Kinderzimmer, </field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="LuQdVq8V/[TtGp8ZxcXL">
                              <value name="IF0">
                                <block type="get_value" id="E`tewS|IYdlJw8p0qW1z">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.Comet_092950995544.actualtemp</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="+Q=FYZeIKj[WQtn#qSQk">
                                  <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                  <value name="VALUE">
                                    <block type="text_join" id="._Oidy_+=6v7s;sRvu::">
                                      <mutation items="2"></mutation>
                                      <value name="ADD0">
                                        <block type="on_source" id="~dVVwD2I`,FSk}1TZ+6x">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="text" id="6j?9_K+DBx`B)oJu1KLK">
                                          <field name="TEXT"> grad im Badezimmer, </field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="mVQ1ffZ#^P,yIiNf*u$s">
                                  <value name="IF0">
                                    <block type="get_value" id=";T3K!BKuSD7QLH#5Nx[)">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.Comet_109710179872.actualtemp</field>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="9%8Nq+=7WQ^2uM/zVj2a">
                                      <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                      <value name="VALUE">
                                        <block type="text_join" id="d1LZ~L7~kJnvA}/1^;.A">
                                          <mutation items="3"></mutation>
                                          <value name="ADD0">
                                            <block type="text" id="E_09b9%jLrq%y4?]Fw}a">
                                              <field name="TEXT">und </field>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="on_source" id=";J|+KYq7mNE}wWC,:^aI">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="text" id="h:dNO,0Aj(,1q=`-VQ:t">
                                              <field name="TEXT"> grad im Flur </field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="control" id="6F5wJx[5:Wd}:5kj{[R?">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Wohnungstemperatur</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text_join" id="Kdz0_=6fDoG(5Xx+bD9D">
                                          <mutation items="8"></mutation>
                                          <value name="ADD0">
                                            <block type="variables_get" id="`Mef7!-;bX@83Be$}dLM">
                                              <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="variables_get" id="CZzB6ne,@|5.!GfIU6i$">
                                              <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="variables_get" id="JEYo?f#$PqXt*[=f0wL8">
                                              <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                                            </block>
                                          </value>
                                          <value name="ADD3">
                                            <block type="variables_get" id="bZ[6*+Jan.T$R{$?PY_u">
                                              <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                                            </block>
                                          </value>
                                          <value name="ADD4">
                                            <block type="variables_get" id="87N?hq#?bg$^9MN6?,bJ">
                                              <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                            </block>
                                          </value>
                                          <value name="ADD5">
                                            <block type="variables_get" id="-;iE5N=j2ykKaVTI/vCg">
                                              <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      BBTownB Offline
      BBTownB Offline
      BBTown
      schrieb am zuletzt editiert von
      #2

      @Matze1976
      Bei Blockly-Scripten solltest Du immer zusätzlich einen ScreenShot des Blockly mit anfügen, dann kann man das besser nachvollziehen

      ioBroker auf NUC (VM debian v13 (Trixie ), node v22.22.2 npm v10.9.4, js-controller v7.1.1 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

      1 Antwort Letzte Antwort
      0
      • Matze1976M Matze1976

        Also ich habe 6 Thermostate und möchte eine Textzeile aus diesen 6 verschiedenen Werten ausgeben, allerdings nimmt Blockly nur den ersten und setzt mir den überall im Text, es sind aber verschiedene, was mache ich falsch.

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id="==Js{aiO%5{^?Qy6B*HB">Wonzimmertemperatur</variable>
            <variable type="" id="@:ZMx#zTmR=`I?[4zS(l">Kuechentemperatur</variable>
            <variable type="" id="w^B.:rEHXWiI+A0NG{K3">Schlafzimmertemperatur</variable>
            <variable type="" id="0e=`[RpmLw~4@a15Y:J%">Kinderzimmertemperatur</variable>
            <variable type="" id=",m8s*=hEZ~:06V-FZrpy">Badezimmertemperatur</variable>
            <variable type="" id="K5]i_:2-6FcbTRCv.Y^X">Flurtemperatur</variable>
          </variables>
          <block type="on_ext" id="4U7UxomLRok}9n}lW7So" x="568" y="-921">
            <mutation items="6"></mutation>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="G}%P,o(ztynPx,32y9F5">
                <field name="oid">fritzdect.0.Comet_119600031424.actualtemp</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id=":pzYzWjs{3hhE[t;%|p7">
                <field name="oid">fritzdect.0.Comet_119600032184.actualtemp</field>
              </shadow>
            </value>
            <value name="OID2">
              <shadow type="field_oid" id="z*JfG!=#0{PPLJLw8.VI">
                <field name="oid">fritzdect.0.Comet_119600030992.actualtemp</field>
              </shadow>
            </value>
            <value name="OID3">
              <shadow type="field_oid" id="fYmeI]?,?%5vmnH4m7wU">
                <field name="oid">fritzdect.0.Comet_109710493816.actualtemp</field>
              </shadow>
            </value>
            <value name="OID4">
              <shadow type="field_oid" id="vu,!RE`Jj?bIvc8*%$:]">
                <field name="oid">fritzdect.0.Comet_092950995544.actualtemp</field>
              </shadow>
            </value>
            <value name="OID5">
              <shadow type="field_oid" id="VD(:+YT{zkVzgy=(Po3_">
                <field name="oid">fritzdect.0.Comet_109710179872.actualtemp</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id=";-dRL#S#@3,4uv)n6q9g">
                <value name="IF0">
                  <block type="get_value" id="P[Xyc(3b[!w+oN*m)/2;">
                    <field name="ATTR">val</field>
                    <field name="OID">fritzdect.0.Comet_119600031424.actualtemp</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="k53Knn_T@YA9#`yNVrlt">
                    <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                    <value name="VALUE">
                      <block type="text_join" id="`w~Q58BebEz0{=:lV7UP">
                        <mutation items="3"></mutation>
                        <value name="ADD0">
                          <block type="text" id="4Rg6ExUmlk7cU?=i?4QK">
                            <field name="TEXT">Es sind </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="on_source" id="ZGRQo-b#*$?wXilJ):w.">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="I(q=wyfsnz4O-9#sRY9D">
                            <field name="TEXT"> grad im Wohnzimmer, </field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="q4s_2A(Ns:o`W`+oIR9f">
                    <value name="IF0">
                      <block type="get_value" id="(qgYBu[hoRVEC,At7*WV">
                        <field name="ATTR">val</field>
                        <field name="OID">fritzdect.0.Comet_119600032184.actualtemp</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="c2x]%J`Pu_cue3:zJ45q">
                        <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                        <value name="VALUE">
                          <block type="text_join" id="O[}S2goY+K5D;2v/@53B">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="on_source" id="2eZ@3WIq6o=a,:AkMHpY">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="text" id="co5~ytOop!sf#+@YK{bq">
                                <field name="TEXT"> grad in der Küche, </field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="#gi[@?sOt2.EXM;o#_SO">
                        <value name="IF0">
                          <block type="get_value" id="1Z(!?a?*XJv`x@)1h12H">
                            <field name="ATTR">val</field>
                            <field name="OID">fritzdect.0.Comet_119600030992.actualtemp</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="}|q!w7-S-n7kAiK0$pV-">
                            <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                            <value name="VALUE">
                              <block type="text_join" id="log[PY045D0T]IM=#)vP">
                                <mutation items="2"></mutation>
                                <value name="ADD0">
                                  <block type="on_source" id="[c;_uKR[pKwXPoX$%?2k">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="text" id=":qxtnVA1q##eSQaKq{vj">
                                    <field name="TEXT"> grad im Schlafzimmer, </field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="/4g`!!~:=Lv{}I_^=8:o">
                            <value name="IF0">
                              <block type="get_value" id="=^|Nun44R^M)ECMhK}{S">
                                <field name="ATTR">val</field>
                                <field name="OID">fritzdect.0.Comet_109710493816.actualtemp</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="}MqGI_!+XC0H9GdfItf`">
                                <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                                <value name="VALUE">
                                  <block type="text_join" id="9Px|ted`0c6[Ay$|_SuJ">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="on_source" id="~b4w^hTs+1OiJb4Z]n4c">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="text" id="/{v:N%7%inLH(t|ENEv6">
                                        <field name="TEXT"> grad im Kinderzimmer, </field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="LuQdVq8V/[TtGp8ZxcXL">
                                <value name="IF0">
                                  <block type="get_value" id="E`tewS|IYdlJw8p0qW1z">
                                    <field name="ATTR">val</field>
                                    <field name="OID">fritzdect.0.Comet_092950995544.actualtemp</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="+Q=FYZeIKj[WQtn#qSQk">
                                    <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="._Oidy_+=6v7s;sRvu::">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="on_source" id="~dVVwD2I`,FSk}1TZ+6x">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text" id="6j?9_K+DBx`B)oJu1KLK">
                                            <field name="TEXT"> grad im Badezimmer, </field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="mVQ1ffZ#^P,yIiNf*u$s">
                                    <value name="IF0">
                                      <block type="get_value" id=";T3K!BKuSD7QLH#5Nx[)">
                                        <field name="ATTR">val</field>
                                        <field name="OID">fritzdect.0.Comet_109710179872.actualtemp</field>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="9%8Nq+=7WQ^2uM/zVj2a">
                                        <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                        <value name="VALUE">
                                          <block type="text_join" id="d1LZ~L7~kJnvA}/1^;.A">
                                            <mutation items="3"></mutation>
                                            <value name="ADD0">
                                              <block type="text" id="E_09b9%jLrq%y4?]Fw}a">
                                                <field name="TEXT">und </field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="on_source" id=";J|+KYq7mNE}wWC,:^aI">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="text" id="h:dNO,0Aj(,1q=`-VQ:t">
                                                <field name="TEXT"> grad im Flur </field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="control" id="6F5wJx[5:Wd}:5kj{[R?">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Wohnungstemperatur</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="text_join" id="Kdz0_=6fDoG(5Xx+bD9D">
                                            <mutation items="8"></mutation>
                                            <value name="ADD0">
                                              <block type="variables_get" id="`Mef7!-;bX@83Be$}dLM">
                                                <field name="VAR" id="==Js{aiO%5{^?Qy6B*HB" variabletype="">Wonzimmertemperatur</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="variables_get" id="CZzB6ne,@|5.!GfIU6i$">
                                                <field name="VAR" id="@:ZMx#zTmR=`I?[4zS(l" variabletype="">Kuechentemperatur</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="variables_get" id="JEYo?f#$PqXt*[=f0wL8">
                                                <field name="VAR" id="w^B.:rEHXWiI+A0NG{K3" variabletype="">Schlafzimmertemperatur</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="variables_get" id="bZ[6*+Jan.T$R{$?PY_u">
                                                <field name="VAR" id="0e=`[RpmLw~4@a15Y:J%" variabletype="">Kinderzimmertemperatur</field>
                                              </block>
                                            </value>
                                            <value name="ADD4">
                                              <block type="variables_get" id="87N?hq#?bg$^9MN6?,bJ">
                                                <field name="VAR" id=",m8s*=hEZ~:06V-FZrpy" variabletype="">Badezimmertemperatur</field>
                                              </block>
                                            </value>
                                            <value name="ADD5">
                                              <block type="variables_get" id="-;iE5N=j2ykKaVTI/vCg">
                                                <field name="VAR" id="K5]i_:2-6FcbTRCv.Y^X" variabletype="">Flurtemperatur</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        
        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #3

        @Matze1976 sagte:

        was mache ich falsch.

        Nicht den Wert eines Datenpunktes prüfen, sondern die ID des Triggers vergleichen. Beispiel:

        Blockly_temp.JPG

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB; Proxmox mit 2 VM (iob / openCCU)

        1 Antwort Letzte Antwort
        0

        Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

        Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

        Mit deinem Input könnte dieser Beitrag noch besser werden 💗

        Registrieren Anmelden
        Antworten
        • In einem neuen Thema antworten
        Anmelden zum Antworten
        • Älteste zuerst
        • Neuste zuerst
        • Meiste Stimmen


        Support us

        ioBroker
        Community Adapters
        Donate

        435

        Online

        33.0k

        Benutzer

        83.5k

        Themen

        1.3m

        Beiträge
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
        ioBroker Community 2014-2026
        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