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.
    • 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
              • DJMarc75
                DJMarc75 @Humidor last edited by

                @humidor warum setzt Du die Variablen 2 mal ??

                Screenshot 2022-12-25 112932.png

                macht keinen Sinn !

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

                  @humidor sagte: true/false wäre ja definiert

                  Die Variablen SmartPlugBad und SmartPlugBen müssen initialisiert werden! Bei den anderen Variablen ist es nicht nötig.

                  Bild_2022-12-25_124053934.png

                  Bild_2022-12-25_131556805.png

                  EDIT: Wie hoch ist die Leistungsaufnahme der beiden Heizungen?

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

                    @humidor
                    Ich habe mal die Ausschaltbedingung für beide Heizungen auf Überschuss < 100 geändert und den doppelten Trigger entfernt.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</variable>
                       <variable id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</variable>
                       <variable id="I87g3)Bgf+VQPGrP)(w">HzgBenButtonAktiviert</variable>
                       <variable id="jIGE4073UZ^0VwC#aJuo">HzgBenPVAktiviert</variable>
                       <variable id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
                       <variable id="G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable>
                       <variable id="HLabyAd:2nQ}/NML;EAq">Temperatur</variable>
                     </variables>
                     <block type="comment" id="z=dwW7Z^I0)hUWc$k!f" x="-136" y="-260">
                       <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+Yrl">
                               <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="variables_set" id="T:OJh$QAE@dYyx%-Zseu">
                                               <field name="VAR" id="I=r#[:pdyT+h|wsXE$|@">SmartPlugBen</field>
                                               <value name="VALUE">
                                                 <block type="get_value" id="wi0;LmRK]|?-9g[9yO51">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="VzBqFrD%u{!7;__LjF50">
                                                   <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                   <value name="VALUE">
                                                     <block type="get_value" id="|A_Y-a*[tt%7[kH+v#Ps">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="on_ext" id="yJDNB7t[~}.F8FBDdvsc">
                                                       <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="mY2gO+p3v.cztMJvtn:A">
                                                           <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field>
                                                         </shadow>
                                                       </value>
                                                       <statement name="STATEMENT">
                                                         <block type="comment" id="}c]x52e-,Jd|e2*e^1$6">
                                                           <field name="COMMENT">Ben Heizung</field>
                                                           <next>
                                                             <block type="controls_if" id="NbvOvR?bhvqpF!].RQ)">
                                                               <mutation elseif="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">LT</field>
                                                                           <value name="A">
                                                                             <block type="on_source" id="Hy=tG%V,OewFti1.fXz`">
                                                                               <field name="ATTR">state.val</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <block type="math_number" id="rO7r2mkyc1;[0YTkXV-">
                                                                               <field name="NUM">100</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_compare" id="d:5_6(G=Jw2M6wZ)Jl2r">
                                                                           <field name="OP">GT</field>
                                                                           <value name="A">
                                                                             <block type="on_source" id="=pLg:aB#k0O/WJH7Wv`5">
                                                                               <field name="ATTR">state.val</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <block type="math_number" id="vwD4k;kXx,4uw=4f($g">
                                                                               <field name="NUM">1600</field>
                                                                             </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/nj:!!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>
                                                               <value name="IF1">
                                                                 <block type="get_value" id="(aYkcX/I(pzVo|`X$sEE">
                                                                   <field name="ATTR">val</field>
                                                                   <field name="OID">shelly.0.SHPLG-S#8044C6#1.Relay0.Switch</field>
                                                                 </block>
                                                               </value>
                                                               <statement name="DO1">
                                                                 <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>
                                                               </statement>
                                                               <next>
                                                                 <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|">
                                                                   <field name="COMMENT">Hzg Bad</field>
                                                                   <next>
                                                                     <block type="controls_if" id="~z(C0Ym)^=1QfSjT7~)">
                                                                       <mutation elseif="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="variables_set" id="N,/~h9;9.JbWzU8$~1a*">
                                                                               <field name="VAR" id="HLabyAd:2nQ}/NML;EAq">Temperatur</field>
                                                                               <value name="VALUE">
                                                                                 <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>
                                                                               <next>
                                                                                 <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
                                                                                   <mutation elseif="1"></mutation>
                                                                                   <value name="IF0">
                                                                                     <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">LT</field>
                                                                                           <value name="A">
                                                                                             <block type="on_source" id="!ar_r$01pMg+XNiz*t@!">
                                                                                               <field name="ATTR">state.val</field>
                                                                                             </block>
                                                                                           </value>
                                                                                           <value name="B">
                                                                                             <block type="math_number" id="OzBUgjtn~Ed/)o1mWRp">
                                                                                               <field name="NUM">100</field>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <value name="B">
                                                                                         <block type="logic_compare" id="mL7.f6Y8#0OmaVuk$71L">
                                                                                           <field name="OP">GTE</field>
                                                                                           <value name="A">
                                                                                             <block type="variables_get" id="i=)iIh}a]G1RSa2XRI=|">
                                                                                               <field name="VAR" id="HLabyAd:2nQ}/NML;EAq">Temperatur</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>
                                                                                   <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>
                                                                                     </block>
                                                                                   </statement>
                                                                                   <value name="IF1">
                                                                                     <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">LTE</field>
                                                                                           <value name="A">
                                                                                             <block type="variables_get" id="?+f0rAV,pn$;)/tcql[K">
                                                                                               <field name="VAR" id="HLabyAd:2nQ}/NML;EAq">Temperatur</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="on_source" id="B5i4y6y,UwZDHs]C[*rR">
                                                                                               <field name="ATTR">state.val</field>
                                                                                             </block>
                                                                                           </value>
                                                                                           <value name="B">
                                                                                             <block type="math_number" id="Zc~cW;[({xEjS-%?x4O">
                                                                                               <field name="NUM">1300</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>
                                                                                         </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%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="variables_get" id="!v5MM5k)2Itb0FBRwJ">
                                                                                                       <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </statement>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </statement>
                                                                         </block>
                                                                       </statement>
                                                                       <value name="IF1">
                                                                         <block type="get_value" id="j:Fq]C4d+}EE,zt!CB1">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                         </block>
                                                                       </value>
                                                                       <statement name="DO1">
                                                                         <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="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>
                                                                       </statement>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </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="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>
                    </xml>
                    

                    Bild_2022-12-25_142638788.png

                    Was hat die Weihnachtsbeleuchtung in diesem Skript zu suchen?

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

                      @paul53 Morgen!
                      Ja ich weiß, dass das wahr/falsch da nicht hingehört, es war ein Test.
                      Nachdem ich mich aber auf die falschen Variablen konzentriert haben, waren die SmartPluxx nicht deklariert und daher auch undefined, also alles richtig

                      ich sagte auch, dass die 2 anderen zu vernachlässigen sind
                      da ich die Heizkörper manuell per Soft-Schalter de-/aktiviere, passen die Werte schon.

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

                        @humidor ich habe das lange beobachtet
                        der Trigger fkt. nicht .

                        1. Triggervariable ist 0
                        2. Triggervariable ist im Minus
                          damit kommt kein Trigger mehr, der Handtuchtrockner bleibt mir aktiv

                        umgestellt auf Trigger/Sekunde, funktioniert.
                        Bildschirmfoto 2023-01-02 um 08.18.45.png

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

                          @humidor sagte in Smarter - Handtuchtrockner:

                          @humidor ich habe das lange beobachtet
                          der Trigger fkt. nicht .

                          1. Triggervariable ist 0
                          2. Triggervariable ist im Minus
                            damit kommt kein Trigger mehr, der Handtuchtrockner bleibt mir aktiv

                          umgestellt auf Trigger/Sekunde, funktioniert.
                          Bildschirmfoto 2023-01-02 um 08.18.45.png

                          Hi,

                          ich will etwas ähnliches realisieren. Funktioniert dein Blockly jetzt?

                          Falls ja, kannst du vielleicht einen Export bereitsstellen.

                          Danke

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          847
                          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