NEWS
Blockly Fehler? Tür auf /Licht an
-
Ich glaube ich brauche bei einem wirklich simplen Script mal einen Schubs warum es nicht klappt.
Schiebetür auf/ dann zw.15 und 5 uhr Licht an
Schiebetür zu Licht nach 2 sek ausDie Lampe kann ich ansteuern,via Deconz-Webif und auch aus dem Broker per State änderung
der Xiaomi Fensterkontakt geht auch...true/false bringt der sofort bei Änderung.Also Neustart Broker/Adapter/Script bringen keine besserung.
hier mal das Script:
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on" id="m1!,]oIe/v6|;,ez^iB" x="-1712" y="-1712"> <field name="OID">deconz.0.Sensors.11.open</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="ySIQt:eX-U^u#b9!V4mZ"> <value name="IF0"> <block type="logic_operation" id="X:Bh@B9m+t+ZaK,.1lxS"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="1bq^^E@w(h-n7;MnF%Rk"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id=",ylBoD@4^0B
s0Suy4Js">
<field name="TEXT">15:00</field>
</shadow>
</value>
<value name="END_TIME">
<shadow type="text" id="b97LraI{@M9h@_=2X}/w">
<field name="TEXT">05:00</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="]k-CgZO?Ju7iKkJnS,8P">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="!_eNtWW%SnvKKiAz/u,i">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.11.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(H}eJLP,x:77zwF0;0x"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=".w
a)k7Z,Sm3@:Nue[Dv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.4.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="2~~Aibe~0?0)NQ:+M{i(">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="1pPWv=%2EK1CXTd[-UW#">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.4.level</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="M|kR/y:rtaA}5a^KMVh9">
<field name="NUM">100</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="Wn{Q:?:^-Af*T{;]}YdE">
<value name="IF0">
<block type="logic_compare" id="(daKmr95Jb?w7a@eqp4?">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="7u.W(/zc_uMPCvSkaZ5F">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.11.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="7VyV+prC;Vf/2^LyZ$-#">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="d3[*Zl)nrYuHkm_0Qqtj">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">deconz.0.Lights.4.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="YE!6yV4U,25EnqfexM]!">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml> -
@bob-der-1
und was geht nicht ? -
@dslraser sagte in Blockly Fehler? Tür auf /Licht an:
@bob-der-1
und was geht nicht ?Öffne ich die Tür,bleibt das Licht aus.
-
@bob-der-1
Die Zeiten sind vom falschen Typ. Du hast da Texte drin.
-
@Thomas-Braun sagte:
Die Zeiten sind vom falschen Typ. Du hast da Texte drin.
Nein, das passt schon:
-
Also wenn ich das gleiche Blockly mit einem anderen Sensor nutze oder andere Lampen oder beides....geht es ebenso nicht?
Also ich meine bin kein Profi aber so simple Sachen kann ich mit links. -
@bob-der-1
schau mal was damit im Log steht wenn Du einen Versuch startest... -
Das wäre auch nicht gegangen🤬
Am besten verrate ich nicht warum das nicht gehen kann onwohl es richtig war!
Wenn man am 2. Rechner im Büro das gleiche Blockly offen hat,das falsch gespeichert auch noch weis der Iob sicher nicht was er machen soll.Ich bin sooooo doof echt nicht normal.
Danke aber das ihr sofort nachgesehen habt.