- Home
- Deutsch
- Skripten / Logik
- Blockly
- Smarter - Handtuchtrockner
Smarter - Handtuchtrockner
-
@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. -
@humidor sagte: wie im Bild oben zu sehen, mache ich die Initialisierung per wahr/falsch (Bool)
Das ist einen andere Variable.
-
@paul53 hmm, eine Deklaration mit bool ist doch eindeutig, da gibts doch keine Diskussion und ist bei allen Programmiersprachen die ich kenne. ?
-
@humidor dann zeig Dein komplettes Blockly und lass den Debug unten weg... brauchen wir hier grad nicht um Dir zu helfen... nur das Blockly
-
@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+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:K0q
8;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="rO7r2mkyc1;[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/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>
<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="CICNz3l
I-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*$Tgl
4!/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;[({xEjS-%?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%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="!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]C4d+}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_p
yLsz">
<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$~YvVo
ggOL: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>
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?
-
@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...
-
@djmarc75 auch mit direktem Bezug auf die Variable - undefined
hatte heute einen Restart vom Raspi, seither fkt. es wieder nicht.
-
@humidor Na wenn die Variable, laut Deinem Screenshot, keinen Wert bekommt, dann ist diese halt auch "undefined"
-
@djmarc75 true/false wäre ja definiert
-
@humidor ach ich Idiot, die Variable die ich debugge, war nicht definiert.... so ein Depp
dennoch schalet mir das Spiel gerade nicht...
-
-
@humidor sagte: true/false wäre ja definiert
Die Variablen
SmartPlugBad
undSmartPlugBen
müssen initialisiert werden! Bei den anderen Variablen ist es nicht nötig.EDIT: Wie hoch ist die Leistungsaufnahme der beiden Heizungen?
-
@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>
Was hat die Weihnachtsbeleuchtung in diesem Skript zu suchen?
-
@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 richtigich 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 ich habe das lange beobachtet
der Trigger fkt. nicht .- Triggervariable ist 0
- Triggervariable ist im Minus
damit kommt kein Trigger mehr, der Handtuchtrockner bleibt mir aktiv
umgestellt auf Trigger/Sekunde, funktioniert.
-
@humidor sagte in Smarter - Handtuchtrockner:
@humidor ich habe das lange beobachtet
der Trigger fkt. nicht .- Triggervariable ist 0
- Triggervariable ist im Minus
damit kommt kein Trigger mehr, der Handtuchtrockner bleibt mir aktiv
umgestellt auf Trigger/Sekunde, funktioniert.
Hi,
ich will etwas ähnliches realisieren. Funktioniert dein Blockly jetzt?
Falls ja, kannst du vielleicht einen Export bereitsstellen.
Danke