NEWS
Script Fehler ?
-
Hallo zusammen,
ich schreibe per Blockly einen Wert in einen Datenpunkt vom Typ Number......
Geht auch, Wert wird geändert, es passiert aber nichts....
Ändere ich den Datenpunkt "händisch" sprich trage ich dort die "1" ein, löst das Script aus.......
Jemand eine Idee ???
Blockly wie folgt :<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on_ext" id="ban^rP._LH-h6_qF)VJ!" x="-1012" y="-3212"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="52AF-P8+;Jr{Tkw6aDAc"> <field name="oid">0_userdata.0.Wasser.Zone-7</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="?l;_5tS_S*gOC`,44;z{"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="|A9[?DGxCX}{1Q_itQvX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Z)L/HX~}KfNr,4ZqhXuU"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Wasser.Zone-7</field> </block> </value> <value name="B"> <block type="logic_boolean" id="RUiyLTHt9MBS$9M8p@;e"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="DmxBpn9I.*1*R.;c;}{G"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">ham.0.Valve-7.Zone-7.Active</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_tonumber" id="j$wWy%8,E8*49XU[kgF9"> <value name="VALUE"> <block type="text" id="=@H0tpd%H]zVjBkX,Vd^"> <field name="TEXT">1</field> </block> </value> </block> </value> <next> <block type="timeouts_wait" id="@6z[imv/h6rD@15Z|FBq"> <field name="DELAY">1000</field> <field name="UNIT">ms</field> </block> </next> </block> </statement> <statement name="ELSE"> <block type="update" id="N^rL4~fa:Kgs4.F{|Y6I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">ham.0.Valve-7.Zone-7.Active</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_tonumber" id="k(r(eHGVD6_6[S8_zByI"> <value name="VALUE"> <block type="text" id="9V3(IzBYp=T][@-Nrm,n"> <field name="TEXT">0</field> </block> </value> </block> </value> <next> <block type="update" id="z[?BA,%N}k}Sx=iV1hm."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">ham.0.Valve-7.Zone-7.Set-Duration</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_tonumber" id="s}X7K42|N/Xvm]LYfQml"> <value name="VALUE"> <block type="text" id="s[Y@vxu[ULRmlBM*PMaO"> <field name="TEXT">0</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </xml>
Danke für nen Hinweis wo ich auf dem Schlauch stehe.....
Grüße
Sunny -
@sunny9999 Nimm statt akutalisieren Datenpunkt - steuere Datenpunkt.
-
@mickym
Bingo............vielen DANK !!!!! -
@sunny9999 Und statt "nach Zahl" und dann die Zahl als String nimm besser direkt die Zahl aus dem "Mathematik" Menü!