Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Shelly Rolladen mit Tadifri on/ off switch steuern

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Shelly Rolladen mit Tadifri on/ off switch steuern

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @dos1973 last edited by

      @dos1973 sagte:

      Satz „wert& trigger“ habe ich noch nicht ganz verstanden

      Blockly_DP_Props.JPG

      D 1 Reply Last reply Reply Quote 0
      • D
        dos1973 @paul53 last edited by dos1973

        @paul53
        ok, habe das soweit nachgebaut - aber klappt noch nicht.
        Bildschirmfoto 2020-09-29 um 19.05.33.png

        das sind die Werte des Tadifri Senders
        Bildschirmfoto 2020-09-29 um 18.59.09.png
        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.
        Mir fehlt die Verbindung des Schalter zum shelly, also die Erkennung ob er fahren soll oder stoppen soll.

        EDIT: die Felder up_button und down_button werden nur mit long press befall

        Deshalb hatte ich ja diesen trigger drin
        Bildschirmfoto 2020-09-29 um 19.03.33.png
        wenn der Knopf gedrückt wurde wird der DP aktualisiert und das Rollo ist in Bewegung (Roller state ist ungleich stop), dann sende Stopp

        paul53 2 Replies Last reply Reply Quote 0
        • paul53
          paul53 @dos1973 last edited by paul53

          @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.

          D 2 Replies Last reply Reply Quote 0
          • D
            dos1973 @paul53 last edited by

            @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...

            1 Reply Last reply Reply Quote 0
            • D
              dos1973 @paul53 last edited by

              @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

              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @dos1973 last edited by paul53

                @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.

                D 1 Reply Last reply Reply Quote 0
                • D
                  dos1973 @paul53 last edited by dos1973

                  @paul53

                  Bildschirmfoto 2020-09-29 um 19.20.31.png

                  aber der Rollo hat doch immer stop - wenn er nicht fährt

                  (ohje was für ein weiser Spruch)

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @dos1973 last edited by paul53

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @dos1973 last edited by

                      @dos1973 sagte:

                      habe das soweit nachgebaut - aber klappt noch nicht.

                      Es ist falsch nachgebaut ! Vergleiche bitte.

                      D 1 Reply Last reply Reply Quote 1
                      • D
                        dos1973 @paul53 last edited by

                        @paul53
                        😞
                        Sorry Paul!

                        ich habs gefunden und es funktioniert einwandfrei 🙂

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          dos1973 @dos1973 last edited by

                          @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...

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            dos1973 @dos1973 last edited by

                            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

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            401
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            2
                            16
                            672
                            Loading More Posts
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes
                            Reply
                            • Reply as topic
                            Log in to reply
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                            The ioBroker Community 2014-2023
                            logo