NEWS
[gelöst] Blockly: Temperatur in Variable schreiben
-
Die eingestellte Temperatur wird korrekt in die Varaible geschrieben.
Der Fehler muss also irgendwie beim Anschalten sein. `
Dann lass Dir doch mal den Wert von "heizung_schlafzimmer" ausgeben.Vielleicht kommt da keine "1".
Klappt denn "boost"? `
Der Wert ist 0 bzw. 1 vom Typ Number. Passt also.
Der Boost ufnktioniert einwandfrei.
Ich habe jetzt nochmal ein wenig Output Bausteine eingefügt:
Ausschalten:
Log:script.js.smarthome.heizung.heizung_schlafzimmer_v0_1: Temperatur Schlafzimmer: 19
Anschalten:
Log:
script.js.smarthome.heizung.heizung_schlafzimmer_v0_1: Temperatur Schlafzimmer: 12
-
Ist Dein erster Screenshot das komplette Blockly?
Stell doch mal einen Export hier rein.
-
Hier einmal mein komplettes BLockly Skript bzgl. der Heizungssteuerung im Schlafzimmer:
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="i9(@[xS#IG[*3d]XrnS=" x="-212" y="124"><field name="COMMENT">Modus: Aus, An, Boost</field>
<next><block type="on_ext" id="(wB-qsZgi3,jX4.4ebq^"><mutation items="1"></mutation>
<field name="CONDITION">ne</field><value name="OID0"><shadow type="field_oid" id="wsDalFUuAB`XPE#!3/e9"><field name="oid">javascript.0.heizung.heizung_schlafzimmer</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="[KQNn!zQxlY_14]?V,aQ"><field name="COMMENT">Heizung ausschalten</field> <next><block type="controls_if" id="z|b%Wc4=B~VN+j}8sPjA"><value name="IF0"><block type="logic_compare" id="7Nr!6=3tt=l7PZWgzD#]"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="V1#YSgz0P0Wh:|e!Fx!t"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="XokHuMAWg/r9XTaw0V|v"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="G8b`i_sF0P`x7U@]O)xw"><field name="VAR">TemperaturSchlafzimmer</field> <value name="VALUE"><block type="get_value" id="zbAZexJ:}]?aNz5j*u2y"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="debug" id="s@k2O(W(8yjfTx}{f~qq"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="(Ye`XpxwdY}/;9.fYn7~"><field name="TEXT">test</field></shadow> <block type="text_join" id="nB?5{h=pFF2O)B@)tupP"><mutation items="2"></mutation> <value name="ADD0"><block type="text" id=";n_XwNFSLzCzwZ:VSX4A"><field name="TEXT">Temperatur Schlafzimmer:</field></block></value> <value name="ADD1"><block type="variables_get" id="Qz3T/plDvNaHfh=1UXoB"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></value> <next><block type="control" id="aq~_d8?nKy#`pnlNwTXN"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="8Tp1yn_m@?T;18eS[!:Z"><field name="NUM">12</field></block></value></block></next></block></next></block></statement> <next><block type="comment" id="(*:_g5KA9qn`=G17_E]h"><field name="COMMENT">Heizung anschalten</field> <next><block type="controls_if" id="!/r@jW_z6Fau,])x+T2S"><value name="IF0"><block type="logic_compare" id="mVq;g]8#yJ{;xMz6kc|{"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="dBpxPawBWN,|p.%t|:`S"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="ghqftW(h|9K-aG/uz]Eo"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="debug" id="0*:Lk{3eiwCKaKh:WVZp"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="(Ye`XpxwdY}/;9.fYn7~"><field name="TEXT">test</field></shadow> <block type="text_join" id="gSv.N{Lly(|lb3x+.zQx"><mutation items="2"></mutation> <value name="ADD0"><block type="text" id="pZ_VqsRoo*AraqUV~2:d"><field name="TEXT">Temperatur Schlafzimmer:</field></block></value> <value name="ADD1"><block type="variables_get" id="Jh6^gy6_5JhpwFs=*d6p"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></value> <next><block type="control" id="MaAsN(+=#Fg)z-CaR1R9"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="variables_get" id="]nxBkz9AC:njI6PVA`?k"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></next></block></statement> <next><block type="comment" id="LmgJ+}ep|Cos`80R(qCq"><field name="COMMENT">Boost Modus</field> <next><block type="controls_if" id="X,M`OEoL-]b?.^stU`3a"><value name="IF0"><block type="logic_compare" id="#IrbYVV%z]%,THJSfwcT"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="P[sT~,=)4zU,xB^8DF{p"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="m.aWC,upeq:j1+I*89}9"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="controls_if" id="1Ust{QK{M/t+8()tKVZ5"><value name="IF0"><block type="logic_compare" id="GB?n+;Q^UU8VDh1fuM(Q"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="A)d+Z5/0jxy`F5!,`NSe"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_STATE</field></block></value> <value name="B"><block type="math_number" id="#/.tF*2@]zi(R%U[=Hn6"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="@wK*rO|C~C8[AQ!^J9@}"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="mXz2~Rc,r4FBFI3L[exm"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="timeouts_settimeout" id="suN[a3M?n4zCHc}+al7l"><field name="NAME">Wait</field> <field name="DELAY">15</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="control" id="lNy`R;I5@ss,J=@GGsrS"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="-eUgmB;;3-Ip.7]GwdFw"><field name="NUM">1</field></block></value></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>
! ````
Zum Test habe ich die Variablen gegen einen Datenpunkt ausgetauscht. Wird die Temperatur in einen Datenpunkt geschrieben, funtkioniert das Skript.
-
Hmm, was soll ich sagen?
Bei läuft es einwandfrei mit der lokalen Variablen.
Deshalb meine Frage, ist das das komplette Blockly?
Da muss bei Dir noch etwas anderes sein.
Lokale Variablen gelten im gesamten Script. Nicht nur innerhalb des Triggers.
-
Hmm, was soll ich sagen?
Bei läuft es einwandfrei mit der lokalen Variablen.
Deshalb meine Frage, ist das das komplette Blockly?
Da muss bei Dir noch etwas anderes sein.
Lokale Variablen gelten im gesamten Script. Nicht nur innerhalb des Triggers. `
Ich habe noch eine Lüftugssteuerung im selben Skript in Verbindung mit dem HM Dregriffkontakt.
Hier das komplette Skript für das Schlazimmer
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="i9(@[xS#IG[*3d]XrnS=" x="-212" y="124"><field name="COMMENT">Modus: Aus, An, Boost</field>
<next><block type="on_ext" id="(wB-qsZgi3,jX4.4ebq^"><mutation items="1"></mutation>
<field name="CONDITION">ne</field><value name="OID0"><shadow type="field_oid" id="wsDalFUuAB`XPE#!3/e9"><field name="oid">javascript.0.heizung.heizung_schlafzimmer</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="[KQNn!zQxlY_14]?V,aQ"><field name="COMMENT">Heizung ausschalten</field> <next><block type="controls_if" id="z|b%Wc4=B~VN+j}8sPjA"><value name="IF0"><block type="logic_compare" id="7Nr!6=3tt=l7PZWgzD#]"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="V1#YSgz0P0Wh:|e!Fx!t"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="XokHuMAWg/r9XTaw0V|v"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="G8b`i_sF0P`x7U@]O)xw"><field name="VAR">TemperaturSchlafzimmer</field> <value name="VALUE"><block type="get_value" id="zbAZexJ:}]?aNz5j*u2y"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="debug" id="s@k2O(W(8yjfTx}{f~qq"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="(Ye`XpxwdY}/;9.fYn7~"><field name="TEXT">test</field></shadow> <block type="text_join" id="nB?5{h=pFF2O)B@)tupP"><mutation items="2"></mutation> <value name="ADD0"><block type="text" id=";n_XwNFSLzCzwZ:VSX4A"><field name="TEXT">Temperatur Schlafzimmer:</field></block></value> <value name="ADD1"><block type="variables_get" id="Qz3T/plDvNaHfh=1UXoB"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></value> <next><block type="control" id="aq~_d8?nKy#`pnlNwTXN"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="8Tp1yn_m@?T;18eS[!:Z"><field name="NUM">12</field></block></value></block></next></block></next></block></statement> <next><block type="comment" id="(*:_g5KA9qn`=G17_E]h"><field name="COMMENT">Heizung anschalten</field> <next><block type="controls_if" id="!/r@jW_z6Fau,])x+T2S"><value name="IF0"><block type="logic_compare" id="mVq;g]8#yJ{;xMz6kc|{"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="dBpxPawBWN,|p.%t|:`S"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="ghqftW(h|9K-aG/uz]Eo"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="debug" id="0*:Lk{3eiwCKaKh:WVZp"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="(Ye`XpxwdY}/;9.fYn7~"><field name="TEXT">test</field></shadow> <block type="text_join" id="gSv.N{Lly(|lb3x+.zQx"><mutation items="2"></mutation> <value name="ADD0"><block type="text" id="pZ_VqsRoo*AraqUV~2:d"><field name="TEXT">Temperatur Schlafzimmer:</field></block></value> <value name="ADD1"><block type="variables_get" id="Jh6^gy6_5JhpwFs=*d6p"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></value> <next><block type="control" id="MaAsN(+=#Fg)z-CaR1R9"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="variables_get" id="]nxBkz9AC:njI6PVA`?k"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></next></block></statement> <next><block type="comment" id="LmgJ+}ep|Cos`80R(qCq"><field name="COMMENT">Boost Modus</field> <next><block type="controls_if" id="X,M`OEoL-]b?.^stU`3a"><value name="IF0"><block type="logic_compare" id="#IrbYVV%z]%,THJSfwcT"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="P[sT~,=)4zU,xB^8DF{p"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="m.aWC,upeq:j1+I*89}9"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="controls_if" id="1Ust{QK{M/t+8()tKVZ5"><value name="IF0"><block type="logic_compare" id="GB?n+;Q^UU8VDh1fuM(Q"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="A)d+Z5/0jxy`F5!,`NSe"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_STATE</field></block></value> <value name="B"><block type="math_number" id="#/.tF*2@]zi(R%U[=Hn6"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="@wK*rO|C~C8[AQ!^J9@}"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="mXz2~Rc,r4FBFI3L[exm"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="timeouts_settimeout" id="suN[a3M?n4zCHc}+al7l"><field name="NAME">Wait</field> <field name="DELAY">15</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="control" id="lNy`R;I5@ss,J=@GGsrS"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="-eUgmB;;3-Ip.7]GwdFw"><field name="NUM">1</field></block></value></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement> <next><block type="comment" id="IRo@B?(WG1#lRgKGI~|;"><field name="COMMENT">+++ Lüftung +++</field> <next><block type="on_ext" id="v:Sgx_U0LgAz?E`y:t4?"><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="u^`Dj7Lj@Mo9l8]c0a51"><field name="oid">hm-rpc.0.OEQ0963364.1.STATE</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="_0N1kk*h3N2J_V;kG0UP"><field name="COMMENT">Heizung temporär herunter regeln bei Lüftung</field> <next><block type="controls_if" id="}Uf,15:D;onKtLo;FKRm"><value name="IF0"><block type="logic_compare" id="5=:BT*a,MRxVM]T)-a}J"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="61grjOs!,Xeo[C#oIjwh"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id=";#kc,C)AT@!fYObHCU0V"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="u^X.=e:|6;Du8x4z)`HV"><field name="VAR">TemperaturSchlafzimmer</field> <value name="VALUE"><block type="get_value" id="5:lxKeF%iCya=e%)e`+9"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="timeouts_settimeout" id="0/7P`cH?BMO8[:ao,8l@"><field name="NAME">timeout2</field> <field name="DELAY">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="control" id="LMzbrPy{MWKi`}Q`/X}w"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="V_1)tm/cm]E%*y5h;e~l"><field name="NUM">12</field></block></value></block></statement></block></next></block></statement> <next><block type="comment" id="^7n%O|p{@54.roWf,%tB"><field name="COMMENT">Heizung temporär herunter regeln bei Tür auf</field> <next><block type="controls_if" id="-6{3*~h,nqv0?t^4Kyu,"><value name="IF0"><block type="logic_compare" id="^..b{FHdnk~U#.0Fq~oP"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="RLNTMJ[0gKGbl@b]+h~k"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="5yNIp4ecApgkx_yM78dg"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="timeouts_settimeout" id="@?~aBtRh8xJJpRRkC)q:"><field name="NAME">Warte2</field> <field name="DELAY">30</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="controls_if" id="CK,l1*T(nQ@oMt4Sj~S4"><value name="IF0"><block type="logic_compare" id="%]9Nh;~Fo(5@I%Dp5V`q"><field name="OP">EQ</field> <value name="A"><block type="get_value" id=")#`|,,7OBWEl8[)A{H-^"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="j?,J`N8SQW|,zVxJe/cg"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="rs)ND0oGYF)rI3U^VJnD"><field name="VAR">TemperaturSchlafzimmer</field> <value name="VALUE"><block type="get_value" id=",;(Y3m1DI0%FinIPs#@x"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="control" id="1!,sP%jhbz|I}Xb;{Y|O"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="B@OXZTOYx=yw9f0~xea0"><field name="NUM">12</field></block></value></block></next></block></statement></block></statement></block></statement> <next><block type="comment" id="BQ|n5Gh[^U{M{1j}}:t,"><field name="COMMENT">Heizung wieder an</field> <next><block type="controls_if" id="c],~RS_ICsrFWLX8j:w;"><value name="IF0"><block type="logic_compare" id="SzVsfq?|a[N:ceF}q)@L"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="621kTjZ!7HA6OCEk(f2J"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="%;#f#hu9JaFRUo(0F||@"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="AA|r]|w)HM)Qvz23luh~"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="variables_get" id="0(W{Ig(SIBKbB+@~=##F"><field name="VAR">TemperaturSchlafzimmer</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement> <next><block type="comment" id="YP.|`2GDOI5k.*(N8TV6"><field name="COMMENT">Variable bei manueller Schaltung aktualisieren</field> <next><block type="on" id=";bNRVbsj;u}vK.GAn(8("><field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="CONDITION">ne</field> <statement name="STATEMENT"><block type="variables_set" id="cAi|B(cAo]D5]Cb.%jOu"><field name="VAR">TemperaturSchlafzimmer</field> <value name="VALUE"><block type="get_value" id="Vp3Izg8.rEj6N%bm3,5Z"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></xml>
! ````
-
Wie vermutet. Die lokale Variable wird in dem anderen Trigger auch geändert.
Das kann nicht funktionieren!!!!
Zudem würde ich so etwas in zwei Scripte packen.
Dann hätte es auch sofort funktioniert.
Damit ist der Fehler wohl erkannt.
Setze bitte ein [gelöst] in den Betreff Deines ersten Eintrags. Danke.
Grüße
-
Wie vermutet. Die lokale Variable wird in dem anderen Trigger auch geändert.
Das kann nicht funktionieren!!!!
Zudem würde ich so etwas in zwei Scripte packen.
Dann hätte es auch sofort funktioniert.
Damit ist der Fehler wohl erkannt.
Setze bitte ein [gelöst] in den Betreff Deines ersten Eintrags. Danke.
Grüße `
Ich habe in beiden Triggern eine Varibale. Funktioniert trotzdem nicht
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="i9(@[xS#IG[*3d]XrnS=" x="-212" y="124"><field name="COMMENT">Modus: Aus, An, Boost</field>
<next><block type="on_ext" id="(wB-qsZgi3,jX4.4ebq^"><mutation items="1"></mutation>
<field name="CONDITION">ne</field><value name="OID0"><shadow type="field_oid" id="wsDalFUuAB`XPE#!3/e9"><field name="oid">javascript.0.heizung.heizung_schlafzimmer</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="[KQNn!zQxlY_14]?V,aQ"><field name="COMMENT">Heizung ausschalten</field> <next><block type="controls_if" id="z|b%Wc4=B~VN+j}8sPjA"><value name="IF0"><block type="logic_compare" id="7Nr!6=3tt=l7PZWgzD#]"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="V1#YSgz0P0Wh:|e!Fx!t"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="XokHuMAWg/r9XTaw0V|v"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="G8b`i_sF0P`x7U@]O)xw"><field name="VAR">Temp_SZ</field> <value name="VALUE"><block type="get_value" id="zbAZexJ:}]?aNz5j*u2y"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="control" id="aq~_d8?nKy#`pnlNwTXN"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="8Tp1yn_m@?T;18eS[!:Z"><field name="NUM">12</field></block></value></block></next></block></statement> <next><block type="comment" id="(*:_g5KA9qn`=G17_E]h"><field name="COMMENT">Heizung anschalten</field> <next><block type="controls_if" id="!/r@jW_z6Fau,])x+T2S"><value name="IF0"><block type="logic_compare" id="mVq;g]8#yJ{;xMz6kc|{"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="dBpxPawBWN,|p.%t|:`S"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="ghqftW(h|9K-aG/uz]Eo"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="control" id="MaAsN(+=#Fg)z-CaR1R9"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="variables_get" id="]nxBkz9AC:njI6PVA`?k"><field name="VAR">Temp_SZ</field></block></value></block></statement> <next><block type="comment" id="LmgJ+}ep|Cos`80R(qCq"><field name="COMMENT">Boost Modus</field> <next><block type="controls_if" id="X,M`OEoL-]b?.^stU`3a"><value name="IF0"><block type="logic_compare" id="#IrbYVV%z]%,THJSfwcT"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="P[sT~,=)4zU,xB^8DF{p"><field name="ATTR">val</field> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field></block></value> <value name="B"><block type="math_number" id="m.aWC,upeq:j1+I*89}9"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="controls_if" id="1Ust{QK{M/t+8()tKVZ5"><value name="IF0"><block type="logic_compare" id="GB?n+;Q^UU8VDh1fuM(Q"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="A)d+Z5/0jxy`F5!,`NSe"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_STATE</field></block></value> <value name="B"><block type="math_number" id="#/.tF*2@]zi(R%U[=Hn6"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="@wK*rO|C~C8[AQ!^J9@}"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.BOOST_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="mXz2~Rc,r4FBFI3L[exm"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="timeouts_settimeout" id="suN[a3M?n4zCHc}+al7l"><field name="NAME">Wait</field> <field name="DELAY">15</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="control" id="lNy`R;I5@ss,J=@GGsrS"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.heizung.heizung_schlafzimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="-eUgmB;;3-Ip.7]GwdFw"><field name="NUM">1</field></block></value></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement> <next><block type="comment" id="IRo@B?(WG1#lRgKGI~|;"><field name="COMMENT">+++ Lüftung +++</field> <next><block type="on_ext" id="v:Sgx_U0LgAz?E`y:t4?"><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="u^`Dj7Lj@Mo9l8]c0a51"><field name="oid">hm-rpc.0.OEQ0963364.1.STATE</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="_0N1kk*h3N2J_V;kG0UP"><field name="COMMENT">Heizung temporär herunter regeln bei Lüftung</field> <next><block type="controls_if" id="}Uf,15:D;onKtLo;FKRm"><value name="IF0"><block type="logic_compare" id="5=:BT*a,MRxVM]T)-a}J"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="61grjOs!,Xeo[C#oIjwh"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id=";#kc,C)AT@!fYObHCU0V"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="u^X.=e:|6;Du8x4z)`HV"><field name="VAR">Temp_SZ_Lueftung</field> <value name="VALUE"><block type="get_value" id="5:lxKeF%iCya=e%)e`+9"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="timeouts_settimeout" id="0/7P`cH?BMO8[:ao,8l@"><field name="NAME">timeout2</field> <field name="DELAY">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="control" id="LMzbrPy{MWKi`}Q`/X}w"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="V_1)tm/cm]E%*y5h;e~l"><field name="NUM">12</field></block></value></block></statement></block></next></block></statement> <next><block type="comment" id="^7n%O|p{@54.roWf,%tB"><field name="COMMENT">Heizung temporär herunter regeln bei Tür auf</field> <next><block type="controls_if" id="-6{3*~h,nqv0?t^4Kyu,"><value name="IF0"><block type="logic_compare" id="^..b{FHdnk~U#.0Fq~oP"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="RLNTMJ[0gKGbl@b]+h~k"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="5yNIp4ecApgkx_yM78dg"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="timeouts_settimeout" id="@?~aBtRh8xJJpRRkC)q:"><field name="NAME">Warte2</field> <field name="DELAY">30</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="controls_if" id="CK,l1*T(nQ@oMt4Sj~S4"><value name="IF0"><block type="logic_compare" id="%]9Nh;~Fo(5@I%Dp5V`q"><field name="OP">EQ</field> <value name="A"><block type="get_value" id=")#`|,,7OBWEl8[)A{H-^"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="j?,J`N8SQW|,zVxJe/cg"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="rs)ND0oGYF)rI3U^VJnD"><field name="VAR">Temp_SZ_Lueftung</field> <value name="VALUE"><block type="get_value" id=",;(Y3m1DI0%FinIPs#@x"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value> <next><block type="control" id="1!,sP%jhbz|I}Xb;{Y|O"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="B@OXZTOYx=yw9f0~xea0"><field name="NUM">12</field></block></value></block></next></block></statement></block></statement></block></statement> <next><block type="comment" id="BQ|n5Gh[^U{M{1j}}:t,"><field name="COMMENT">Heizung wieder an</field> <next><block type="controls_if" id="c],~RS_ICsrFWLX8j:w;"><value name="IF0"><block type="logic_compare" id="SzVsfq?|a[N:ceF}q)@L"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="621kTjZ!7HA6OCEk(f2J"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0963364.1.STATE</field></block></value> <value name="B"><block type="math_number" id="%;#f#hu9JaFRUo(0F||@"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="AA|r]|w)HM)Qvz23luh~"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="variables_get" id="0(W{Ig(SIBKbB+@~=##F"><field name="VAR">Temp_SZ_Lueftung</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement> <next><block type="comment" id="YP.|`2GDOI5k.*(N8TV6"><field name="COMMENT">Variable bei manueller Schaltung aktualisieren</field> <next><block type="on" id=";bNRVbsj;u}vK.GAn(8("><field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field> <field name="CONDITION">ne</field> <statement name="STATEMENT"><block type="variables_set" id="cAi|B(cAo]D5]Cb.%jOu"><field name="VAR">Temp_SZ</field> <value name="VALUE"><block type="get_value" id="Vp3Izg8.rEj6N%bm3,5Z"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ1252156.4.SET_TEMPERATURE</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></xml>
-
Ich habe in beiden Triggern eine Varibale. Funktioniert trotzdem nicht `
Und was ist das hier?
Schaust Du Dir Deine Scripte auch mal gründlich an?Oben änderst Du den Datenpunkt.SET_TEMPERATURE
und unten triggerst Du die Änderung von diesem Datenpunkt.SET_TEMPERATURE und schreibst den Wert in <u>die lokale Variable</u> :roll:
Nicht alles Mögliche in EIN Script packen!
-
Verdammt, den Trigger habe ich übersehen.
Habe nicht weit genug heruntergescrollt.
Danke, jetzt geht es
-
Danke, jetzt geht es `
Denke an das [gelöst].
Deinen ersten Beitrag aufrufen, ändern klicken, Betreff ändern.