<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bitte um Kurzcheck Blockly und Datentypen]]></title><description><![CDATA[<p dir="auto">Hi<br />
ich habe ein Blockly um auf Helligkeit basierend Rolladen zu schließen.<br />
Die Helligkeit wird mir per MQTT (String) in IOBroker übermittelt. Ich hatte dort mit "Wert von Objekt ID" gearbeitet um den String in eine Number zu konvertieren. Dies geht wohl mit Admin 5 und JS3.3 nicht mehr.<br />
Deswegen habe ich nun einen Alias angelegt (type: number) und prüfe diesen im Blockly gegen die Eingabe Strings/values vom VIS.</p>
<p dir="auto">Ist dies so korrekt gelöst?</p>
<pre><code>&lt;xml xmlns="https://developers.google.com/blockly/xml"&gt;
  &lt;block type="on" id="qx}[y=CfL_j+sAQTW;.L" x="-187" y="-262"&gt;
    &lt;field name="OID"&gt;mqtt.0.HeizKellerTank2.Lux.Helligkeit&lt;/field&gt;
    &lt;field name="CONDITION"&gt;ne&lt;/field&gt;
    &lt;field name="ACK_CONDITION"&gt;&lt;/field&gt;
    &lt;statement name="STATEMENT"&gt;
      &lt;block type="controls_if" id="4g1=r#,3O9FcGD!f-iMW"&gt;
        &lt;value name="IF0"&gt;
          &lt;block type="time_compare_ex" id="*i9xu-g(k]NQUAifGVtf"&gt;
            &lt;mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"&gt;&lt;/mutation&gt;
            &lt;field name="USE_ACTUAL_TIME"&gt;TRUE&lt;/field&gt;
            &lt;field name="OPTION"&gt;between&lt;/field&gt;
            &lt;value name="START_TIME"&gt;
              &lt;shadow type="text"&gt;
                &lt;field name="TEXT"&gt;12:00&lt;/field&gt;
              &lt;/shadow&gt;
              &lt;block type="time_astro" id="|GVA2fmugCA@{*!MyayN"&gt;
                &lt;field name="TYPE"&gt;sunset&lt;/field&gt;
                &lt;field name="OFFSET"&gt;-45&lt;/field&gt;
              &lt;/block&gt;
            &lt;/value&gt;
            &lt;value name="END_TIME"&gt;
              &lt;shadow type="text"&gt;
                &lt;field name="TEXT"&gt;18:00&lt;/field&gt;
              &lt;/shadow&gt;
              &lt;block type="time_astro" id="hUSu:npx`+HVcvJlpADV"&gt;
                &lt;field name="TYPE"&gt;sunset&lt;/field&gt;
                &lt;field name="OFFSET"&gt;45&lt;/field&gt;
              &lt;/block&gt;
            &lt;/value&gt;
          &lt;/block&gt;
        &lt;/value&gt;
        &lt;statement name="DO0"&gt;
          &lt;block type="comment" id="Ly0v.9^[?YE{z]bBKCc^"&gt;
            &lt;field name="COMMENT"&gt;Rollade Küche Lux Schließen&lt;/field&gt;
            &lt;next&gt;
              &lt;block type="controls_if" id="aVeRm0uQ.G3`_DkDBzuL"&gt;
                &lt;value name="IF0"&gt;
                  &lt;block type="logic_operation" id="i3UJ{C(EJ{s-qjt#T#L9" inline="false"&gt;
                    &lt;field name="OP"&gt;AND&lt;/field&gt;
                    &lt;value name="A"&gt;
                      &lt;block type="logic_compare" id="7iCz}?N7N|h|OL]8ajMC"&gt;
                        &lt;field name="OP"&gt;EQ&lt;/field&gt;
                        &lt;value name="A"&gt;
                          &lt;block type="get_value" id="vJCPWjrh0,k3vb)kIE!n"&gt;
                            &lt;field name="ATTR"&gt;val&lt;/field&gt;
                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerKuecheSchließen&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                        &lt;value name="B"&gt;
                          &lt;block type="logic_boolean" id="4a0Ot_}]t+}=_x@+V~5k"&gt;
                            &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                    &lt;value name="B"&gt;
                      &lt;block type="logic_compare" id="qm+1R4kR?5[iW$x:mbW="&gt;
                        &lt;field name="OP"&gt;LTE&lt;/field&gt;
                        &lt;value name="A"&gt;
                          &lt;block type="field_oid" id="5A/:al[=+67^8=TF.w*B"&gt;
                            &lt;field name="oid"&gt;alias.0.HeizKellerTank2/Lux/Helligkeit.Helligkeit&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                        &lt;value name="B"&gt;
                          &lt;block type="get_value" id="e*=D)p%KKL~HHKo0N(hA"&gt;
                            &lt;field name="ATTR"&gt;val&lt;/field&gt;
                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.KuecheLuxSchließen&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                  &lt;/block&gt;
                &lt;/value&gt;
                &lt;statement name="DO0"&gt;
                  &lt;block type="control" id="]+(~y}77yOG(2aa4r]3o"&gt;
                    &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                    &lt;field name="OID"&gt;shelly.0.SHSW-25#73F734#1.Shutter.Position&lt;/field&gt;
                    &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                    &lt;value name="VALUE"&gt;
                      &lt;block type="math_number" id="Ya~tog^H+M,gSn,xnqte"&gt;
                        &lt;field name="NUM"&gt;0&lt;/field&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                    &lt;next&gt;
                      &lt;block type="request" id="^X7Hys0ek/k;gB);G~`f"&gt;
                        &lt;mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"&gt;&lt;/mutation&gt;
                        &lt;field name="WITH_STATEMENT"&gt;FALSE&lt;/field&gt;
                        &lt;field name="LOG"&gt;log&lt;/field&gt;
                        &lt;value name="URL"&gt;
                          &lt;shadow type="text" id="Q|/1O4yZa7[8G}:94`${"&gt;
                            &lt;field name="TEXT"&gt;http://192.168.7.163/light/0?turn=on&amp;amp;brightness=60&amp;amp;white=25&lt;/field&gt;
                          &lt;/shadow&gt;
                        &lt;/value&gt;
                        &lt;next&gt;
                          &lt;block type="control" id="nG=%:VW{RB7.v1kmsWh("&gt;
                            &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerKuecheSchließen&lt;/field&gt;
                            &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                            &lt;value name="VALUE"&gt;
                              &lt;block type="logic_boolean" id="(PK_E@3ft}x.^*)qj2CC"&gt;
                                &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                            &lt;next&gt;
                              &lt;block type="debug" id="YL+a!o^uUcac10zzE.a)"&gt;
                                &lt;field name="Severity"&gt;log&lt;/field&gt;
                                &lt;value name="TEXT"&gt;
                                  &lt;shadow type="text" id="q4b;;}fcaxcQDtKuae^k"&gt;
                                    &lt;field name="TEXT"&gt;Dunkel: Rollade Küche schließen&lt;/field&gt;
                                  &lt;/shadow&gt;
                                &lt;/value&gt;
                              &lt;/block&gt;
                            &lt;/next&gt;
                          &lt;/block&gt;
                        &lt;/next&gt;
                      &lt;/block&gt;
                    &lt;/next&gt;
                  &lt;/block&gt;
                &lt;/statement&gt;
                &lt;next&gt;
                  &lt;block type="comment" id="KH*g1=wsqiDel-[7WOY/"&gt;
                    &lt;field name="COMMENT"&gt;Rollade Arbeitszimmer Lux Schließen&lt;/field&gt;
                    &lt;next&gt;
                      &lt;block type="controls_if" id="jnZj})L=@(?jAlB*k/rr"&gt;
                        &lt;value name="IF0"&gt;
                          &lt;block type="logic_operation" id="TflMkg+^;6!xX6*y6N2z" inline="false"&gt;
                            &lt;field name="OP"&gt;AND&lt;/field&gt;
                            &lt;value name="A"&gt;
                              &lt;block type="logic_compare" id="ypCddC!]CsQbi:9s~#qw"&gt;
                                &lt;field name="OP"&gt;EQ&lt;/field&gt;
                                &lt;value name="A"&gt;
                                  &lt;block type="get_value" id="!:q%:B}k$/xzJ(LLO%CQ"&gt;
                                    &lt;field name="ATTR"&gt;val&lt;/field&gt;
                                    &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerArbeitszimmerSchließen&lt;/field&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                                &lt;value name="B"&gt;
                                  &lt;block type="logic_boolean" id="YfJ:-/7wrZ8*[!Yxaj@{"&gt;
                                    &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                            &lt;value name="B"&gt;
                              &lt;block type="logic_compare" id="]{$6xh*u-8e3g|(8%7rp"&gt;
                                &lt;field name="OP"&gt;LTE&lt;/field&gt;
                                &lt;value name="A"&gt;
                                  &lt;block type="field_oid" id="bO5-|nscovSS;I)~cH_b"&gt;
                                    &lt;field name="oid"&gt;alias.0.HeizKellerTank2/Lux/Helligkeit.Helligkeit&lt;/field&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                                &lt;value name="B"&gt;
                                  &lt;block type="get_value" id="o%m;BzpLOi2PEn^PN33n"&gt;
                                    &lt;field name="ATTR"&gt;val&lt;/field&gt;
                                    &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.ArbeitszimmerLuxSchließen&lt;/field&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                        &lt;statement name="DO0"&gt;
                          &lt;block type="control" id="*G:Nub)o_2p{|~rZJy_+"&gt;
                            &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                            &lt;field name="OID"&gt;shelly.0.SHSW-25#745D08#1.Shutter.Position&lt;/field&gt;
                            &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                            &lt;value name="VALUE"&gt;
                              &lt;block type="math_number" id="9|D#~V0b1xm6PO}j?Y]v"&gt;
                                &lt;field name="NUM"&gt;0&lt;/field&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                            &lt;next&gt;
                              &lt;block type="control" id="qC]$L2@ez5p6qqpflHrL"&gt;
                                &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                                &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerArbeitszimmerSchließen&lt;/field&gt;
                                &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                                &lt;value name="VALUE"&gt;
                                  &lt;block type="logic_boolean" id="U@/Khiy[o:jKTw50yc?K"&gt;
                                    &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                                &lt;next&gt;
                                  &lt;block type="debug" id="WSJ[VMKw!.;sup5Nizvd"&gt;
                                    &lt;field name="Severity"&gt;log&lt;/field&gt;
                                    &lt;value name="TEXT"&gt;
                                      &lt;shadow type="text" id="D~cBP%w1V=wZ:qTJ-#G6"&gt;
                                        &lt;field name="TEXT"&gt;Dunkel: Rollade Arbeitszimmer schließen&lt;/field&gt;
                                      &lt;/shadow&gt;
                                    &lt;/value&gt;
                                  &lt;/block&gt;
                                &lt;/next&gt;
                              &lt;/block&gt;
                            &lt;/next&gt;
                          &lt;/block&gt;
                        &lt;/statement&gt;
                        &lt;next&gt;
                          &lt;block type="comment" id="{(]D%uLRbSw^xKDKRUy["&gt;
                            &lt;field name="COMMENT"&gt;Rollade Esszzimmer Lux Schließen&lt;/field&gt;
                            &lt;next&gt;
                              &lt;block type="controls_if" id="GGkF!WPAAnsE)V]O_wzI"&gt;
                                &lt;value name="IF0"&gt;
                                  &lt;block type="logic_operation" id="_,Ip3;`ca4!7h@~$=H5G" inline="false"&gt;
                                    &lt;field name="OP"&gt;AND&lt;/field&gt;
                                    &lt;value name="A"&gt;
                                      &lt;block type="logic_compare" id="y--2eFSTVI=e~`^6Hvq5"&gt;
                                        &lt;field name="OP"&gt;EQ&lt;/field&gt;
                                        &lt;value name="A"&gt;
                                          &lt;block type="get_value" id="_Ez[zA#iJWaSn*Su@El5"&gt;
                                            &lt;field name="ATTR"&gt;val&lt;/field&gt;
                                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerEsszimmerSchließen&lt;/field&gt;
                                          &lt;/block&gt;
                                        &lt;/value&gt;
                                        &lt;value name="B"&gt;
                                          &lt;block type="logic_boolean" id="e*6y6U8_nc3}P?r6v)+G"&gt;
                                            &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                                          &lt;/block&gt;
                                        &lt;/value&gt;
                                      &lt;/block&gt;
                                    &lt;/value&gt;
                                    &lt;value name="B"&gt;
                                      &lt;block type="logic_compare" id="Wh;weC9FAiAF];p-kQ+8"&gt;
                                        &lt;field name="OP"&gt;LTE&lt;/field&gt;
                                        &lt;value name="A"&gt;
                                          &lt;block type="field_oid" id="*$QIpsYkgrGEKv0/f6ax"&gt;
                                            &lt;field name="oid"&gt;alias.0.HeizKellerTank2/Lux/Helligkeit.Helligkeit&lt;/field&gt;
                                          &lt;/block&gt;
                                        &lt;/value&gt;
                                        &lt;value name="B"&gt;
                                          &lt;block type="get_value" id="`#x_YW4rJLWYHg^*CngH"&gt;
                                            &lt;field name="ATTR"&gt;val&lt;/field&gt;
                                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.EsszimmerLuxSchließen&lt;/field&gt;
                                          &lt;/block&gt;
                                        &lt;/value&gt;
                                      &lt;/block&gt;
                                    &lt;/value&gt;
                                  &lt;/block&gt;
                                &lt;/value&gt;
                                &lt;statement name="DO0"&gt;
                                  &lt;block type="control" id="BF}/9`Dle-7Po7mDv#U4"&gt;
                                    &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                                    &lt;field name="OID"&gt;shelly.0.SHSW-25#740A41#1.Shutter.Position&lt;/field&gt;
                                    &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                                    &lt;value name="VALUE"&gt;
                                      &lt;block type="math_number" id="k4i4wS@yD3Rpm@l#QhH]"&gt;
                                        &lt;field name="NUM"&gt;0&lt;/field&gt;
                                      &lt;/block&gt;
                                    &lt;/value&gt;
                                    &lt;next&gt;
                                      &lt;block type="control" id="E^{+N!^#Y1GPk]TBcTd)"&gt;
                                        &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                                        &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerEsszimmerSchließen&lt;/field&gt;
                                        &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                                        &lt;value name="VALUE"&gt;
                                          &lt;block type="logic_boolean" id="@r0_p02#]o2}Lvrwofp9"&gt;
                                            &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                                          &lt;/block&gt;
                                        &lt;/value&gt;
                                        &lt;next&gt;
                                          &lt;block type="debug" id="C6*Qd)i/FM1+x!IKCZV}"&gt;
                                            &lt;field name="Severity"&gt;log&lt;/field&gt;
                                            &lt;value name="TEXT"&gt;
                                              &lt;shadow type="text" id="oU_?,.I0Fh0a4F*XcHE%"&gt;
                                                &lt;field name="TEXT"&gt;Dunkel: Rollade Esszimmer schließen&lt;/field&gt;
                                              &lt;/shadow&gt;
                                            &lt;/value&gt;
                                          &lt;/block&gt;
                                        &lt;/next&gt;
                                      &lt;/block&gt;
                                    &lt;/next&gt;
                                  &lt;/block&gt;
                                &lt;/statement&gt;
                              &lt;/block&gt;
                            &lt;/next&gt;
                          &lt;/block&gt;
                        &lt;/next&gt;
                      &lt;/block&gt;
                    &lt;/next&gt;
                  &lt;/block&gt;
                &lt;/next&gt;
              &lt;/block&gt;
            &lt;/next&gt;
          &lt;/block&gt;
        &lt;/statement&gt;
      &lt;/block&gt;
    &lt;/statement&gt;
  &lt;/block&gt;
  &lt;block type="comment" id="0)ReTvOhNc0fU2$U;hOK" x="-163" y="887"&gt;
    &lt;field name="COMMENT"&gt;Merker Schließen zurücksetzen&lt;/field&gt;
    &lt;next&gt;
      &lt;block type="schedule" id="-ok}bCi_A5Q]=uTR1pm6"&gt;
        &lt;field name="SCHEDULE"&gt;*/5 * * * *&lt;/field&gt;
        &lt;statement name="STATEMENT"&gt;
          &lt;block type="controls_if" id="8g^B+6bA6#R@5*Y*?S=M"&gt;
            &lt;value name="IF0"&gt;
              &lt;block type="logic_operation" id="/:Vp[.`Pm-4?PPs~*7V;" inline="false"&gt;
                &lt;field name="OP"&gt;AND&lt;/field&gt;
                &lt;value name="A"&gt;
                  &lt;block type="time_compare_ex" id="0,+z+c@v)Mb40jc]rFJm"&gt;
                    &lt;mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"&gt;&lt;/mutation&gt;
                    &lt;field name="USE_ACTUAL_TIME"&gt;TRUE&lt;/field&gt;
                    &lt;field name="OPTION"&gt;&amp;lt;&lt;/field&gt;
                    &lt;value name="START_TIME"&gt;
                      &lt;shadow type="text" id="/=BI}QH|!c|:g0uFXCpp"&gt;
                        &lt;field name="TEXT"&gt;12:00&lt;/field&gt;
                      &lt;/shadow&gt;
                    &lt;/value&gt;
                  &lt;/block&gt;
                &lt;/value&gt;
                &lt;value name="B"&gt;
                  &lt;block type="time_compare_ex" id="ZQVz`=bXSwNRKG3lgluk"&gt;
                    &lt;mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"&gt;&lt;/mutation&gt;
                    &lt;field name="USE_ACTUAL_TIME"&gt;TRUE&lt;/field&gt;
                    &lt;field name="OPTION"&gt;&amp;lt;&lt;/field&gt;
                    &lt;value name="START_TIME"&gt;
                      &lt;shadow type="text" id="z-Ulw~-!X:33^CxjF1f."&gt;
                        &lt;field name="TEXT"&gt;15:00&lt;/field&gt;
                      &lt;/shadow&gt;
                    &lt;/value&gt;
                  &lt;/block&gt;
                &lt;/value&gt;
              &lt;/block&gt;
            &lt;/value&gt;
            &lt;statement name="DO0"&gt;
              &lt;block type="controls_if" id="F[kfxhv?K3Z~R~6rsdr9"&gt;
                &lt;value name="IF0"&gt;
                  &lt;block type="logic_compare" id="2=.by4:`_y4P!o=By`3Q"&gt;
                    &lt;field name="OP"&gt;EQ&lt;/field&gt;
                    &lt;value name="A"&gt;
                      &lt;block type="logic_boolean" id="}w(R,0}#,}Wyl8O]:Wv1"&gt;
                        &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                    &lt;value name="B"&gt;
                      &lt;block type="get_value" id="HdIb36*g-AgbSO?b~T6K"&gt;
                        &lt;field name="ATTR"&gt;val&lt;/field&gt;
                        &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerArbeitszimmerSchließen&lt;/field&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                  &lt;/block&gt;
                &lt;/value&gt;
                &lt;statement name="DO0"&gt;
                  &lt;block type="control" id="W4c-oz?8jgFRpN/.q1=N"&gt;
                    &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                    &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerArbeitszimmerSchließen&lt;/field&gt;
                    &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                    &lt;value name="VALUE"&gt;
                      &lt;block type="logic_boolean" id="g5^qC=_9cwT9XKCcRqNq"&gt;
                        &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                  &lt;/block&gt;
                &lt;/statement&gt;
                &lt;next&gt;
                  &lt;block type="controls_if" id="k+/}v(NHS7*`C)`|vmI;"&gt;
                    &lt;value name="IF0"&gt;
                      &lt;block type="logic_compare" id="WM=*?gX[7PXjwIYppJ?E"&gt;
                        &lt;field name="OP"&gt;EQ&lt;/field&gt;
                        &lt;value name="A"&gt;
                          &lt;block type="logic_boolean" id="4lK~YxOrkC~@-~S+a%8-"&gt;
                            &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                        &lt;value name="B"&gt;
                          &lt;block type="get_value" id="nVf=48m~M=MK=WAbhC2Y"&gt;
                            &lt;field name="ATTR"&gt;val&lt;/field&gt;
                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerKuecheSchließen&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                      &lt;/block&gt;
                    &lt;/value&gt;
                    &lt;statement name="DO0"&gt;
                      &lt;block type="control" id="2oH[@9~P|3f}mZB0bF9|"&gt;
                        &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                        &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerKuecheSchließen&lt;/field&gt;
                        &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                        &lt;value name="VALUE"&gt;
                          &lt;block type="logic_boolean" id="!GQ,I:1]Rx26[JVdG{D%"&gt;
                            &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                      &lt;/block&gt;
                    &lt;/statement&gt;
                    &lt;next&gt;
                      &lt;block type="controls_if" id="K_d:s8sUz!z0qBtl?Axs"&gt;
                        &lt;value name="IF0"&gt;
                          &lt;block type="logic_compare" id="0ypq[a4Bxv9C|yU)qDgm"&gt;
                            &lt;field name="OP"&gt;EQ&lt;/field&gt;
                            &lt;value name="A"&gt;
                              &lt;block type="logic_boolean" id="^8CrNU$Bu?4v#[i3!P8R"&gt;
                                &lt;field name="BOOL"&gt;TRUE&lt;/field&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                            &lt;value name="B"&gt;
                              &lt;block type="get_value" id="PWE7ohWJ,m.H]Vkx)OGj"&gt;
                                &lt;field name="ATTR"&gt;val&lt;/field&gt;
                                &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerEsszimmerSchließen&lt;/field&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                          &lt;/block&gt;
                        &lt;/value&gt;
                        &lt;statement name="DO0"&gt;
                          &lt;block type="control" id="5l]0#T~q:F2@Uw}Ipw)H"&gt;
                            &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
                            &lt;field name="OID"&gt;javascript.0.scriptEnabled.Rolladen.MerkerEsszimmerSchließen&lt;/field&gt;
                            &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
                            &lt;value name="VALUE"&gt;
                              &lt;block type="logic_boolean" id="=65VY:kS+F2n`[/Ai~e,"&gt;
                                &lt;field name="BOOL"&gt;FALSE&lt;/field&gt;
                              &lt;/block&gt;
                            &lt;/value&gt;
                          &lt;/block&gt;
                        &lt;/statement&gt;
                      &lt;/block&gt;
                    &lt;/next&gt;
                  &lt;/block&gt;
                &lt;/next&gt;
              &lt;/block&gt;
            &lt;/statement&gt;
          &lt;/block&gt;
        &lt;/statement&gt;
      &lt;/block&gt;
    &lt;/next&gt;
  &lt;/block&gt;
&lt;/xml&gt;
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1629300456662-ea7e211b-3a6c-42cd-a9e1-d86ba4369dbe-grafik.png" alt="ea7e211b-3a6c-42cd-a9e1-d86ba4369dbe-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Vielen Dank vorab!</p>
]]></description><link>https://forum.iobroker.net/topic/47144/bitte-um-kurzcheck-blockly-und-datentypen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 13:21:22 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/47144.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Aug 2021 15:23:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 19:41:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> said in <a href="/post/666400">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">@pete0815 sagte: Mqtt String 0 gewesen ist (Dunkel).</p>
<blockquote>
<p dir="auto">Ist das dann ein besonderer Fall für die Umwandlung (ggf Division durch 0 oder sowas) und läuft deswegen ins Log?</p>
</blockquote>
<p dir="auto">Wo machst Du eine Division? "0" ist nichts besonderes.</p>
</blockquote>
<p dir="auto">Bei dem DP handelt es sich um die Helligkeit in Lux. Da die Meldung nur im Log zwischen ca. 20:45h und 6:30h alle 20 Sekunden auftaucht war dies für mich ein Ansatz/Frage da die Helligkeit in der Zeit 0 Lux ist.<br />
Da aber nicht anwendbar, ok und verworfen.</p>
<blockquote>
<pre><code> "mqtt.0.HeizKellerTank2.Lux.Helligkeit" has to be type "number" but received type "string"
</code></pre>
<p dir="auto">Das ist ein Fehler im MQTT-Adapter, da der Datenpunkt den falschen Typ "number" hat. Dieser Fehler ist früher nicht aufgefallen, da nicht angemeckert.</p>
</blockquote>
<p dir="auto">Edit: Aah, habe es gefunden. Adapter gestopt, Datenpunkte gelöscht und Adapter gestartet. Die alten DPs waren "number". Die neuen sind "string".<br />
Das dürfte es gewesen sein :)</p>
]]></description><link>https://forum.iobroker.net/post/666405</link><guid isPermaLink="true">https://forum.iobroker.net/post/666405</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 19:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 19:28:43 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 sagte: Mqtt String 0 gewesen ist (Dunkel).</p>
<blockquote>
<p dir="auto">Ist das dann ein besonderer Fall für die Umwandlung (ggf Division durch 0 oder sowas) und läuft deswegen ins Log?</p>
</blockquote>
<p dir="auto">Wo machst Du eine Division? "0" ist nichts besonderes.</p>
<pre><code> "mqtt.0.HeizKellerTank2.Lux.Helligkeit" has to be type "number" but received type "string"
</code></pre>
<p dir="auto">Das ist ein Fehler im MQTT-Adapter, da der Datenpunkt den falschen Typ "number" hat. Dieser Fehler ist früher nicht aufgefallen, da nicht angemeckert.</p>
]]></description><link>https://forum.iobroker.net/post/666400</link><guid isPermaLink="true">https://forum.iobroker.net/post/666400</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 18 Aug 2021 19:28:43 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 19:19:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a></p>
<p dir="auto">Ich glaube, ich habe eine Idee woher die Log Einträge kommen. Die kamen nur zwischen 20:45h und 06:30h. Das dürfte grob eine Zeit sein, wo der Mqtt String 0 gewesen ist (Dunkel).</p>
<p dir="auto">Ist das dann ein besonderer Fall für die Umwandlung (ggf Division durch 0 oder sowas) und läuft deswegen ins Log?</p>
]]></description><link>https://forum.iobroker.net/post/666398</link><guid isPermaLink="true">https://forum.iobroker.net/post/666398</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 19:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 19:31:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a> sagte: wenn beide Strings in Zahlen gewandelt werden kann.</p>
<p dir="auto">Wenn beide Seiten eines Vergleichs Strings enthalten, erfolgt keine Typwandlung, sondern ein String-Vergleich wie Du ihn beschrieben hast.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a> sagte in <a href="/post/666385">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">ob diese implizierte Konvertierung tatsächlich bei Vergleichsoperationen stattfindet - oder nur wenn damit gerechnet wird.</p>
</blockquote>
<p dir="auto">Auch, wenn gerechnet wird, außer bei + (Addition): Wenn bei + nur an einer Stelle ein String vorkommt, erfolgt <strong>immer</strong> eine String-Verkettung. Beispiel: "4" + 1 + 2 = 4 + "1" + 2 = "412".</p>
]]></description><link>https://forum.iobroker.net/post/666394</link><guid isPermaLink="true">https://forum.iobroker.net/post/666394</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 18 Aug 2021 19:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 18:57:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a><br />
Danke, jetzt habe ich es wohl verstanden und die Helligkeit ist in der Zwischenzeit zur Dunkelheit geworden und die Rollos haben sich ohne Meldung im Log wie gewünscht geschlossen. Besten Dank!</p>
]]></description><link>https://forum.iobroker.net/post/666386</link><guid isPermaLink="true">https://forum.iobroker.net/post/666386</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 18:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 18:56:23 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 Na ja mein Beispiel mit den Zahlen war nicht ganz richtig und die implizite Typumwandlung in Zahlen findet halt statt, wenn die Strings beides in 2 Zahlen gewandelt werden kann. Ist jedoch eines der beiden Typen ein String und das andere eine Zahl, wird auch das andere ein String. (siehe Beispiel unten 52)</p>
<p dir="auto"><a href="https://www.w3schools.com/js/js_type_conversion.asp" rel="nofollow ugc">https://www.w3schools.com/js/js_type_conversion.asp</a></p>
<p dir="auto"><img src="/assets/uploads/files/1629312811961-9a3b8677-d20b-4ccb-a1f6-3a3f7d13e805-image.png" alt="9a3b8677-d20b-4ccb-a1f6-3a3f7d13e805-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Im Endeffekt hat <a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> natürlich mal wieder Recht, wenn beide Strings in Zahlen gewandelt werden kann. Allerdings weiß ich nicht, ob diese implizierte Konvertierung tatsächlich bei Vergleichsoperationen stattfindet - oder nur wenn damit gerechnet wird. ;) - Aber das kann <a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> sicher auch klären.</p>
]]></description><link>https://forum.iobroker.net/post/666385</link><guid isPermaLink="true">https://forum.iobroker.net/post/666385</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Wed, 18 Aug 2021 18:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 18:45:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> said in <a href="/post/666344">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">@pete0815 sagte: Das hat bis Admin5/JS3.3 funktioniert.</p>
<p dir="auto">Jetzt nicht mehr?</p>
</blockquote>
<p dir="auto">Nuja, die Schaltung funktioniert noch, aber der Log lief auf einmal bei mir voll. Ein paar Tage habe ich nichts bemerkt und heute hatte ich einen 16MB Log.</p>
<pre><code>2021-08-17 23:55:45.896 - info: mqtt.0 (843) State value to set for "mqtt.0.HeizKellerTank2.Lux.Helligkeit" has to be type "number" but received type "string" 
</code></pre>
<p dir="auto">Hieraus die Intention dies zu Verbessern und richtig umzusetzen.</p>
<blockquote>
<p dir="auto">@pete0815 sagte in <a href="/post/666332">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">Warum funktioniert das ohne Konvertierung wenn der MQTT DP immer vom Typ String ist</p>
</blockquote>
<p dir="auto">Wenn eine Seite eines Vergleichs eine Zahl enthält, macht Javascript eine implizite Typwandlung des Strings auf der anderen Seite in eine Zahl.</p>
</blockquote>
<p dir="auto">danke.Widerspricht sich das zur Auskunft von <a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a> ?<br />
Alleine kann ich Beides nachvollziehen, aber zusammen tue ich mich schwer.</p>
]]></description><link>https://forum.iobroker.net/post/666380</link><guid isPermaLink="true">https://forum.iobroker.net/post/666380</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 18:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:36:48 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 sagte: Das hat bis Admin5/JS3.3 funktioniert.</p>
<p dir="auto">Jetzt nicht mehr?</p>
<p dir="auto">@pete0815 sagte in <a href="/post/666332">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">Warum funktioniert das ohne Konvertierung wenn der MQTT DP immer vom Typ String ist</p>
</blockquote>
<p dir="auto">Wenn eine Seite eines Vergleichs eine Zahl enthält, macht Javascript eine implizite Typwandlung des Strings auf der anderen Seite in eine Zahl.</p>
]]></description><link>https://forum.iobroker.net/post/666344</link><guid isPermaLink="true">https://forum.iobroker.net/post/666344</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:34:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a> said in <a href="/post/666333">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">@pete0815 Weil Du grundsätzlich auch Strings vergleichen kannst - das nennt man dann sortieren:</p>
<p dir="auto">A ist kleiner als B. ;)</p>
<p dir="auto">und auch</p>
<p dir="auto">1 ist keiner als 2</p>
<p dir="auto">allerdings wird</p>
<p dir="auto">2 größer als 12 sein. ;)</p>
</blockquote>
<p dir="auto">Aaah ok. Vielen Dank! da wäre ich nie drauf gekommen :man-facepalming:</p>
]]></description><link>https://forum.iobroker.net/post/666340</link><guid isPermaLink="true">https://forum.iobroker.net/post/666340</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:34:40 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:30:00 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 Weil Du grundsätzlich auch Strings vergleichen kannst - das nennt man dann sortieren:</p>
<p dir="auto">A ist kleiner als B. ;)</p>
<p dir="auto">und auch</p>
<p dir="auto">1 ist keiner als 2</p>
<p dir="auto">allerdings wird</p>
<p dir="auto">2 größer als 12 sein. ;)</p>
]]></description><link>https://forum.iobroker.net/post/666333</link><guid isPermaLink="true">https://forum.iobroker.net/post/666333</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:26:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a></p>
<p dir="auto">Darf ich nochmal dumm zum Verständnis fragen. Hatte es vorher auf "Wert von" und dann direkt auf den Mqtt DP laufen:<br />
<img src="/assets/uploads/files/1629307530663-6553769c-a8e9-406a-8f00-01d9913c1a2d-grafik.png" alt="6553769c-a8e9-406a-8f00-01d9913c1a2d-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Das hat bis Admin5/JS3.3 funktioniert. Warum funktioniert das ohne Konvertierung wenn der MQTT DP immer vom Typ String ist. Der sollte doch dann keinen Wert haben oder?</p>
]]></description><link>https://forum.iobroker.net/post/666332</link><guid isPermaLink="true">https://forum.iobroker.net/post/666332</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:21:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ahnungsbefreit" aria-label="Profile: ahnungsbefreit">@<bdi>ahnungsbefreit</bdi></a> said in <a href="/post/666269">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">@pete0815 Nein, mit oder ohne Alias (und das sollte eigentlich den gleichen Datentyp haben wie die Quelle). Den Inhalt eines Datenpunkts bekommst Du nur mit "Wert von ..."</p>
<p dir="auto">Das hier</p>
<p dir="auto"><img src="/assets/uploads/files/1629300570647-54686f09-2668-465b-b746-3feced3dbcab-image.png" alt="54686f09-2668-465b-b746-3feced3dbcab-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">kann nicht funktionieren. Wenn es an den Datentypen hängt, dann kannst Du die ja auch in Blockly konvertieren.</p>
</blockquote>
<p dir="auto">Danke, nochmal gut und verständlich erklärt. Irgendwann muß ich das mal länger raffen.</p>
]]></description><link>https://forum.iobroker.net/post/666329</link><guid isPermaLink="true">https://forum.iobroker.net/post/666329</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 17:20:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> said in <a href="/post/666273">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">@pete0815 sagte in <a href="/post/666267">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">Ist dies so korrekt gelöst?</p>
</blockquote>
<p dir="auto">Nein, die Objekt-ID (Helligkeit) enthält nicht den Wert. Besser so:</p>
<p dir="auto"><img src="/assets/uploads/files/1629301943486-bild_2021-08-18_175223.png" alt="Bild_2021-08-18_175223.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wert:</p>
<p dir="auto"><img src="/assets/uploads/files/1629301094007-blockly_dp_props.jpg" alt="Blockly_DP_Props.JPG" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">ok, vielen Dank! Dann kann ich mir den Alias sparen? Sinn war ja den Mqtt DP vom Standardtyp string in number über einen Alias zu konvertieren. Da ich den Mqtt DP öfters verwende, wäre das dann nur 1mal konviert an Stelle von x-fach bei jeder Verwendung. Macht das Sinn?</p>
<blockquote>
<p dir="auto">Keine eigenen Datenpunkte unter "javascript.0.scriptEnabled" erstellen!</p>
</blockquote>
<p dir="auto">Oooh Oooh, da habe ich nahezu 99,9% der selbst erstellten DPs.</p>
<blockquote>
<p dir="auto">Ist der Alias vom Typ Zahl und der MQTT-Datenpunkt vom Typ Zeichenkette? Dann nimm den Alias auch zum Triggern.</p>
</blockquote>
<p dir="auto">Ja, habe ihn per Skript erstellt, dass Du hier im Forum zur Verfügung gestellt hast. Habe aber eben auch gesehen, dass es inzwischen einen Alias Manager gibt.</p>
]]></description><link>https://forum.iobroker.net/post/666326</link><guid isPermaLink="true">https://forum.iobroker.net/post/666326</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Aug 2021 17:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 16:26:06 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 sagte in <a href="/post/666267">Bitte um Kurzcheck Blockly und Datentypen</a>:</p>
<blockquote>
<p dir="auto">Ist dies so korrekt gelöst?</p>
</blockquote>
<p dir="auto">Nein, die Objekt-ID (Helligkeit) enthält nicht den Wert. Besser so:</p>
<p dir="auto"><img src="/assets/uploads/files/1629301943486-bild_2021-08-18_175223.png" alt="Bild_2021-08-18_175223.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wert:</p>
<p dir="auto"><img src="/assets/uploads/files/1629301094007-blockly_dp_props.jpg" alt="Blockly_DP_Props.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Keine eigenen Datenpunkte unter "javascript.0.scriptEnabled" erstellen!</p>
<p dir="auto">Ist der Alias vom Typ Zahl und der MQTT-Datenpunkt vom Typ Zeichenkette? Dann nimm den Alias auch zum Triggern.</p>
]]></description><link>https://forum.iobroker.net/post/666273</link><guid isPermaLink="true">https://forum.iobroker.net/post/666273</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 18 Aug 2021 16:26:06 GMT</pubDate></item><item><title><![CDATA[Reply to Bitte um Kurzcheck Blockly und Datentypen on Wed, 18 Aug 2021 15:32:33 GMT]]></title><description><![CDATA[<p dir="auto">@pete0815 Nein, mit oder ohne Alias (und das sollte eigentlich den gleichen Datentyp haben wie die Quelle). Den Inhalt eines Datenpunkts bekommst Du nur mit "Wert von ..."</p>
<p dir="auto">Das hier</p>
<p dir="auto"><img src="/assets/uploads/files/1629300570647-54686f09-2668-465b-b746-3feced3dbcab-image.png" alt="54686f09-2668-465b-b746-3feced3dbcab-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">kann nicht funktionieren. Wenn es an den Datentypen hängt, dann kannst Du die ja auch in Blockly konvertieren.</p>
]]></description><link>https://forum.iobroker.net/post/666269</link><guid isPermaLink="true">https://forum.iobroker.net/post/666269</guid><dc:creator><![CDATA[Ahnungsbefreit]]></dc:creator><pubDate>Wed, 18 Aug 2021 15:32:33 GMT</pubDate></item></channel></rss>