Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Smarter - Handtuchtrockner

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Smarter - Handtuchtrockner

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

      Hallo Leute!

      Ich möchte die Fritz Smart-Steckdose zusätzlich zur manuellen Betätigung per PV-Überschuss ansteuern.

      Die Fritz Dose kann, manuell geschalten automatisch nach 2h wieder abschalten.
      Ich möchte zusätzlich, wenn PV-Überschuss da ist und die Raumtemperatur niedrig ist, den Heizkörper ansteuern.

      Meine Frage an euch, passt da mein Blockly ? 🙂

      Bildschirmfoto 2022-12-14 um 12.55.42.png


      <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
      <variable id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
      <variable id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable> </variables> <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|" x="-238" y="90"> <field name="COMMENT">Hzg Bad</field> <next> <block type="on_ext" id="WmaDlVza-%|bE2PC4}$}"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="(K%m+UU(oymx/#ZG.8s3"> <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="!:6IVLh(.s7Zc7*X2PKe"> <value name="IF0"> <block type="logic_negate" id="K~rgK;sALe4{c~Ujl-i6"> <value name="BOOL"> <block type="variables_get" id="]y;likc+U,w(YnZm}|~">
      <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
      <mutation elseif="1"></mutation>
      <value name="IF0">
      <block type="logic_operation" id="DW7F}t8zu~$_G8Pa(3e" inline="false">
      <field name="OP">AND</field>
      <value name="A">
      <block type="logic_compare" id="n=Zb^9u~JGi|Z-2
      qlih">
      <field name="OP">LT</field>
      <value name="A">
      <block type="get_value" id="RO$ii/.eX+hbu0jJElK1">
      <field name="ATTR">val</field>
      <field name="OID">fritzdect.0.DECT_116300118701.celsius</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="n|%GCJ*$Tgl4!/hO)HO"> <field name="NUM">22</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="UUL3U=9eId#Q,LtbX:V2"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="bEu_M3Bq!oRspkoETC#f"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field> </block> </value> <value name="B"> <block type="math_number" id="Zc~cW;[({xEj*S-%?x4O"> <field name="NUM">1200</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Z(yvxp=,f=]BzOy3RJnr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">fritzdect.0.DECT_116300118701.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2+({_nx%:r6H=r[I,S$("> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="=XNnI:dF{iPZY{5-gz{%"> <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
      <value name="VALUE">
      <block type="logic_boolean" id="4s?8X2O{mv4dkx!lU;tL">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      <value name="IF1">
      <block type="logic_operation" id="CZulk@VkYS.P.v*bY^1R" inline="false">
      <field name="OP">AND</field>
      <value name="A">
      <block type="logic_compare" id="m![RY(f3FtDyAKVqo9Tx">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="*kPQc:gnP0$;XUky1kj)">
      <field name="ATTR">val</field>
      <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="OzBUgjtn~Ed/)o1mWRp"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="get_value" id="/|7rf5ix1B=jk]U7zh"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT_116300118701.state</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="eP7[z/)zQ@T,2a?:Lg6I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">fritzdect.0.DECT_116300118701.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=");DfVmVomO7|R~G8m;!u"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <next> <block type="on" id=",{!!mR4nS4Q$NTlsUW,$"> <field name="OID">fritzdect.0.DECT_116300118701.state</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="-BxVSGEfn}b7Ju@-,eep"> <value name="IF0"> <block type="logic_negate" id="8gfsgQ_[.HE*?Dj}KtS+"> <value name="BOOL"> <block type="variables_get" id="9vFK#z{rQXnRH_pyLsz">
      <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="tY.{vp+,c/t}#oMfS]%P"> <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="+^XozkhgT@Hd+7)pS97H"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on" id="A@7?oDAQ4ou#u!FL4Wo]"> <field name="OID">fritzdect.0.DECT_116300118701.state</field> <field name="CONDITION">false</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="X=d18E?zu0fn:~a^N5g]"> <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="x$~YvVoggOL:j%:-TCk">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      <next>
      <block type="variables_set" id="gR)1K=HLZ:9nGMvrBmi!">
      <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
      <value name="VALUE">
      <block type="logic_boolean" id="4u_b=$jq?u6pPc{R~LHL">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </xml>

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Humidor last edited by

        @humidor sagte: passt da mein Blockly ?

        Im Prinzip schon, aber

        • 2 Trigger auf den gleichen Datenpunkt verschwendet Ressourcen
        • Bei Änderung des PV-Überschuss oberhalb von 1200 W wird laufend an die Steckdose gesendet.
        Humidor 1 Reply Last reply Reply Quote 0
        • Humidor
          Humidor @paul53 last edited by

          @paul53 ok danke, und geändert:
          Bildschirmfoto 2022-12-14 um 13.30.46.png

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Humidor last edited by paul53

            @humidor sagte: geändert:

            Du solltest öfter Variablen verwenden: Wert (unter "Trigger") und nur einmal "steuere", da es eine sehr komplexe Funktion ist.

            Bild_2022-12-14_143533016.png

            Ist der PV-Überschuss immer positiv, denn Du prüfst auf = 0?

            Humidor 2 Replies Last reply Reply Quote 0
            • Humidor
              Humidor @paul53 last edited by

              @paul53 weiß nicht genau was du meinst, ja die Variable Überschuss geht dann auf 0


              <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
              <variable id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
              <variable id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable> </variables> <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|" x="-238" y="90"> <field name="COMMENT">Hzg Bad</field> <next> <block type="on_ext" id="WmaDlVza-%|bE2PC4}$}"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="(K%m+UU(oymx/#ZG.8s3"> <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="!:6IVLh(.s7Zc7*X2PKe"> <value name="IF0"> <block type="logic_negate" id="K~rgK;sALe4{c~Ujl-i6"> <value name="BOOL"> <block type="variables_get" id="]y;likc+U,w(YnZm}|~">
              <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
              <mutation elseif="1"></mutation>
              <value name="IF0">
              <block type="logic_operation" id="rf:ObtkmhtKVS)VP_4,," inline="false">
              <field name="OP">AND</field>
              <value name="A">
              <block type="logic_operation" id="DW7F}t8zu~$_G8Pa(3e" inline="false">
              <field name="OP">AND</field>
              <value name="A">
              <block type="logic_compare" id="n=Zb^9u~JGi|Z-2
              qlih">
              <field name="OP">LT</field>
              <value name="A">
              <block type="get_value" id="RO$ii/.eX+hbu0jJElK1">
              <field name="ATTR">val</field>
              <field name="OID">fritzdect.0.DECT_116300118701.celsius</field>
              </block>
              </value>
              <value name="B">
              <block type="math_number" id="n|%GCJ*$Tgl4!/hO)HO"> <field name="NUM">22</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="UUL3U=9eId#Q,LtbX:V2"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="bEu_M3Bq!oRspkoETC#f"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field> </block> </value> <value name="B"> <block type="math_number" id="Zc~cW;[({xEj*S-%?x4O"> <field name="NUM">1200</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="#wOy@POd~_)Cr41C.zxN"> <value name="BOOL"> <block type="get_value" id="KK{JE3@|BkciE$J.kqh">
              <field name="ATTR">val</field>
              <field name="OID">fritzdect.0.DECT_116300118701.state</field>
              </block>
              </value>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="Z(yvxp=,f=]BzOy3RJnr">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">fritzdect.0.DECT_116300118701.state</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="logic_boolean" id="2+({nx%:r6H=r[I,S$(">
              <field name="BOOL">TRUE</field>
              </block>
              </value>
              <next>
              <block type="variables_set" id="=XNnI:dF{iPZY{5-gz{%">
              <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="4s?8X2O{mv4dkx!lU;tL"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="CZulk@VkYS.P.v*bY^1R" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="m![RY(f3FtDyAKVqo9Tx"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="*kPQc:gnP0$;XUky1kj)"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field> </block> </value> <value name="B"> <block type="math_number" id="OzBUgjtn~Ed/)o1mWRp">
              <field name="NUM">0</field>
              </block>
              </value>
              </block>
              </value>
              <value name="B">
              <block type="get_value" id="/|7rf5ix1B=jk]U7zh">
              <field name="ATTR">val</field>
              <field name="OID">fritzdect.0.DECT_116300118701.state</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO1">
              <block type="control" id="eP7[z/)zQ@T,2a?:Lg6I">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">fritzdect.0.DECT_116300118701.state</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="logic_boolean" id=");DfVmVomO7|R~G8m;!u">
              <field name="BOOL">FALSE</field>
              </block>
              </value>
              </block>
              </statement>
              </block>
              </statement>
              </block>
              </statement>
              <next>
              <block type="on" id=",{!!mR4nS4Q$NTlsUW,$">
              <field name="OID">fritzdect.0.DECT_116300118701.state</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
              <block type="controls_if" id="plWmx0U+JD:-qOK9v0_p">
              <mutation else="1"></mutation>
              <value name="IF0">
              <block type="on_source" id="~yBgynYAtE{~NXHsVeuA">
              <field name="ATTR">state.val</field>
              </block>
              </value>
              <statement name="DO0">
              <block type="controls_if" id="-BxVSGEfn}b7Ju@-,eep">
              <value name="IF0">
              <block type="logic_negate" id="8gfsgQ
              [.HE*?Dj}KtS+">
              <value name="BOOL">
              <block type="variables_get" id="9vFK#z{rQXnRH_pyLsz"> <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="variables_set" id="tY.{vp+,c/t}#oMfS]%P">
              <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
              <value name="VALUE">
              <block type="logic_boolean" id="+^XozkhgT@Hd+7)pS97H">
              <field name="BOOL">TRUE</field>
              </block>
              </value>
              </block>
              </statement>
              </block>
              </statement>
              <statement name="ELSE">
              <block type="variables_set" id="X=d18E?zu0fn:~a^N5g]">
              <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
              <value name="VALUE">
              <block type="logic_boolean" id="x$~YvVoggOL:j%:-TCk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="gR)1K=HLZ:9nGMvrBmi!"> <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
              <value name="VALUE">
              <block type="logic_boolean" id="4u_b=$jq?u6pPc{R~LHL">
              <field name="BOOL">FALSE</field>
              </block>
              </value>
              </block>
              </next>
              </block>
              </statement>
              </block>
              </statement>
              </block>
              </next>
              </block>
              </next>
              </block>
              </xml>

              1 Reply Last reply Reply Quote 0
              • Humidor
                Humidor @paul53 last edited by

                @paul53 noch eine Info?

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Humidor last edited by paul53

                  @humidor sagte: noch eine Info?

                  Nein.
                  Zur Verwendung von Variablen habe ich bereits geschrieben.

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <variables>
                     <variable id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
                     <variable id="J[g|q0WcCQ$lG(S|TP`p">steckdose</variable>
                     <variable id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable>
                   </variables>
                   <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|" x="-238" y="90">
                     <field name="COMMENT">Hzg Bad</field>
                     <next>
                       <block type="on_ext" id="WmaDlVza-%|bE2PC4}$}">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="(K%m+UU(oymx/#ZG.8s3">
                             <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="!:6IVLh(.s7Zc7*X2PKe">
                             <value name="IF0">
                               <block type="logic_negate" id="K~rgK;sALe4{c~Ujl-i6">
                                 <value name="BOOL">
                                   <block type="variables_get" id="]y;likc+U,w(YnZm}|~">
                                     <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
                                 <mutation elseif="1"></mutation>
                                 <value name="IF0">
                                   <block type="logic_operation" id="DW7F}t8zu~$_G8Pa(3e" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="logic_compare" id="n=Zb^9u~JGi|Z-2qlih">
                                         <field name="OP">LT</field>
                                         <value name="A">
                                           <block type="get_value" id="RO$ii/.eX+hbu0jJElK1">
                                             <field name="ATTR">val</field>
                                             <field name="OID">fritzdect.0.DECT_116300118701.celsius</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="n|%GCJ*$Tgl4!/hO)HO">
                                             <field name="NUM">22</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="UUL3U=9eId#Q,LtbX:V2">
                                         <field name="OP">GT</field>
                                         <value name="A">
                                           <block type="on_source" id="^Zw6;J3NM.=o_QHIfeVw">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="Zc~cW;[({xEj*S-%?x4O">
                                             <field name="NUM">1200</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="Y:uXk([@33O|*EcEvZC-">
                                     <field name="VAR" id="J[g|q0WcCQ$lG(S|TP`p">steckdose</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="k8#sut0s2709:o.nhIS?">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="=XNnI:dF{iPZY{5-gz{%">
                                         <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="4s?8X2O{mv4dkx!lU;tL">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <value name="IF1">
                                   <block type="logic_compare" id="m![RY(f3FtDyAKVqo9Tx">
                                     <field name="OP">LTE</field>
                                     <value name="A">
                                       <block type="on_source" id="PS1t9L#xZ;x(@eHHP10#">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="OzBUgjtn~Ed/)o1mWRp">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO1">
                                   <block type="variables_set" id="/+d#QA(l.c`6Nd.m51_z">
                                     <field name="VAR" id="J[g|q0WcCQ$lG(S|TP`p">steckdose</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="c*Cyjv-G,I3+W|`.#P[a">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="controls_if" id="})tCgv{wBfQw97dX@Xuv">
                                     <value name="IF0">
                                       <block type="logic_compare" id="TLk|}7X@Qvtl_+?c0n?9">
                                         <field name="OP">NEQ</field>
                                         <value name="A">
                                           <block type="variables_get" id="mR*@R~HWo[L/u1(%D+F:">
                                             <field name="VAR" id="J[g|q0WcCQ$lG(S|TP`p">steckdose</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="get_value" id="KK{JE3@|BkciE$J.kqh">
                                             <field name="ATTR">val</field>
                                             <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="control" id="eP7[z/)zQ@T,2a?:Lg6I">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="variables_get" id="3;,,Rl..U.T0K`wISUX=">
                                             <field name="VAR" id="J[g|q0WcCQ$lG(S|TP`p">steckdose</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on" id=",{!!mR4nS4Q$NTlsUW,$">
                             <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="plWmx0U+JD:-qOK9v0_p">
                                 <mutation elseif="1"></mutation>
                                 <value name="IF0">
                                   <block type="logic_negate" id="BaJxudKyZ{cTc`wx43.Y">
                                     <value name="BOOL">
                                       <block type="on_source" id="~yBgynYAtE{~NXHsVeuA">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="X=d18E?zu0fn:~a^N5g]">
                                     <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="x$~YvVoggOL:j%:-TCk">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="gR)1K=HLZ:9nGMvrBmi!">
                                         <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="4u_b=$jq?u6pPc{R~LHL">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <value name="IF1">
                                   <block type="logic_negate" id="8gfsgQ[.HE*?Dj}KtS+">
                                     <value name="BOOL">
                                       <block type="variables_get" id="9vFK#z{rQXnRH_pyLsz">
                                         <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO1">
                                   <block type="variables_set" id="tY.{vp+,c/t}#oMfS]%P">
                                     <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="+^XozkhgT@Hd+7)pS97H">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                  </xml>
                  

                  Humidor 2 Replies Last reply Reply Quote 0
                  • Humidor
                    Humidor @paul53 last edited by

                    @paul53 ok, jetzt hab ich dich verstanden. danke.

                    1 Reply Last reply Reply Quote 0
                    • Humidor
                      Humidor @paul53 last edited by Humidor

                      @paul53 es will nicht funktionieren, bei 0 wird mir der Trockner nicht abgeschaltet, nun habe ich eine weitere Triggervariabel drin, damit weiter die Bedingungen abgearbeitet werden, will auch nicht sauber funktionieren (so ein pfufferl Funktion fkt. wieder nicht, das nerft)

                      Frage, warum fkt. der Vergleich nicht? ist das ein Systemfehler?
                      warum ist die Variable undefiniert, sollte ein Bool sein
                      Bildschirmfoto 2022-12-24 um 13.47.38.png


                      <block xmlns="https://developers.google.com/blockly/xml" type="controls_if" id="iMG-g)W+/JBa1c0H4o:^" x="-85.99716186523438" y="1943">
                      <value name="IF0">
                      <block type="logic_compare" id="E7:1rr(1eLtr8iBYg8vs">
                      <field name="OP">NEQ</field>
                      <value name="A">
                      <block type="get_value" id="6di?WSeWq5K.PkO_Z)R,">
                      <field name="ATTR">val</field>
                      <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                      </block>
                      </value>
                      <value name="B">
                      <block type="variables_get" id="Z?{k!DyEOM%Mt+vH3eLV">
                      <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                      </block>
                      </value>
                      </block>
                      </value>
                      <statement name="DO0">
                      <block type="control" id="P@rQWr^[Hv%ygfQqqvB">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                      <block type="variables_get" id="Pd8cVi{9va:z8,7sY^zL">
                      <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                      </block>
                      </value>
                      <next>
                      <block type="debug" id="H36r9It9a}%=0]wtY2S/">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                      <shadow type="text" id="3%y$#U
                      }5q=D=LwRvHY8">
                      <field name="TEXT">SmartPlug Bad aktiviert</field>
                      </shadow>
                      <block type="text_join" id="auz3gSf7.WYK1jWJ,d4r">
                      <mutation items="2"></mutation>
                      <value name="ADD0">
                      <block type="text" id="r[Jk^79uVZsQ7=_sJ$bb">
                      <field name="TEXT">Smart Plug Bad geändert: </field>
                      </block>
                      </value>
                      <value name="ADD1">
                      <block type="convert_tostring" id="hthB0ZM5p?6HbOez-_Jr">
                      <value name="VALUE">
                      <block type="variables_get" id="!v5M*M5k)2I`tb0FBRwJ">
                      <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                      </block>
                      </value>
                      </block>
                      </value>
                      </block>
                      </value>
                      </block>
                      </next>
                      </block>
                      </statement>
                      </block>

                      nach einer Zeit dann:
                      Bildschirmfoto 2022-12-24 um 14.02.07.png
                      why??

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Humidor last edited by paul53

                        @humidor sagte: warum ist die Variable undefiniert

                        Das ist sie nach Skriptstart. Deshalb initialisiere sie außerhalb der Trigger:

                        Bild_2022-12-24_151149156.png

                        Da du einiges geändert hast, poste bitte den Export des kompletten Skripts in Code tags.
                        Was ist der Trigger-DP "Power"?

                        Humidor 1 Reply Last reply Reply Quote 0
                        • Humidor
                          Humidor @paul53 last edited by

                          @paul53 wie im Bild oben zu sehen, mache ich die Initialisierung per wahr/falsch (Bool)
                          nach einer Zeit hat es dann auch funktioniert, das ist ein zeitliches Fehlverhalten
                          für mich ist es damit erledigt, mehr kann ich da dann eh nicht beitragen.
                          es gibt gerade ein neues Update von Admin und Skript, ich bin aber nicht der, der sofort auf die letzte Version updated, gebranntes Kind halt.

                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @Humidor last edited by

                            @humidor sagte: wie im Bild oben zu sehen, mache ich die Initialisierung per wahr/falsch (Bool)

                            Das ist einen andere Variable.

                            Humidor 1 Reply Last reply Reply Quote 0
                            • Humidor
                              Humidor @paul53 last edited by

                              @paul53 hmm, eine Deklaration mit bool ist doch eindeutig, da gibts doch keine Diskussion und ist bei allen Programmiersprachen die ich kenne. ?

                              DJMarc75 1 Reply Last reply Reply Quote 0
                              • DJMarc75
                                DJMarc75 @Humidor last edited by

                                @humidor dann zeig Dein komplettes Blockly und lass den Debug unten weg... brauchen wir hier grad nicht um Dir zu helfen... nur das Blockly

                                Humidor 1 Reply Last reply Reply Quote 0
                                • Humidor
                                  Humidor @DJMarc75 last edited by Humidor

                                  @djmarc75 da sind oben noch 2 Plugs, die sind aktuell man vernachlässigbar


                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                  <variable id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</variable> <variable id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</variable> <variable id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable>
                                  <variable id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</variable>
                                  <variable id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</variable>
                                  <variable id="KD:P[N/4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
                                  </variables>
                                  <block type="comment" id="z=dwW7Z^I0)hUWc$k!f" x="-237" y="-213">
                                  <field name="COMMENT">INIT--------------</field>
                                  <next>
                                  <block type="create" id="7Gf_Q8NN|bW1T3agv:sj">
                                  <field name="NAME">0_userdata.0.SmartPlugs.SmarPlug_HzgBad</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="+ABL;uy{pNb(E|1)o5th">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  <value name="COMMON">
                                  <block type="text" id="Xcka@/|Q/tc|Xcv+Yr
                                  l">
                                  <field name="TEXT">{"name": "SmartPlug_HzgBad","role": "","type": "boolean","desc": "Blockly erzeugt","read": true,"write": true,"def": false}</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="create" id="==~ZA:E=R{8K~__,(hU4">
                                  <field name="NAME">0_userdata.0.SmartPlugs.SmarPlug_HzgBen</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="0C{lx;ih)A3!zAk3r;S[">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  <value name="COMMON">
                                  <block type="text" id="6)Fe,U(?]d1rrIof}-;"> <field name="TEXT">{"name": "SmartPlug_HzgBen","role": "","type": "boolean","desc": "Blockly erzeugt","read": true,"write": true,"def": false}</field> </block> </value> <next> <block type="comment" id="9FS}{3.hU$!)fvKxe5Z">
                                  <field name="COMMENT">Weihnachtsbeleuchtung</field>
                                  <next>
                                  <block type="astro" id="|acq.X_z?/Lk3dB@w@f"> <field name="TYPE">sunsetStart</field> <field name="OFFSET">0</field> <statement name="STATEMENT"> <block type="control" id="pf#k{+=AWeayqQ(+!lU1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHPLG-S#DCCD03#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="pVxA|c4e44c1:K0q8;o">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  </block>
                                  </statement>
                                  <next>
                                  <block type="schedule" id="#ImvmsMd9}x#E[6,M(?
                                  ">
                                  <field name="SCHEDULE">0 21 * * </field>
                                  <statement name="STATEMENT">
                                  <block type="control" id="51G}JMMom|N~wZe?vuj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHPLG-S#DCCD03#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="eAT)89Q7NYX@3)OOY7Ae"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="}c]x52e-,Jd|e2*e^1$6"> <field name="COMMENT">Ben Heizung</field> <next> <block type="on_ext" id="yJDNB7t[~}.F8FBDdvsc"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="mY2gO+p3v.cztMJvtn:A"> <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="(;]E+4={9RA~rvpY_t3">
                                  <field name="oid">0_userdata.0.AMIS.Power</field>
                                  </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                  <block type="controls_if" id="NbvOvR?bhvqpF!].RQ)"> <mutation else="1"></mutation> <value name="IF0"> <block type="get_value" id="fco*1g?m:yToN*K~5|Ql"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.SmartPlugs.SmarPlug_HzgBen</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="ApX@gbb0HHAZ?tTJ%DJL"> <value name="IF0"> <block type="logic_negate" id="nn1QFP)lE0/rD:963aMk"> <value name="BOOL"> <block type="variables_get" id="yoNWI)pdSK,NTqyhzXm~"> <field name="VAR" id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="controls_if" id="TB%4pL)wZgd6[u6/qea">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                  <block type="logic_compare" id=")h)thl1]/#%wS85^Q[Q">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                  <block type="get_value" id="k#BmbtWz2WX_]qlAzdxv">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="math_number" id="rO7r2mky
                                  c1;[0YTkXV-">
                                  <field name="NUM">0</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="variables_set" id="S%?J(3hgSP1jp%44@@to">
                                  <field name="VAR" id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="2x:G_I{C[[]D:]r~B@Xt">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  </block>
                                  </statement>
                                  <value name="IF1">
                                  <block type="logic_operation" id="]4FETZUQq13/MP1l5J$k" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                  <block type="logic_compare" id="d:5_6(G=Jw2M6wZ)Jl2r">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                  <block type="get_value" id="
                                  +,Tgs3I#G(/z[ZqcHN9">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="math_number" id="vwD4k;kXx,4uw=4f($g">
                                  <field name="NUM">1500</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="logic_negate" id="cn}Hla6KvyP+G!6M/y5T">
                                  <value name="BOOL">
                                  <block type="get_value" id="Gr@${G.^|v8%2C%MJ_5">
                                  <field name="ATTR">val</field>
                                  <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO1">
                                  <block type="variables_set" id="p?cvm%eiH?u);h|B}Rdw">
                                  <field name="VAR" id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="%s0S%px=rB$BMHf7_Kuz">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="variables_set" id="|PO~KGr/Z7S);%%8Jq{@">
                                  <field name="VAR" id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="0umsXwGN(LY/n
                                  j:!!V">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  <next>
                                  <block type="controls_if" id="tb3Zo0VF|DHz7d:vMi)6">
                                  <value name="IF0">
                                  <block type="logic_compare" id="?bFs^LJ$=[B!q33.415D">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                  <block type="get_value" id="?$mmaTeHDO{Y4Z61PG73">
                                  <field name="ATTR">val</field>
                                  <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="variables_get" id="r;SW=;$T7Djnss?KYHAD">
                                  <field name="VAR" id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="control" id="L/m_;ygSV-0ZooeZ1e/m">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                  <block type="variables_get" id="?0v#8xfc_phYg2{nvOIN">
                                  <field name="VAR" id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</field>
                                  </block>
                                  </value>
                                  </block>
                                  </statement>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </statement>
                                  <statement name="ELSE">
                                  <block type="variables_set" id="hBhgMTUxqcZNK4Q77L+c">
                                  <field name="VAR" id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="NR2[Ita|cx-C1Zz3rV.I"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="gq5NDiz)n.aRg%Vz^I!">
                                  <field name="VAR" id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="LHRm3e4@=@DT$$?8:Y/8">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="control" id="+jCB/N79NQm=1iC^u*k"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="*Av;9x]5uPOk+5UHX|E*"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on" id="1ofnM(8^@u410iRm.L#">
                                  <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <statement name="STATEMENT">
                                  <block type="controls_if" id="}z+.!1@owb3I_eB];]8B">
                                  <mutation else="1"></mutation>
                                  <value name="IF0">
                                  <block type="on_source" id="DA9%A!]GFa%3|^I:_@|=">
                                  <field name="ATTR">state.val</field>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="controls_if" id="Y|XpQQYR!:D9FqG6S[p6">
                                  <value name="IF0">
                                  <block type="logic_negate" id="~Pwco5sCao+qz=AE|s^E">
                                  <value name="BOOL">
                                  <block type="variables_get" id="p7z;5.~.xcJmD5{oi7#}">
                                  <field name="VAR" id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="variables_set" id="3yl@z{)J|8ci36rY6#e@">
                                  <field name="VAR" id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="CICNz3lI-vQ]!Te2Un
                                  ">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  </block>
                                  </statement>
                                  </block>
                                  </statement>
                                  <statement name="ELSE">
                                  <block type="variables_set" id="C7lB^ijF@U[bI=ip27r"> <field name="VAR" id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="v{,|vk$f?a1ga$WLhK?"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="@.(V|e@jCGmJv8.QwJ?H"> <field name="VAR" id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="BCe|,zQnY~64zY[$V.L">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </statement>
                                  <next>
                                  <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|">
                                  <field name="COMMENT">Hzg Bad</field>
                                  <next>
                                  <block type="variables_set" id="VzBqFrD%u{!7;__LjF50">
                                  <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="c.R@v_JN,e8J*N0NK4sA"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on_ext" id="WmaDlVza-%|bE2PC4}$}"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="(K%m+UU(oymx/#ZG.8s3"> <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="u)8iDg5W-T:O++#u94nN"> <field name="oid">0_userdata.0.AMIS.Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="debug" id=")00za#hEg2!m1qLnmRCA" disabled="true"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="jNXGQwWFslme^E#Z]rlY"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="l@r?8o.2RlJmmv/8.nq{"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="P-9URIODf0;XyV5rq{^^"> <field name="TEXT">- Status SmartPlugBag: </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="W@W^m!TCqT[)6*1X/v/["> <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field> </block> </value> </block> </value> <next> <block type="controls_if" id="~z(C0Ym)^=1QfSjT7~)">
                                  <mutation else="1"></mutation>
                                  <value name="IF0">
                                  <block type="get_value" id="]3^kMmXHdM*X6hxcLT$"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.SmartPlugs.SmarPlug_HzgBad</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="!:6IVLh(.s7Zc7*X2PKe"> <value name="IF0"> <block type="logic_negate" id="K~rgK;sALe4{c~Ujl-i6"> <value name="BOOL"> <block type="variables_get" id="]y;likc+U,w(YnZm}|~">
                                  <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                  <block type="logic_operation" id="|;joh}
                                  ;!mA?r5ZiSg#1" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                  <block type="logic_operation" id="Nmlt)igIsK,]cTElirIO" inline="false">
                                  <field name="OP">OR</field>
                                  <value name="A">
                                  <block type="logic_compare" id="m![RY(f3FtDyAKVqo9Tx">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                  <block type="get_value" id="8g2XiUBKIj/;R,V+q?%]">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="math_number" id="OzBUgjtn~Ed/)o1mWRp"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="mL7.f6Y8#0OmaVuk$71L"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="x!PfMXjU|/Qh^Cf|Sr]-"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT_116300118701.celsius</field> </block> </value> <value name="B"> <block type="math_number" id="wI[/OC#D;vOjTQ97fMcm"> <field name="NUM">25</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="]5o#-y)n;Y#t|.08E6k4"> <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="*|c%1P3R}|bETp:H-Zru"> <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field> <value name="VALUE"> <block type="logic_boolean" id="TTB|-!JB/!/Llp_*?jXy"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id=":2bpKO5;oqCJ~(~?yU*H"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="twZ%b$:x7:Pk1$7*_oNr"> <field name="TEXT">SmartPlug Bad deaktiviert</field> </shadow> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="@YV5It9:.Rwjh0g_hu8P" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="DW7F}t8zu~$_G*8Pa(3e" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="n=Zb^9u~JGi|Z-2*qlih"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="RO$ii/.eX+hbu0jJElK1"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT_116300118701.celsius</field> </block> </value> <value name="B"> <block type="math_number" id="n|%GCJ*$Tgl4!/hO)HO">
                                  <field name="NUM">23</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="logic_compare" id="UUL3U=9eId#Q,LtbX:V2">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                  <block type="get_value" id="j7Og^vZs{Gb@!_FYa^rw">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="math_number" id="Zc~cW;[({xEj
                                  S-%?x4O">
                                  <field name="NUM">1200</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="logic_negate" id="BocLR@CABleTMd8S2aK$">
                                  <value name="BOOL">
                                  <block type="variables_get" id="QH;uW7]]0#@i8DmSXsBI">
                                  <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO1">
                                  <block type="variables_set" id="_fw-lf1ke521sTDyD+sc">
                                  <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="x(T:dP4YUgCIhxf.6|"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="=XNnI:dF{iPZY{5-gz{%"> <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="4s?8X2O{mv4dkx!lU;tL">
                                  <field name="BOOL">TRUE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="debug" id="5,x6)%(2~s:amdJRme2N">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                  <shadow type="text" id=")8=(EFb/R{t4{8OSW[~|">
                                  <field name="TEXT">SmartPlug Bad aktiviert</field>
                                  </shadow>
                                  </value>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  <next>
                                  <block type="controls_if" id="iMG-g)W+/JBa1c0H4o:^">
                                  <value name="IF0">
                                  <block type="logic_compare" id="E7:1rr(1eLtr8iBYg8vs">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                  <block type="get_value" id="6di?WSeWq5K.PkO_Z)R,">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="variables_get" id="Z?{k!DyEOM%Mt+vH3eLV">
                                  <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="control" id="P@rQWr^[Hv%ygfQq
                                  qvB">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                  <block type="variables_get" id="Pd8cVi{9va:z8,7sY^zL">
                                  <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="debug" id="H36r9It9a}%=0]wtY2S/">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                  <shadow type="text" id="3%y$#U*}5q=D=LwRvHY8">
                                  <field name="TEXT">SmartPlug Bad aktiviert</field>
                                  </shadow>
                                  <block type="text_join" id="auz3gSf7.WYK1jWJ,d4r">
                                  <mutation items="2"></mutation>
                                  <value name="ADD0">
                                  <block type="text" id="r[Jk^79uVZsQ7=_sJ$bb">
                                  <field name="TEXT">Smart Plug Bad geändert: </field>
                                  </block>
                                  </value>
                                  <value name="ADD1">
                                  <block type="convert_tostring" id="hthB0ZM5p?6HbOez-_Jr">
                                  <value name="VALUE">
                                  <block type="variables_get" id="!v5MM5k)2Itb0FBRwJ"> <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="controls_if" id="LMAxl+;SZ8E(TlZKxWl">
                                  <value name="IF0">
                                  <block type="get_value" id="j:Fq]C
                                  4d+}EE,zt!CB1">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                  </block>
                                  </value>
                                  <statement name="DO0">
                                  <block type="control" id="kp_2D29pPxyBD?BILdYy">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="^Lvuh$RDtEkNp]pH:1Kx">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="variables_set" id="fi,8jMb]:;nRjEANg30]">
                                  <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                  <value name="VALUE">
                                  <block type="logic_boolean" id="S,N!K.oxOUE@TF/rg6(K">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="variables_set" id="eGU=ps7+5m=7SwxtH|">
                                  <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="Opy{.zEg](?ok;}cd1"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="SVXtBpd[q?mvCcep~3m5"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2GJS]MKCljICYnyib-$Z"> <field name="TEXT">SmartPlug Bad ausgeschaltet</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id=",{!!mR4nS4Q$NTlsUW,$"> <field name="OID">fritzdect.0.DECT_116300118701.state</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="n,.3vp!##~_]qz%P/^Ib"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="jKN0mfg1|:PbOG^Gb|/J"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="-BxVSGEfn}b7Ju@-,eep"> <value name="IF0"> <block type="logic_negate" id="8gfsgQ_[.HE*?Dj}KtS+"> <value name="BOOL"> <block type="variables_get" id="9vFK#z{rQXnRH_pyLsz">
                                  <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="tY.{vp+,c/t}#oMfS]%P"> <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="+^XozkhgT@Hd+7)pS97H"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="?Hw8wf.Tjw?6RDCyh[3b"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="f0)M{RAR(rVV_;+OAixu"> <field name="TEXT">- Hzg Bad Button aktiviert</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="X=d18E?zu0fn:~a^N5g]"> <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="x$~YvVoggOL:j%:-TCk">
                                  <field name="BOOL">FALSE</field>
                                  </block>
                                  </value>
                                  <next>
                                  <block type="variables_set" id="gR)1K=HLZ:9nGMvrBmi!">
                                  <field name="VAR" id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field> <value name="VALUE"> <block type="logic_boolean" id="4u_b=$jq?u6pPc{R~LHL"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="/IL]Z5=@*;.99-BJeE{g"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="+G{;4~G4E2V+}e;^).-">
                                  <field name="TEXT">- Hzg Bad Button / PV deaktiviert</field>
                                  </shadow>
                                  </value>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </statement>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </xml>

                                  Bildschirmfoto 2022-12-25 um 09.16.21.png

                                  aktuell sehe ich kein Fehlverhalten, es hat nur lange gedauert bis es gelaufen ist, dabei Fehlersuche ohne Erfolg (daher die Debugs)

                                  gibt es eine Möglickeit die Variablen (Wert) im Objektbaum zu sehen?

                                  DJMarc75 paul53 2 Replies Last reply Reply Quote 0
                                  • DJMarc75
                                    DJMarc75 @Humidor last edited by DJMarc75

                                    @humidor sagte in Smarter - Handtuchtrockner:

                                    gibt es eine Möglickeit die Variablen (Wert) im Objektbaum zu sehen?

                                    ja klar, indem Du die Variablen an das Debug hängst...

                                    Screenshot 2022-12-25 100309.png

                                    Humidor 1 Reply Last reply Reply Quote 1
                                    • Humidor
                                      Humidor @DJMarc75 last edited by

                                      @djmarc75 auch mit direktem Bezug auf die Variable - undefined
                                      hatte heute einen Restart vom Raspi, seither fkt. es wieder nicht.
                                      Bildschirmfoto 2022-12-25 um 11.06.13.png

                                      DJMarc75 1 Reply Last reply Reply Quote 0
                                      • DJMarc75
                                        DJMarc75 @Humidor last edited by

                                        @humidor Na wenn die Variable, laut Deinem Screenshot, keinen Wert bekommt, dann ist diese halt auch "undefined"

                                        Humidor 1 Reply Last reply Reply Quote 0
                                        • Humidor
                                          Humidor @DJMarc75 last edited by Humidor

                                          @djmarc75 true/false wäre ja definiert
                                          Bildschirmfoto 2022-12-25 um 11.12.02.png

                                          Humidor paul53 2 Replies Last reply Reply Quote 0
                                          • Humidor
                                            Humidor @Humidor last edited by Humidor

                                            @humidor ach ich Idiot, die Variable die ich debugge, war nicht definiert.... so ein Depp

                                            dennoch schalet mir das Spiel gerade nicht...

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            809
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            26
                                            668
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo