NEWS
Klima durch PV-Überschuss trotzdem manuell steuern?
-
Hi.
Ich habe hier folgendes Blockly, dass seit Jahren eigentlich gut funktioniert.
Grundsätzlich schaltet es erst das eine, dann das andere Klimagerät dazu, wenn genug Strom erzeugt wird und umgekehrt wieder ab, wenn zu wenig Strom da ist.
Zusätzlich wird noch nach Temperatur und Jahreszeit gefiltert.
Seit kurzem habe ich den Iobroker Adapter der Klimaanlage geändert (von melcloud (also Cloudbasiert) zu Mitsubishi-Local (also lokal)). Vorher war (warum auch immer) das Verhalten so:
Ich schalte die Klimaanlage manuell ein -> das Skript reagiert erst wieder, wenn das erste mal "zu viel" Strom da war (also zum Beispiel möchte ich nachts mit Klima schlafen, aber es ist zu wenig Strom da. Erst am nächsten Tag hat er dann die Klimaanlage wieder abgeschaltet, nachdem er sie morgens nochmals angeschaltet hatte). Wie gesagt, weiß ich nicht warum das geklappt hat. Es war aber so.
Das ganze klappt jetzt nicht mehr. Wenn ich abends also die Klima manuell anschalte, schaltet das Skript die Klimaanlage nach 5 Minuten wieder aus. Wenn ich die aktivierte Klima manuell ausschalte, schaltet sie nach 5 Minuten wieder ein. Das verstehe ich , denn so ist ja das Skript :)
Jetzt würde ich das Skript aber gerne anpassen, sodass ich manuell eingreifen kann. Im Prinzip müsste also irgendwo abgefragt werden, WIE "Power" geschaltet wurde (wenn manuell geschaltet -> Skript (für das jeweilige Klimagerät) deaktiviert bis wieder manuell geschaltet). Mit welchem Blockly kann ich das machen? oder geht das nicht? Das manuelle schalten würde über verschiedene Dinge passieren (App & "Funk"Fernbedienung fallen mir ein). Also das Objekt "Power" wird "an" oder "aus" geschaltet, aber nicht durch das Skript.
Evtl kann mir sogar jemand das Skript komplett anpassen? Ich verstehe wenn ihr lieber Hilfe zur Selbsthilfe leistet und gebe auch mein Bestes, wenn ich erstmal nur einen Tipp zum entsprechenden Block bekommen würde :) Dann kommen aber bestimmt Folgefragen :(
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</variable> <variable type="timeout" id="delayOn">delayOn</variable> <variable type="timeout" id="delayOff">delayOff</variable> </variables> <block type="on_ext" id="m~lGEhr|UdRB[m(}El12" x="-488" y="-273"> <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="6{`e9717c1G/r/TC#1f/"> <field name="oid">rct.0.g_sync.p_ac_grid_sum_lp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U4gy[:M12Ajo}98t:~Q]"> <value name="IF0"> <block type="logic_operation" id="]@s9^oSexWR=f$@gI8i," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="x?r/X;5LCvk!ks6Ulp1S" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{zfAO}!U:a[sGPIe(6xL"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="+$*B;/.kjhTRTjUNxv#3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="+(Yu-GbAJ7;UMK_1l9-|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VTTRqo#*hm#|-FpLsqN2"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="WZLqX$t.s2nA-q^)Glla"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="z]6/iUr~fpgm=zn2td9g"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="M|4NL*G,x133KONW0#%:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="huWuw#NkASrZ]IDOH%bW"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">09:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="f4)jS$o}d(KK~xVw7A*c"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X]K4LUS#Z]k7k`t0AV[C"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Klimaautomatik</field> </block> </value> <value name="B"> <block type="logic_boolean" id="/,zFJO}$w%f(;c,ksR)$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Tj^dGy7YztT`f3xbdmc["> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="u^8B#/.:y6v7.N~fAN.I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2q#GI_iHy@a)S+_}GiGn"> <field name="NUM">0</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="FB}a(W@t]T}EC/nV+EH4"> <field name="NUM">1</field> </shadow> <block type="on_source" id="m@SfmXN3.}68J$zL(9B#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="snxmS]bbKOS;Qn.2L$a!"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="2^EfhswU=;rC59;PBM9p"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="JBw[AADX0)-tNm^jSnY@"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="q)7C?@sw9jMm8lQ(qdtJ"> <field name="NUM">800</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="zy+9U[e+y;R7?0vR25}y"> <field name="NAME">delayOn</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="C{v;^$_kuPG3|E#FbW,U" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_multi_and" id="T=]H]s+jgcIAU[OIwP+P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="do706++a@[6$A}bkR9Sk"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="74.`M%l4pcSKr]={]cG!"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.000C9BE98E7329.1.ACTUAL_TEMPERATURE</field> </block> </value> <value name="B"> <block type="get_value" id="Gdf0VEy,]~y$srv;0YpE"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.targetTemperature</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`KQV_PmZr3PamTd;#Jlr"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="}$@(Nwe*?!N.!:c([ha7"> <field name="ATTR">val</field> <field name="OID">ems-esp.0.boiler.outdoortemp</field> </block> </value> <value name="B"> <block type="math_number" id="7T|9o*52{aWpiu^ZDKke"> <field name="NUM">22</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="BSM8|E_l_@+2!({Qqd;)"> <value name="BOOL"> <block type="timeouts_gettimeout" id="YK$d+f4-F@g*jbjbcjeb"> <field name="NAME">delayOn</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="5}!7f,d/ch69i%hAy;]j"> <field name="NAME">delayOn</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="/-^(AZ5CAH`)6oub6~@$"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_negate" id="(L{Cp)S#a}n!v3yT:]RX"> <value name="BOOL"> <block type="get_value" id="}n,{.kWp`$CP,.`@F!ct"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="mL-Lt[9hFw#@7x(#}!]u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ms_X^Vk0%~@1ubhx}:q/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="w}]K|fo|=u3ocpRDvPwk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="dAw8bc]o?z0]lHnvS#bf"> <field name="TEXT">Klima WZ an</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id="9l7-2uL|zn|84/%a:-B+"> <field name="NAME">delayOn</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="CI!CgJLCI9{1~kH;RX~S"> <value name="BOOL"> <block type="get_value" id="/JMV3E@a-V@5{1JC51(1"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id=";1nuHs5Ce#F}ze-PRfI{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{6o}cM*?v0^zgUjQp]S{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="E{mLbT:vh-A${qe:o]Pk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="rR1JKFK+xq`oVZicZI-b"> <field name="TEXT">Klima SZ an</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id="y1b+Hk8KOE@l0pwdu1Mu"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="L({CaI3~T0-j;6eX*THO"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="AhD?1{:K}LKHdZ!r34={"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="Cu;Ai1_puf=(%Pbf[k8S"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="%Ml0q(DT/7ON`J_J}^ht"> <field name="NAME">delayOff</field> </block> </statement> <value name="IF1"> <block type="logic_negate" id="u}0B}tB%:N}T:=46)z*6"> <value name="BOOL"> <block type="timeouts_gettimeout" id="Lf0EOv[oU9C2wZzzB,(g"> <field name="NAME">delayOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="}r|xou0w*PR`nP12UI+l"> <field name="NAME">delayOff</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="`lFl/X=~{ATQ1p[_eP=-"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="get_value" id="(p@)Ghn.o+{4pl|kdq]5"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> <statement name="DO0"> <block type="control" id="ljmiY{+2_#=yyI(gKuaW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@AQLpyJsgg40sCZO?lgs"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="SfL|*8hs))*S,wDakm(D" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="wM*I2q,1qqJWK4vPBpw2"> <field name="TEXT">Klima SZ aus</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id=".}7zzLf$usc[VdRA/?.G"> <field name="NAME">delayOff</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="get_value" id="jzEFA2EkGR)$egE{B$iR"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> <statement name="DO1"> <block type="control" id="lk9m18P!jvPz|3VDc@qT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HTej{A~st@=blDuW~18V"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="p}W6*{^#eL`b=a(IzmQi" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="}m|4+BW.1j1Q$n:/gs5R"> <field name="TEXT">Klima WZ aus</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml> -
Hi.
Ich habe hier folgendes Blockly, dass seit Jahren eigentlich gut funktioniert.
Grundsätzlich schaltet es erst das eine, dann das andere Klimagerät dazu, wenn genug Strom erzeugt wird und umgekehrt wieder ab, wenn zu wenig Strom da ist.
Zusätzlich wird noch nach Temperatur und Jahreszeit gefiltert.
Seit kurzem habe ich den Iobroker Adapter der Klimaanlage geändert (von melcloud (also Cloudbasiert) zu Mitsubishi-Local (also lokal)). Vorher war (warum auch immer) das Verhalten so:
Ich schalte die Klimaanlage manuell ein -> das Skript reagiert erst wieder, wenn das erste mal "zu viel" Strom da war (also zum Beispiel möchte ich nachts mit Klima schlafen, aber es ist zu wenig Strom da. Erst am nächsten Tag hat er dann die Klimaanlage wieder abgeschaltet, nachdem er sie morgens nochmals angeschaltet hatte). Wie gesagt, weiß ich nicht warum das geklappt hat. Es war aber so.
Das ganze klappt jetzt nicht mehr. Wenn ich abends also die Klima manuell anschalte, schaltet das Skript die Klimaanlage nach 5 Minuten wieder aus. Wenn ich die aktivierte Klima manuell ausschalte, schaltet sie nach 5 Minuten wieder ein. Das verstehe ich , denn so ist ja das Skript :)
Jetzt würde ich das Skript aber gerne anpassen, sodass ich manuell eingreifen kann. Im Prinzip müsste also irgendwo abgefragt werden, WIE "Power" geschaltet wurde (wenn manuell geschaltet -> Skript (für das jeweilige Klimagerät) deaktiviert bis wieder manuell geschaltet). Mit welchem Blockly kann ich das machen? oder geht das nicht? Das manuelle schalten würde über verschiedene Dinge passieren (App & "Funk"Fernbedienung fallen mir ein). Also das Objekt "Power" wird "an" oder "aus" geschaltet, aber nicht durch das Skript.
Evtl kann mir sogar jemand das Skript komplett anpassen? Ich verstehe wenn ihr lieber Hilfe zur Selbsthilfe leistet und gebe auch mein Bestes, wenn ich erstmal nur einen Tipp zum entsprechenden Block bekommen würde :) Dann kommen aber bestimmt Folgefragen :(
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</variable> <variable type="timeout" id="delayOn">delayOn</variable> <variable type="timeout" id="delayOff">delayOff</variable> </variables> <block type="on_ext" id="m~lGEhr|UdRB[m(}El12" x="-488" y="-273"> <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="6{`e9717c1G/r/TC#1f/"> <field name="oid">rct.0.g_sync.p_ac_grid_sum_lp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U4gy[:M12Ajo}98t:~Q]"> <value name="IF0"> <block type="logic_operation" id="]@s9^oSexWR=f$@gI8i," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="x?r/X;5LCvk!ks6Ulp1S" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{zfAO}!U:a[sGPIe(6xL"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="+$*B;/.kjhTRTjUNxv#3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="+(Yu-GbAJ7;UMK_1l9-|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VTTRqo#*hm#|-FpLsqN2"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="WZLqX$t.s2nA-q^)Glla"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="z]6/iUr~fpgm=zn2td9g"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="M|4NL*G,x133KONW0#%:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="huWuw#NkASrZ]IDOH%bW"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">09:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="f4)jS$o}d(KK~xVw7A*c"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X]K4LUS#Z]k7k`t0AV[C"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Klimaautomatik</field> </block> </value> <value name="B"> <block type="logic_boolean" id="/,zFJO}$w%f(;c,ksR)$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Tj^dGy7YztT`f3xbdmc["> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="u^8B#/.:y6v7.N~fAN.I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2q#GI_iHy@a)S+_}GiGn"> <field name="NUM">0</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="FB}a(W@t]T}EC/nV+EH4"> <field name="NUM">1</field> </shadow> <block type="on_source" id="m@SfmXN3.}68J$zL(9B#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="snxmS]bbKOS;Qn.2L$a!"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="2^EfhswU=;rC59;PBM9p"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="JBw[AADX0)-tNm^jSnY@"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="q)7C?@sw9jMm8lQ(qdtJ"> <field name="NUM">800</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="zy+9U[e+y;R7?0vR25}y"> <field name="NAME">delayOn</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="C{v;^$_kuPG3|E#FbW,U" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_multi_and" id="T=]H]s+jgcIAU[OIwP+P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="do706++a@[6$A}bkR9Sk"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="74.`M%l4pcSKr]={]cG!"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.000C9BE98E7329.1.ACTUAL_TEMPERATURE</field> </block> </value> <value name="B"> <block type="get_value" id="Gdf0VEy,]~y$srv;0YpE"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.targetTemperature</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`KQV_PmZr3PamTd;#Jlr"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="}$@(Nwe*?!N.!:c([ha7"> <field name="ATTR">val</field> <field name="OID">ems-esp.0.boiler.outdoortemp</field> </block> </value> <value name="B"> <block type="math_number" id="7T|9o*52{aWpiu^ZDKke"> <field name="NUM">22</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="BSM8|E_l_@+2!({Qqd;)"> <value name="BOOL"> <block type="timeouts_gettimeout" id="YK$d+f4-F@g*jbjbcjeb"> <field name="NAME">delayOn</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="5}!7f,d/ch69i%hAy;]j"> <field name="NAME">delayOn</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="/-^(AZ5CAH`)6oub6~@$"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_negate" id="(L{Cp)S#a}n!v3yT:]RX"> <value name="BOOL"> <block type="get_value" id="}n,{.kWp`$CP,.`@F!ct"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="mL-Lt[9hFw#@7x(#}!]u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ms_X^Vk0%~@1ubhx}:q/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="w}]K|fo|=u3ocpRDvPwk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="dAw8bc]o?z0]lHnvS#bf"> <field name="TEXT">Klima WZ an</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id="9l7-2uL|zn|84/%a:-B+"> <field name="NAME">delayOn</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="CI!CgJLCI9{1~kH;RX~S"> <value name="BOOL"> <block type="get_value" id="/JMV3E@a-V@5{1JC51(1"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id=";1nuHs5Ce#F}ze-PRfI{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{6o}cM*?v0^zgUjQp]S{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="E{mLbT:vh-A${qe:o]Pk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="rR1JKFK+xq`oVZicZI-b"> <field name="TEXT">Klima SZ an</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id="y1b+Hk8KOE@l0pwdu1Mu"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="L({CaI3~T0-j;6eX*THO"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="AhD?1{:K}LKHdZ!r34={"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="Cu;Ai1_puf=(%Pbf[k8S"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="%Ml0q(DT/7ON`J_J}^ht"> <field name="NAME">delayOff</field> </block> </statement> <value name="IF1"> <block type="logic_negate" id="u}0B}tB%:N}T:=46)z*6"> <value name="BOOL"> <block type="timeouts_gettimeout" id="Lf0EOv[oU9C2wZzzB,(g"> <field name="NAME">delayOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="}r|xou0w*PR`nP12UI+l"> <field name="NAME">delayOff</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="`lFl/X=~{ATQ1p[_eP=-"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="get_value" id="(p@)Ghn.o+{4pl|kdq]5"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> <statement name="DO0"> <block type="control" id="ljmiY{+2_#=yyI(gKuaW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@AQLpyJsgg40sCZO?lgs"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="SfL|*8hs))*S,wDakm(D" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="wM*I2q,1qqJWK4vPBpw2"> <field name="TEXT">Klima SZ aus</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id=".}7zzLf$usc[VdRA/?.G"> <field name="NAME">delayOff</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="get_value" id="jzEFA2EkGR)$egE{B$iR"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> <statement name="DO1"> <block type="control" id="lk9m18P!jvPz|3VDc@qT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HTej{A~st@=blDuW~18V"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="p}W6*{^#eL`b=a(IzmQi" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="}m|4+BW.1j1Q$n:/gs5R"> <field name="TEXT">Klima WZ aus</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>@M-A-X [sagte]: Also das Objekt "Power" wird "an" oder "aus" geschaltet, aber nicht durch das Skript.
Vergleiche an 4 Stellen zusätzlich den Kommentar des DP "Power" mit dem Skriptnamen. Beispiel für Einschalten des 1. Klimagerätes:

Du muss dir aber noch etwas einfallen lassen, das den Kommentar wieder auf den Skriptnamen für den automatischen Betrieb zurück setzt (DP "Klimaautomatik"?).
-
@M-A-X [sagte]: Also das Objekt "Power" wird "an" oder "aus" geschaltet, aber nicht durch das Skript.
Vergleiche an 4 Stellen zusätzlich den Kommentar des DP "Power" mit dem Skriptnamen. Beispiel für Einschalten des 1. Klimagerätes:

Du muss dir aber noch etwas einfallen lassen, das den Kommentar wieder auf den Skriptnamen für den automatischen Betrieb zurück setzt (DP "Klimaautomatik"?).
Oh cool. Ich kannte beide Blöcke nicht (ich wusste noch nicht mal, dass man "Wert" umschalten kann auf etwas anderes wie "Wertkommentar".
Wenn ich die Abfrage richtig verstehe:
"Wenn das Objekt "power" durch das Skript geändert wurde, dann.." ?Du muss dir aber noch etwas einfallen lassen, das den Kommentar wieder auf den Skriptnamen für den automatischen Betrieb zurück setzt (DP "Klimaautomatik"?).
Ich hoffe auch das verstehe ich richtig: Du meinst, dass ich bei manueller RÜCK - Änderung von Power irgendwie den Wertkommentar wieder so einstellen muss, dass die Abfrage denkt, dass dieser durch mein Blockly geändert wurde?
Geht das denn? Also kann ich den Wertkommentar manuell "beschreiben"? Irgendwie würde das den Sinn des Kommentars verfehlen, oder? Oder gibt es sowas wie "Setze Wertkommentar = "Name des Skripts XYZ""?
Ich könnte im selben Skript ein zweites Blockly erstellen, dass den Trigger hat "Power wurde geändert in Aus" -> setze Power = Aus (dann müsste der Wertkommentar von Power ja der Name des Skritps sein?).
Wäre aber nur ein Umweg und nicht in jedem Fall zielführend (zum Beispiel während des Urlaubs würde ich die Klimaanlage gerne manuell abschalten so, dass sie nicht manuell einschaltet).Der DP "Klimaautomatik" ist meine derzeitig manuelle Steuerung, die ich aber nur "vor ort" ändern kann. Der DP wird umgeschaltet über einen Alexa Befehl oder über einen Taster. Ich finde es aber nervig jedesmal, wenn ich über die App die Klima an / ausschalte zum Taster zu rennen und diesen zu betätigen. Außerdem geht das nicht von unterwegs :(
-
Oh cool. Ich kannte beide Blöcke nicht (ich wusste noch nicht mal, dass man "Wert" umschalten kann auf etwas anderes wie "Wertkommentar".
Wenn ich die Abfrage richtig verstehe:
"Wenn das Objekt "power" durch das Skript geändert wurde, dann.." ?Du muss dir aber noch etwas einfallen lassen, das den Kommentar wieder auf den Skriptnamen für den automatischen Betrieb zurück setzt (DP "Klimaautomatik"?).
Ich hoffe auch das verstehe ich richtig: Du meinst, dass ich bei manueller RÜCK - Änderung von Power irgendwie den Wertkommentar wieder so einstellen muss, dass die Abfrage denkt, dass dieser durch mein Blockly geändert wurde?
Geht das denn? Also kann ich den Wertkommentar manuell "beschreiben"? Irgendwie würde das den Sinn des Kommentars verfehlen, oder? Oder gibt es sowas wie "Setze Wertkommentar = "Name des Skripts XYZ""?
Ich könnte im selben Skript ein zweites Blockly erstellen, dass den Trigger hat "Power wurde geändert in Aus" -> setze Power = Aus (dann müsste der Wertkommentar von Power ja der Name des Skritps sein?).
Wäre aber nur ein Umweg und nicht in jedem Fall zielführend (zum Beispiel während des Urlaubs würde ich die Klimaanlage gerne manuell abschalten so, dass sie nicht manuell einschaltet).Der DP "Klimaautomatik" ist meine derzeitig manuelle Steuerung, die ich aber nur "vor ort" ändern kann. Der DP wird umgeschaltet über einen Alexa Befehl oder über einen Taster. Ich finde es aber nervig jedesmal, wenn ich über die App die Klima an / ausschalte zum Taster zu rennen und diesen zu betätigen. Außerdem geht das nicht von unterwegs :(
@M-A-X [sagte]: Der DP "Klimaautomatik" ist meine derzeitig manuelle Steuerung, die ich aber nur "vor ort" ändern kann.
Wenn "Klimaautomatik" nicht für das Rücksetzen in den Automatikmodus verwendet werden kann, dann verwende Variablen manuellEin und manuellAus zum Sperren des automatischen Schaltens.

Das Beispiel zeigt nur die Ausschaltsperre bei manuellEin.
Es kann entweder nur manuellEin oder nur manuellAus gesetzt werden, da sonst das Rücksetzen in den Automatik-Modus nicht möglich wäre. -
Guten Morgen @paul53
ich habe mir das alles angeschaut und ich hoffe auch verstanden. Im Prinzip greift die manuellEin und manuellAus oben in meine Einschalt und Ausschaltschleifen ein, richtig? Ich ändere also nichts am eigentlichen Skript außer, dass ich manuellEin als Abfrage beim Ausschalten hinzufüge und manuellAus beim Einschalten Abfrage. (und ganz unten füge ich deine Setze manuellEin und manuellAus hinzu).
Nur damit ich das "setze" auch verstehe: Zum Beispiel: Das Skript setzt manuellEIn auf den Wert von Power und zwar WENN der Kommentar ungleich dem Skriptnamen ist und natürlich nicht manuellAus aktiv ist? also man muss im "Setze UND" kein "Falls" hinzufügen? Ich hoffe ihr versteht was ich meine,
Und deinen obiger Vorschlag mit dem Abfragen des Wertkommentars lasse ich komplett weg, richtig? -
Guten Morgen @paul53
ich habe mir das alles angeschaut und ich hoffe auch verstanden. Im Prinzip greift die manuellEin und manuellAus oben in meine Einschalt und Ausschaltschleifen ein, richtig? Ich ändere also nichts am eigentlichen Skript außer, dass ich manuellEin als Abfrage beim Ausschalten hinzufüge und manuellAus beim Einschalten Abfrage. (und ganz unten füge ich deine Setze manuellEin und manuellAus hinzu).
Nur damit ich das "setze" auch verstehe: Zum Beispiel: Das Skript setzt manuellEIn auf den Wert von Power und zwar WENN der Kommentar ungleich dem Skriptnamen ist und natürlich nicht manuellAus aktiv ist? also man muss im "Setze UND" kein "Falls" hinzufügen? Ich hoffe ihr versteht was ich meine,
Und deinen obiger Vorschlag mit dem Abfragen des Wertkommentars lasse ich komplett weg, richtig? -
man muss im "Setze UND" kein "Falls" hinzufügen?
Man muss die Variablen auch wieder zurück setzen können.
Sorry für meine Begriffsstutzigkeit. Mit meiner Frage meinte ich:
Der Block heißt:Setze ManuellEin auf "Wert" UND "Kommentar des letzten Zustands ungleich Name des Skripts" UND "nicht ManuellAus".
Das heißt aber nicht, dass der Wert von ManuellEin die Informationen aus "Wert" "Kommentar des letzen Zustands..." UND "nicht ManuellAus" enthält, sondern dass ManuellEin den "Wert von Power" erhält FALLS "Kommentar des letzten Zustands ungeich Name des Skripts" UND "nicht ManuellAus"? Das heißt man kann im Setze Block ein Falls einbauen, ohne dort einen Falls Block benutzen zu müssen? Und ist es immer so, dass nur die erste Zeile beim Setze Block dann gesetzt wird, also alle weiteren UND / ODER sind reine FALLS Abfragen?Hier dann mein (bzw dein <3 )fertiges Blockly:

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</variable> <variable id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</variable> <variable id="(zO_0x;I^XeK3l!19c?d">manuellEin</variable> <variable type="timeout" id="delayOn">delayOn</variable> <variable id="/_y`mLT};=rkXlze![Wd">manuellAus</variable> <variable type="timeout" id="delayOff">delayOff</variable> </variables> <block type="on_ext" id="m~lGEhr|UdRB[m(}El12" x="-488" y="-273"> <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="6{`e9717c1G/r/TC#1f/"> <field name="oid">rct.0.g_sync.p_ac_grid_sum_lp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U4gy[:M12Ajo}98t:~Q]"> <value name="IF0"> <block type="logic_operation" id="]@s9^oSexWR=f$@gI8i," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="x?r/X;5LCvk!ks6Ulp1S" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{zfAO}!U:a[sGPIe(6xL"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="+$*B;/.kjhTRTjUNxv#3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="+(Yu-GbAJ7;UMK_1l9-|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VTTRqo#*hm#|-FpLsqN2"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="WZLqX$t.s2nA-q^)Glla"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="z]6/iUr~fpgm=zn2td9g"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="M|4NL*G,x133KONW0#%:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="huWuw#NkASrZ]IDOH%bW"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">09:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="f4)jS$o}d(KK~xVw7A*c"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X]K4LUS#Z]k7k`t0AV[C"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Klimaautomatik</field> </block> </value> <value name="B"> <block type="logic_boolean" id="/,zFJO}$w%f(;c,ksR)$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Tj^dGy7YztT`f3xbdmc["> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="u^8B#/.:y6v7.N~fAN.I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2q#GI_iHy@a)S+_}GiGn"> <field name="NUM">0</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="FB}a(W@t]T}EC/nV+EH4"> <field name="NUM">1</field> </shadow> <block type="on_source" id="m@SfmXN3.}68J$zL(9B#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="snxmS]bbKOS;Qn.2L$a!"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="2^EfhswU=;rC59;PBM9p"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="JBw[AADX0)-tNm^jSnY@"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="q)7C?@sw9jMm8lQ(qdtJ"> <field name="NUM">800</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="zy+9U[e+y;R7?0vR25}y"> <field name="NAME">delayOn</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="T=]H]s+jgcIAU[OIwP+P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation> <value name="AND0"> <block type="logic_compare" id="do706++a@[6$A}bkR9Sk"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="74.`M%l4pcSKr]={]cG!"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.000C9BE98E7329.1.ACTUAL_TEMPERATURE</field> </block> </value> <value name="B"> <block type="get_value" id="Gdf0VEy,]~y$srv;0YpE"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.targetTemperature</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`KQV_PmZr3PamTd;#Jlr"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="}$@(Nwe*?!N.!:c([ha7"> <field name="ATTR">val</field> <field name="OID">ems-esp.0.boiler.outdoortemp</field> </block> </value> <value name="B"> <block type="math_number" id="7T|9o*52{aWpiu^ZDKke"> <field name="NUM">22</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="BSM8|E_l_@+2!({Qqd;)"> <value name="BOOL"> <block type="timeouts_gettimeout" id="YK$d+f4-F@g*jbjbcjeb"> <field name="NAME">delayOn</field> </block> </value> </block> </value> <value name="AND3"> <block type="logic_negate" id="@2z4mJnH+f@H7uF{X2=i"> <value name="BOOL"> <block type="variables_get" id="eg|pA.Z!gK%l7p.z3`jU"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="5}!7f,d/ch69i%hAy;]j"> <field name="NAME">delayOn</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="/-^(AZ5CAH`)6oub6~@$"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_negate" id="(L{Cp)S#a}n!v3yT:]RX"> <value name="BOOL"> <block type="get_value" id="}n,{.kWp`$CP,.`@F!ct"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="mL-Lt[9hFw#@7x(#}!]u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ms_X^Vk0%~@1ubhx}:q/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="w}]K|fo|=u3ocpRDvPwk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="dAw8bc]o?z0]lHnvS#bf"> <field name="TEXT">Klima WZ an</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id="9l7-2uL|zn|84/%a:-B+"> <field name="NAME">delayOn</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="CI!CgJLCI9{1~kH;RX~S"> <value name="BOOL"> <block type="get_value" id="/JMV3E@a-V@5{1JC51(1"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id=";1nuHs5Ce#F}ze-PRfI{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{6o}cM*?v0^zgUjQp]S{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="E{mLbT:vh-A${qe:o]Pk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="rR1JKFK+xq`oVZicZI-b"> <field name="TEXT">Klima SZ an</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id="y1b+Hk8KOE@l0pwdu1Mu"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="L({CaI3~T0-j;6eX*THO"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="AhD?1{:K}LKHdZ!r34={"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="Cu;Ai1_puf=(%Pbf[k8S"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="%Ml0q(DT/7ON`J_J}^ht"> <field name="NAME">delayOff</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="R~RBbY{-)8hOP?Dp.YQ*"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_negate" id="`wgoy~hHqC/+DwYFg1w_"> <value name="BOOL"> <block type="variables_get" id="Xg*S!G~9l(M`:z`2=K9A"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_negate" id="u}0B}tB%:N}T:=46)z*6"> <value name="BOOL"> <block type="timeouts_gettimeout" id="Lf0EOv[oU9C2wZzzB,(g"> <field name="NAME">delayOff</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="}r|xou0w*PR`nP12UI+l"> <field name="NAME">delayOff</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="`lFl/X=~{ATQ1p[_eP=-"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="get_value" id="(p@)Ghn.o+{4pl|kdq]5"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> <statement name="DO0"> <block type="control" id="ljmiY{+2_#=yyI(gKuaW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@AQLpyJsgg40sCZO?lgs"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="SfL|*8hs))*S,wDakm(D" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="wM*I2q,1qqJWK4vPBpw2"> <field name="TEXT">Klima SZ aus</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id=".}7zzLf$usc[VdRA/?.G"> <field name="NAME">delayOff</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="get_value" id="jzEFA2EkGR)$egE{B$iR"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> <statement name="DO1"> <block type="control" id="lk9m18P!jvPz|3VDc@qT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HTej{A~st@=blDuW~18V"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="p}W6*{^#eL`b=a(IzmQi" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="}m|4+BW.1j1Q$n:/gs5R"> <field name="TEXT">Klima WZ aus</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on_ext" id="MyCJz8-U!QG!_F13)AZ%"> <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="dZkX(6,F;Sowyjl:_:Y;"> <field name="oid">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id=":q]_(IT0j0#P~HT6w5nN"> <field name="oid">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="=4_noSyT5?Fqa)J-v$Ta"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> <value name="VALUE"> <block type="variables_get" id="P5]BVs_WRgQqi{u|.)U="> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <next> <block type="variables_set" id="bTz5TMR|_-sFxSK8|B)G"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> <value name="VALUE"> <block type="logic_multi_and" id="T?S_y!]%$^_~x`T8zZcs"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="on_source" id="o[HChukX`Lza9!Tz(SL;"> <field name="ATTR">state.val</field> </block> </value> <value name="AND1"> <block type="logic_compare" id="t*eXaQ3KWWUOYwze~g.O"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="GvdrG_NE+fGel9`RlSF;"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id="QJ;zGb6yh%vhyex|)T0d"> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="]p3vf=rb^@#%ivRS-cts"> <value name="BOOL"> <block type="variables_get" id="$_]/rmC(WN5B5JU$uCM@"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="{b.hn,x^?#0bV4v9*?p{"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> <value name="VALUE"> <block type="logic_multi_and" id="nDmk,=lTF|AU|z|K!?F%"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="logic_negate" id="RS`TaJl2hw98N2(*)8;d"> <value name="BOOL"> <block type="on_source" id="M9tgkZ(mB0BE=YB]NxoB"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="?IDXh$XpYWa#_N]aKA2+"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="P^.CRd8|W{ktbFMecLU!"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id=".72|B^f_xza]6U]N)ix("> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="t3:/E:Ur$H0FuHW,-HKR"> <value name="BOOL"> <block type="variables_get" id="3XqrrK{R;j)b9#}8PW,m"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="}Dr?;Cj)B/bN%Z`[qHQ1"> <value name="IF0"> <block type="variables_get" id="c7A,9,#DOcX[==OBupjM"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="(?~:E]gPLoJNJUQ+-ooQ"> <field name="NAME">delayOff</field> </block> </statement> <next> <block type="controls_if" id="ddF~{/(*)x00n_q~|]:e"> <value name="IF0"> <block type="variables_get" id="a)qEyi%C/4IHS$xk+a,z"> <field name="VAR" id="/_y`mLT};=rkXlze
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</variable> <variable id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</variable> <variable id="(zO_0x;I^XeK3l!19c?d">manuellEin</variable> <variable type="timeout" id="delayOn">delayOn</variable> <variable id="/_y`mLT};=rkXlze![Wd">manuellAus</variable> <variable type="timeout" id="delayOff">delayOff</variable> </variables> <block type="on_ext" id="m~lGEhr|UdRB[m(}El12" x="-488" y="-273"> <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="6{`e9717c1G/r/TC#1f/"> <field name="oid">rct.0.g_sync.p_ac_grid_sum_lp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U4gy[:M12Ajo}98t:~Q]"> <value name="IF0"> <block type="logic_operation" id="]@s9^oSexWR=f$@gI8i," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="x?r/X;5LCvk!ks6Ulp1S" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{zfAO}!U:a[sGPIe(6xL"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="+$*B;/.kjhTRTjUNxv#3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="+(Yu-GbAJ7;UMK_1l9-|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VTTRqo#*hm#|-FpLsqN2"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="WZLqX$t.s2nA-q^)Glla"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="z]6/iUr~fpgm=zn2td9g"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="M|4NL*G,x133KONW0#%:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="huWuw#NkASrZ]IDOH%bW"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">09:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="f4)jS$o}d(KK~xVw7A*c"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X]K4LUS#Z]k7k`t0AV[C"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Klimaautomatik</field> </block> </value> <value name="B"> <block type="logic_boolean" id="/,zFJO}$w%f(;c,ksR)$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Tj^dGy7YztT`f3xbdmc["> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="u^8B#/.:y6v7.N~fAN.I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2q#GI_iHy@a)S+_}GiGn"> <field name="NUM">0</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="FB}a(W@t]T}EC/nV+EH4"> <field name="NUM">1</field> </shadow> <block type="on_source" id="m@SfmXN3.}68J$zL(9B#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="snxmS]bbKOS;Qn.2L$a!"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="2^EfhswU=;rC59;PBM9p"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="JBw[AADX0)-tNm^jSnY@"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="q)7C?@sw9jMm8lQ(qdtJ"> <field name="NUM">800</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="zy+9U[e+y;R7?0vR25}y"> <field name="NAME">delayOn</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="T=]H]s+jgcIAU[OIwP+P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation> <value name="AND0"> <block type="logic_compare" id="do706++a@[6$A}bkR9Sk"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="74.`M%l4pcSKr]={]cG!"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.000C9BE98E7329.1.ACTUAL_TEMPERATURE</field> </block> </value> <value name="B"> <block type="get_value" id="Gdf0VEy,]~y$srv;0YpE"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.targetTemperature</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`KQV_PmZr3PamTd;#Jlr"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="}$@(Nwe*?!N.!:c([ha7"> <field name="ATTR">val</field> <field name="OID">ems-esp.0.boiler.outdoortemp</field> </block> </value> <value name="B"> <block type="math_number" id="7T|9o*52{aWpiu^ZDKke"> <field name="NUM">22</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="BSM8|E_l_@+2!({Qqd;)"> <value name="BOOL"> <block type="timeouts_gettimeout" id="YK$d+f4-F@g*jbjbcjeb"> <field name="NAME">delayOn</field> </block> </value> </block> </value> <value name="AND3"> <block type="logic_negate" id="@2z4mJnH+f@H7uF{X2=i"> <value name="BOOL"> <block type="variables_get" id="eg|pA.Z!gK%l7p.z3`jU"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="5}!7f,d/ch69i%hAy;]j"> <field name="NAME">delayOn</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="/-^(AZ5CAH`)6oub6~@$"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_negate" id="(L{Cp)S#a}n!v3yT:]RX"> <value name="BOOL"> <block type="get_value" id="}n,{.kWp`$CP,.`@F!ct"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="mL-Lt[9hFw#@7x(#}!]u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ms_X^Vk0%~@1ubhx}:q/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="w}]K|fo|=u3ocpRDvPwk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="dAw8bc]o?z0]lHnvS#bf"> <field name="TEXT">Klima WZ an</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id="9l7-2uL|zn|84/%a:-B+"> <field name="NAME">delayOn</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="CI!CgJLCI9{1~kH;RX~S"> <value name="BOOL"> <block type="get_value" id="/JMV3E@a-V@5{1JC51(1"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id=";1nuHs5Ce#F}ze-PRfI{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{6o}cM*?v0^zgUjQp]S{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="E{mLbT:vh-A${qe:o]Pk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="rR1JKFK+xq`oVZicZI-b"> <field name="TEXT">Klima SZ an</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id="y1b+Hk8KOE@l0pwdu1Mu"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="L({CaI3~T0-j;6eX*THO"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="AhD?1{:K}LKHdZ!r34={"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="Cu;Ai1_puf=(%Pbf[k8S"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="%Ml0q(DT/7ON`J_J}^ht"> <field name="NAME">delayOff</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="R~RBbY{-)8hOP?Dp.YQ*"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_negate" id="`wgoy~hHqC/+DwYFg1w_"> <value name="BOOL"> <block type="variables_get" id="Xg*S!G~9l(M`:z`2=K9A"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_negate" id="u}0B}tB%:N}T:=46)z*6"> <value name="BOOL"> <block type="timeouts_gettimeout" id="Lf0EOv[oU9C2wZzzB,(g"> <field name="NAME">delayOff</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="}r|xou0w*PR`nP12UI+l"> <field name="NAME">delayOff</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="`lFl/X=~{ATQ1p[_eP=-"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="get_value" id="(p@)Ghn.o+{4pl|kdq]5"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> <statement name="DO0"> <block type="control" id="ljmiY{+2_#=yyI(gKuaW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@AQLpyJsgg40sCZO?lgs"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="SfL|*8hs))*S,wDakm(D" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="wM*I2q,1qqJWK4vPBpw2"> <field name="TEXT">Klima SZ aus</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id=".}7zzLf$usc[VdRA/?.G"> <field name="NAME">delayOff</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="get_value" id="jzEFA2EkGR)$egE{B$iR"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> <statement name="DO1"> <block type="control" id="lk9m18P!jvPz|3VDc@qT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HTej{A~st@=blDuW~18V"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="p}W6*{^#eL`b=a(IzmQi" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="}m|4+BW.1j1Q$n:/gs5R"> <field name="TEXT">Klima WZ aus</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on_ext" id="MyCJz8-U!QG!_F13)AZ%"> <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="dZkX(6,F;Sowyjl:_:Y;"> <field name="oid">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id=":q]_(IT0j0#P~HT6w5nN"> <field name="oid">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="=4_noSyT5?Fqa)J-v$Ta"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> <value name="VALUE"> <block type="variables_get" id="P5]BVs_WRgQqi{u|.)U="> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <next> <block type="variables_set" id="bTz5TMR|_-sFxSK8|B)G"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> <value name="VALUE"> <block type="logic_multi_and" id="T?S_y!]%$^_~x`T8zZcs"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="on_source" id="o[HChukX`Lza9!Tz(SL;"> <field name="ATTR">state.val</field> </block> </value> <value name="AND1"> <block type="logic_compare" id="t*eXaQ3KWWUOYwze~g.O"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="GvdrG_NE+fGel9`RlSF;"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id="QJ;zGb6yh%vhyex|)T0d"> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="]p3vf=rb^@#%ivRS-cts"> <value name="BOOL"> <block type="variables_get" id="$_]/rmC(WN5B5JU$uCM@"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="{b.hn,x^?#0bV4v9*?p{"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> <value name="VALUE"> <block type="logic_multi_and" id="nDmk,=lTF|AU|z|K!?F%"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="logic_negate" id="RS`TaJl2hw98N2(*)8;d"> <value name="BOOL"> <block type="on_source" id="M9tgkZ(mB0BE=YB]NxoB"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="?IDXh$XpYWa#_N]aKA2+"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="P^.CRd8|W{ktbFMecLU!"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id=".72|B^f_xza]6U]N)ix("> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="t3:/E:Ur$H0FuHW,-HKR"> <value name="BOOL"> <block type="variables_get" id="3XqrrK{R;j)b9#}8PW,m"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="}Dr?;Cj)B/bN%Z`[qHQ1"> <value name="IF0"> <block type="variables_get" id="c7A,9,#DOcX[==OBupjM"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="(?~:E]gPLoJNJUQ+-ooQ"> <field name="NAME">delayOff</field> </block> </statement> <next> <block type="controls_if" id="ddF~{/(*)x00n_q~|]:e"> <value name="IF0"> <block type="variables_get" id="a)qEyi%C/4IHS$xk+a,z"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="$AgD09I#3i0sI9{c~yA="> <field name="NAME">delayOn</field> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>@M-A-X [sagte]: man kann im Setze Block ein Falls einbauen, ohne dort einen Falls Block benutzen zu müssen?
Es ist kein "falls" eingebaut, sondern es ist eine UND-Verknüpfung von 3 booleschen Werten / Ausdrücken. Das Ergebnis wird direkt in die boolesche Variable manuellEin geschrieben.
-
man muss im "Setze UND" kein "Falls" hinzufügen?
Man muss die Variablen auch wieder zurück setzen können.
Sorry für meine Begriffsstutzigkeit. Mit meiner Frage meinte ich:
Der Block heißt:Setze ManuellEin auf "Wert" UND "Kommentar des letzten Zustands ungleich Name des Skripts" UND "nicht ManuellAus".
Das heißt aber nicht, dass der Wert von ManuellEin die Informationen aus "Wert" "Kommentar des letzen Zustands..." UND "nicht ManuellAus" enthält, sondern dass ManuellEin den "Wert von Power" erhält FALLS "Kommentar des letzten Zustands ungeich Name des Skripts" UND "nicht ManuellAus"? Das heißt man kann im Setze Block ein Falls einbauen, ohne dort einen Falls Block benutzen zu müssen? Und ist es immer so, dass nur die erste Zeile beim Setze Block dann gesetzt wird, also alle weiteren UND / ODER sind reine FALLS Abfragen?Hier dann mein (bzw dein <3 )fertiges Blockly:

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</variable> <variable id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</variable> <variable id="(zO_0x;I^XeK3l!19c?d">manuellEin</variable> <variable type="timeout" id="delayOn">delayOn</variable> <variable id="/_y`mLT};=rkXlze![Wd">manuellAus</variable> <variable type="timeout" id="delayOff">delayOff</variable> </variables> <block type="on_ext" id="m~lGEhr|UdRB[m(}El12" x="-488" y="-273"> <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="6{`e9717c1G/r/TC#1f/"> <field name="oid">rct.0.g_sync.p_ac_grid_sum_lp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="U4gy[:M12Ajo}98t:~Q]"> <value name="IF0"> <block type="logic_operation" id="]@s9^oSexWR=f$@gI8i," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="x?r/X;5LCvk!ks6Ulp1S" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{zfAO}!U:a[sGPIe(6xL"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="+$*B;/.kjhTRTjUNxv#3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="+(Yu-GbAJ7;UMK_1l9-|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VTTRqo#*hm#|-FpLsqN2"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="WZLqX$t.s2nA-q^)Glla"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="z]6/iUr~fpgm=zn2td9g"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="M|4NL*G,x133KONW0#%:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="huWuw#NkASrZ]IDOH%bW"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">09:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="f4)jS$o}d(KK~xVw7A*c"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X]K4LUS#Z]k7k`t0AV[C"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Klimaautomatik</field> </block> </value> <value name="B"> <block type="logic_boolean" id="/,zFJO}$w%f(;c,ksR)$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Tj^dGy7YztT`f3xbdmc["> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="u^8B#/.:y6v7.N~fAN.I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2q#GI_iHy@a)S+_}GiGn"> <field name="NUM">0</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="FB}a(W@t]T}EC/nV+EH4"> <field name="NUM">1</field> </shadow> <block type="on_source" id="m@SfmXN3.}68J$zL(9B#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="snxmS]bbKOS;Qn.2L$a!"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="2^EfhswU=;rC59;PBM9p"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="JBw[AADX0)-tNm^jSnY@"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="q)7C?@sw9jMm8lQ(qdtJ"> <field name="NUM">800</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="zy+9U[e+y;R7?0vR25}y"> <field name="NAME">delayOn</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="T=]H]s+jgcIAU[OIwP+P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation> <value name="AND0"> <block type="logic_compare" id="do706++a@[6$A}bkR9Sk"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="74.`M%l4pcSKr]={]cG!"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.000C9BE98E7329.1.ACTUAL_TEMPERATURE</field> </block> </value> <value name="B"> <block type="get_value" id="Gdf0VEy,]~y$srv;0YpE"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.targetTemperature</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`KQV_PmZr3PamTd;#Jlr"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="}$@(Nwe*?!N.!:c([ha7"> <field name="ATTR">val</field> <field name="OID">ems-esp.0.boiler.outdoortemp</field> </block> </value> <value name="B"> <block type="math_number" id="7T|9o*52{aWpiu^ZDKke"> <field name="NUM">22</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="BSM8|E_l_@+2!({Qqd;)"> <value name="BOOL"> <block type="timeouts_gettimeout" id="YK$d+f4-F@g*jbjbcjeb"> <field name="NAME">delayOn</field> </block> </value> </block> </value> <value name="AND3"> <block type="logic_negate" id="@2z4mJnH+f@H7uF{X2=i"> <value name="BOOL"> <block type="variables_get" id="eg|pA.Z!gK%l7p.z3`jU"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="5}!7f,d/ch69i%hAy;]j"> <field name="NAME">delayOn</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="/-^(AZ5CAH`)6oub6~@$"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_negate" id="(L{Cp)S#a}n!v3yT:]RX"> <value name="BOOL"> <block type="get_value" id="}n,{.kWp`$CP,.`@F!ct"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="mL-Lt[9hFw#@7x(#}!]u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ms_X^Vk0%~@1ubhx}:q/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="w}]K|fo|=u3ocpRDvPwk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="dAw8bc]o?z0]lHnvS#bf"> <field name="TEXT">Klima WZ an</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id="9l7-2uL|zn|84/%a:-B+"> <field name="NAME">delayOn</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="CI!CgJLCI9{1~kH;RX~S"> <value name="BOOL"> <block type="get_value" id="/JMV3E@a-V@5{1JC51(1"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id=";1nuHs5Ce#F}ze-PRfI{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{6o}cM*?v0^zgUjQp]S{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="telegram" id="E{mLbT:vh-A${qe:o]Pk" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="rR1JKFK+xq`oVZicZI-b"> <field name="TEXT">Klima SZ an</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id="y1b+Hk8KOE@l0pwdu1Mu"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="L({CaI3~T0-j;6eX*THO"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="AhD?1{:K}LKHdZ!r34={"> <field name="VAR" id="Vs7Z.?JEp/HPBM;B2y%?">einspeisung</field> </block> </value> <value name="B"> <block type="math_number" id="Cu;Ai1_puf=(%Pbf[k8S"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="%Ml0q(DT/7ON`J_J}^ht"> <field name="NAME">delayOff</field> </block> </statement> <value name="IF1"> <block type="logic_multi_and" id="R~RBbY{-)8hOP?Dp.YQ*"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_negate" id="`wgoy~hHqC/+DwYFg1w_"> <value name="BOOL"> <block type="variables_get" id="Xg*S!G~9l(M`:z`2=K9A"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_negate" id="u}0B}tB%:N}T:=46)z*6"> <value name="BOOL"> <block type="timeouts_gettimeout" id="Lf0EOv[oU9C2wZzzB,(g"> <field name="NAME">delayOff</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="}r|xou0w*PR`nP12UI+l"> <field name="NAME">delayOff</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="`lFl/X=~{ATQ1p[_eP=-"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="get_value" id="(p@)Ghn.o+{4pl|kdq]5"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </block> </value> <statement name="DO0"> <block type="control" id="ljmiY{+2_#=yyI(gKuaW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@AQLpyJsgg40sCZO?lgs"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="SfL|*8hs))*S,wDakm(D" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="wM*I2q,1qqJWK4vPBpw2"> <field name="TEXT">Klima SZ aus</field> </shadow> </value> <next> <block type="timeouts_cleartimeout" id=".}7zzLf$usc[VdRA/?.G"> <field name="NAME">delayOff</field> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="get_value" id="jzEFA2EkGR)$egE{B$iR"> <field name="ATTR">val</field> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </block> </value> <statement name="DO1"> <block type="control" id="lk9m18P!jvPz|3VDc@qT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HTej{A~st@=blDuW~18V"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="p}W6*{^#eL`b=a(IzmQi" collapsed="true"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="}m|4+BW.1j1Q$n:/gs5R"> <field name="TEXT">Klima WZ aus</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on_ext" id="MyCJz8-U!QG!_F13)AZ%"> <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="dZkX(6,F;Sowyjl:_:Y;"> <field name="oid">mitsubishi-local-control.0.devices.7061be6b4450.control.power</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id=":q]_(IT0j0#P~HT6w5nN"> <field name="oid">mitsubishi-local-control.0.devices.7061be57d594.control.power</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="=4_noSyT5?Fqa)J-v$Ta"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> <value name="VALUE"> <block type="variables_get" id="P5]BVs_WRgQqi{u|.)U="> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <next> <block type="variables_set" id="bTz5TMR|_-sFxSK8|B)G"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> <value name="VALUE"> <block type="logic_multi_and" id="T?S_y!]%$^_~x`T8zZcs"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="on_source" id="o[HChukX`Lza9!Tz(SL;"> <field name="ATTR">state.val</field> </block> </value> <value name="AND1"> <block type="logic_compare" id="t*eXaQ3KWWUOYwze~g.O"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="GvdrG_NE+fGel9`RlSF;"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id="QJ;zGb6yh%vhyex|)T0d"> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="]p3vf=rb^@#%ivRS-cts"> <value name="BOOL"> <block type="variables_get" id="$_]/rmC(WN5B5JU$uCM@"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="{b.hn,x^?#0bV4v9*?p{"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> <value name="VALUE"> <block type="logic_multi_and" id="nDmk,=lTF|AU|z|K!?F%"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="AND0"> <block type="logic_negate" id="RS`TaJl2hw98N2(*)8;d"> <value name="BOOL"> <block type="on_source" id="M9tgkZ(mB0BE=YB]NxoB"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="?IDXh$XpYWa#_N]aKA2+"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="P^.CRd8|W{ktbFMecLU!"> <field name="ATTR">state.c</field> </block> </value> <value name="B"> <block type="global_var" id=".72|B^f_xza]6U]N)ix("> <field name="VAR">scriptName</field> </block> </value> </block> </value> <value name="AND2"> <block type="logic_negate" id="t3:/E:Ur$H0FuHW,-HKR"> <value name="BOOL"> <block type="variables_get" id="3XqrrK{R;j)b9#}8PW,m"> <field name="VAR" id="/uEJ)wXS~!-B;`b[aW#r">letztesManuellEIn</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="}Dr?;Cj)B/bN%Z`[qHQ1"> <value name="IF0"> <block type="variables_get" id="c7A,9,#DOcX[==OBupjM"> <field name="VAR" id="(zO_0x;I^XeK3l!19c?d">manuellEin</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="(?~:E]gPLoJNJUQ+-ooQ"> <field name="NAME">delayOff</field> </block> </statement> <next> <block type="controls_if" id="ddF~{/(*)x00n_q~|]:e"> <value name="IF0"> <block type="variables_get" id="a)qEyi%C/4IHS$xk+a,z"> <field name="VAR" id="/_y`mLT};=rkXlze![Wd">manuellAus</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="$AgD09I#3i0sI9{c~yA="> <field name="NAME">delayOn</field> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml> -
@M-A-X [sagte]: man kann im Setze Block ein Falls einbauen, ohne dort einen Falls Block benutzen zu müssen?
Es ist kein "falls" eingebaut, sondern es ist eine UND-Verknüpfung von 3 booleschen Werten / Ausdrücken. Das Ergebnis wird direkt in die boolesche Variable manuellEin geschrieben.
@M-A-X [sagte]: man kann im Setze Block ein Falls einbauen, ohne dort einen Falls Block benutzen zu müssen?
Es ist kein "falls" eingebaut, sondern es ist eine UND-Verknüpfung von 3 booleschen Werten / Ausdrücken. Das Ergebnis wird direkt in die boolesche Variable manuellEin geschrieben.
Top. Danke dir (mal wieder) für deine Hilfe. Musste nochmal googlen wie das mit der logischen UND Verknüpfung funktioniert aber habe es jetzt verstanden :) wieder was gelernt.
Für die, die es interessiert und es nicht auf Anhieb verstehen (so wie ich): nur wenn alle drei Werte wahr (1) sind, wird manuellEin auf wahr (1) gesetzt.
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden