NEWS
[gelöst] Shelly Rolladen mit Tadifri on/ off switch steuern
-
@dos1973 sagte:
der Wert State schaltet bei
Taste1 (oben) auf true
Taste 0 (unten) auf false
und bleibt solange auf true/false stehen, bis ich wieder etwas drücke.So habe ich das auch interpretiert. Wenn der Wert true ist und Taste 1 wird nochmal gedrückt, bleibt der Wert auf true und nur der Zeitstempel wird aktualisiert ?
@dos1973 sagte in Shelly Rolladen mit Tadifri on/ off switch:
Mir fehlt die Verbindung des Schalter zum shelly, also die Erkennung ob er fahren soll oder stoppen soll.
Die Verbindung ist durch den Vergleich des "Roller state" mit "stop" hergestellt: Bei "stop" wird gefahren, sonst wird gestoppt.
-
@paul53 sagte in Shelly Rolladen mit Tadifri on/ off switch:
So habe ich das auch interpretiert. Wenn der Wert true ist und Taste 1 wird nochmal gedrückt, bleibt der Wert auf true und nur der Zeitstempel wird aktualisiert ?
ja das stimmt, bei Taste 0 wird eben false aktualisiert.
Das Rollo zuckt zumindest zusammen...
-
@paul53 sagte in Shelly Rolladen mit Tadifri on/ off switch:
Die Verbindung ist durch den Vergleich des "Roller state" mit "stop" hergestellt: Bei "stop" wird gefahren, sonst wird gestoppt.
ja aber das sind beides Werte des Shelly. Es muss ja auf den State des Sender geachtet/ verknüpft werden, die sind ja eigentlich unabhängig
-
@dos1973 sagte in Shelly Rolladen mit Tadifri on/ off switch:
Es muss ja auf den State des Sender geachtet/ verknüpft werden
Der Sender triggert bei jeder Tastenbetätigung. Die Richtung, in der gefahren wird, wird durch den Wert des Trigger-Datenpunktes vorgegeben.
Poste bitte den von Blockly erzeugten Javascript-Code ohne die letzte Zeile in Code tags.
-
-
@dos1973 sagte:
der Rollo hat doch immer stop - wenn er nicht fährt
Ja, dann soll er hoch oder runter fahren.
Poste bitte den von Blockly erzeugten Javascript-Code ohne die letzte Zeile in Code tags.
-
@dos1973 sagte:
habe das soweit nachgebaut - aber klappt noch nicht.
Es ist falsch nachgebaut ! Vergleiche bitte.
-
@paul53
Sorry Paul!ich habs gefunden und es funktioniert einwandfrei
-
@paul53
deine Blockly sehen immer so einfach & toll aus. Ich denke da immer viel zu kompliziert um 3 Ecken, eine Unterführung, über die Brücke... -
das fertige Blockly, vielleicht hilft es jemanden.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="yMQ01rUlW1PsHUwFVDIJ" x="112" y="38"> <field name="COMMENT">Ikea Sender STATE</field> <next> <block type="on_ext" id="@)eO^OcBv6{g2ABaNIzB"> <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="WYi?I7+BW]0{::b~SKz2"> <field name="oid">zigbee.0.680ae2fffe803af6.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="m=A=cRiLbKUhT/ky_rGP"> <field name="COMMENT">Shelly STATE</field> <next> <block type="controls_if" id="wh_c=[+U}.9ExA%n?X6H"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="$IP[XBT3*.G=1Ty/TQYP"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/6E_f3I`(Bt25~FTDPPD"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#98F4ABF2DCE1#1.Shutter.state</field> </block> </value> <value name="B"> <block type="text" id="4bw7@9A$+gj?x1M)B=yP"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="GCaNE51Cd|`pmD8J{BzY"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="+sb)m]HsmWy3P$7`7=U,"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="comment" id="1`|S0=LVXRH|IPv[g+JA"> <field name="COMMENT">Shelly schliessen</field> <next> <block type="control" id="VyikcOeieHo}@Cd{MHj1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#98F4ABF2DCE1#1.Shutter.Close</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="y0G/)ZXpJ/=DV:ir_4tr"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="comment" id="1]Raj$(VQU;f:4UXW%/2"> <field name="COMMENT">Shelly öffnen</field> <next> <block type="control" id="i?uY(9nBbCkMhrb3ulMT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#98F4ABF2DCE1#1.Shutter.Open</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="r,e{b#6FhNz/5@T^LMZF"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="comment" id="%#O5NOPGzaelvq5:2oY{"> <field name="COMMENT">Shelly Stop</field> <next> <block type="control" id="y$8B*`^]}uv?omr$R|(@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#98F4ABF2DCE1#1.Shutter.Pause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="~a5uv-fE#C#P5)^Z}svl"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </xml>
@paul53
nochmals Danke für deine Geduld & Mühe