Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Triggerproblem - will nicht auslösen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Triggerproblem - will nicht auslösen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @ThomasM last edited by

      @thomasm kann man deiner Lampe überhauft schon Parameter übergeben bevor sie an ist?

      ThomasM 2 Replies Last reply Reply Quote 0
      • ThomasM
        ThomasM @Homoran last edited by ThomasM

        @homoran
        Dieses Script ist aus einem youtube Beispiel von Dies&Das.

        Der kollege ist zurzeit im Urlaub und ich kann ich nicht direkt ansprechen.
        So hat er das bei sich umgesetzht und es funktioniert

        haselchen J 2 Replies Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @ThomasM last edited by haselchen

          @thomasm
          So würde ich das machen
          Im ersten Wert Block kommt die ID deiner Lampe.
          Im ersten Steuer Block ebenfalls die ID deiner Lampe.
          Vielleicht baust du noch Verzögerungen ein von 1-2 Sekunden .

          a7ee3bf3-e0d8-4530-9456-5662a3e8293e-grafik.png


          BlocklyJavascriptTypeScriptRules
          Protokoll
          Ausgewählte Blöcke exportieren

          <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="on_ext" id="LJpt{Bb2wR4^p;t28EA(" x="38" y="38">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
          <shadow type="field_oid" id="rZj??+?qi,+u%UAD$1J"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="}a90HS.VLCWK0U3B1tjm"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="?VF!rU4EhY6_^rsF9/e">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="}UHekz8{vTp92]4~[3;4">
          <field name="ATTR">val</field>
          <field name="OID">ID auswählen</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="2;O]wNK,O3}jPwAT?mD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="5ewA3Etz$?3b1qAKim97"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="KfR%~!],(!_fDEac:+1G"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="yF8TSllyFi~eKk+4fDfS"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="i;XTE|zXL?fmZbw*^n#-"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="RN_KCJ-9iBv)!u{)svd$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="/g_,@KCd)i)X!_dWL(%I"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="8gjlWZATq)~M?3W|KBX$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(Q,G{AD(PfRNW)XKm1{">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          <value name="IF1">
          <block type="logic_compare" id="Xp_]JTPYccV@?dVfoA5P">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="U+dU8?}NjwJzb?KhRi@"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V3%=,*wN)TK%X4Er}UsC"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="e+LZ~%QcPmZGCh{i%ND">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">Object ID</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="xMZ3hImnF$z[K+p#COzu">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </statement>
          </block>
          </xml>

          <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="on_ext" id="LJpt{Bb2wR4^p;t28EA(" x="38" y="38">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
          <shadow type="field_oid" id="rZj??+?qi,+u%UAD$1J"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="}a90HS.VLCWK0U3B1tjm"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="?VF!rU4EhY6_^rsF9/e">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="}UHekz8{vTp92]4~[3;4">
          <field name="ATTR">val</field>
          <field name="OID">ID auswählen</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="2;O]wNK,O3}jPwAT?mD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="5ewA3Etz$?3b1qAKim97"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="KfR%~!],(!_fDEac:+1G"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="yF8TSllyFi~eKk+4fDfS"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="i;XTE|zXL?fmZbw*^n#-"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="RN_KCJ-9iBv)!u{)svd$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="/g_,@KCd)i)X!_dWL(%I"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="8gjlWZATq)~M?3W|KBX$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(Q,G{AD(PfRNW)XKm1{">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          <value name="IF1">
          <block type="logic_compare" id="Xp_]JTPYccV@?dVfoA5P">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="U+dU8?}NjwJzb?KhRi@"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V3%=,*wN)TK%X4Er}UsC"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="e+LZ~%QcPmZGCh{i%ND">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">Object ID</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="xMZ3hImnF$z[K+p#COzu">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </statement>
          </block>
          </xml>

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators last edited by

            @thomasm sagte in Triggerproblem - will nicht auslösen:

            Dieses Script ist aus einem youtube Beispiel von Dies&Das.

            ja und?

            @haselchen sagte in Triggerproblem - will nicht auslösen:

            So würde ich das machen

            ich glaube das ist ein anderer Fall.

            @ThomasM will alle Parameter immer setzen und nur anschalten wenn noch nicht an

            haselchen 1 Reply Last reply Reply Quote 0
            • ThomasM
              ThomasM @Homoran last edited by ThomasM

              @homoran
              By the way: Wenn ich mir die App auf meinem Handy ansehe, ist die Powerstellung des Stzipes schon auf True. Trotzdem leuchtet der Stripe nicht wenn ich ihn nüber Blockly steuere.
              Wenn ich den Stripe über handy steuere funktioniert das.

              1 Reply Last reply Reply Quote 0
              • J
                Jan1 @ThomasM last edited by

                @thomasm
                Mein Rat, vergiss schnell was auf YT gezeigt wird.
                Die meisten RGB Controller kannst sehr einfach direkt über den HEX Wert für RGB steuern. Da ist dann Farbe und Heiligkeit mit drin. Welchen Wert Du da brauchst ist auch einfach, stell die LEDs wie gewünscht ein und schau was drin steht und den Wert schreibst dann mit dem Script.

                Das Blockly ist übrigens etwas daneben, da man die FALLS in der der FALLS eher mit sonst, oder falls sonst löst 😉

                Homoran 1 Reply Last reply Reply Quote 0
                • haselchen
                  haselchen Most Active @Homoran last edited by

                  @homoran

                  Ist doch so im Blockly?!
                  Unten, letzter Teil, sonst falls....?

                  ThomasM 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Jan1 last edited by

                    @jan1 sagte in Triggerproblem - will nicht auslösen:

                    Das Blockly ist übrigens etwas daneben, da man die FALLS in der der FALLS eher mit sonst, oder falls sonst löst

                    @Jan1

                    nein, ich glaube das zweite falls soll noch weiter differenzieren und ist kein sonst.

                    trotzdem etwas seltsam

                    @thomasm sagte in Triggerproblem - will nicht auslösen:

                    Trotzdem leuchtet der Stripe nicht wenn ich ihn nüber Blockly steuere.

                    weil de7n zweites falls genau diesen Zustand nicht zulässt

                    1 Reply Last reply Reply Quote 0
                    • ThomasM
                      ThomasM @haselchen last edited by

                      @haselchen Teilerfolg

                      Habe das Script mal umgestellt:
                      blockly.png

                      Nachdem meine Schreibtischlampe angeht, geht nach ca. 5 Sekunden auch die LED an!
                      Beim Ausschalten ist das ähnlich (nach ca. 5 Sekunden geht diese aus).

                      Woher aber die 5 Sekunden kommen ???

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        Jan1 @ThomasM last edited by Jan1

                        @thomasm
                        Du hast was von ner App geschrieben, könnte ne Cloud dazwischen sein was das ganze etwas bremst.

                        In dem Blockly reicht eigentlich sonst, da nur an oder aus und wenn an und ne Änderung erfolgt eh nur aus sein kann 😉

                        ThomasM 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators last edited by

                          @thomasm sagte in Triggerproblem - will nicht auslösen:

                          Woher aber die 5 Sekunden kommen ???

                          wir wissen nichts über deine Konfiguration.
                          5 Sekunden sind nichts, wenn dein System nur alle 30 Sekunden pollt

                          ThomasM 1 Reply Last reply Reply Quote 0
                          • ThomasM
                            ThomasM @Jan1 last edited by

                            @jan1 Nein das ist nicht der Fall.
                            Die Hardware ist ein AZDelivery NodeMCU Amica Modul V2 ESP8266 ESP-12F mit WiFi. Und in der App ist nur die IP des Controllers drin.
                            In in meinem Router habe ich für diesen Controller die Kindersicherung (Kein internet) eingestellt.

                            Homoran 1 Reply Last reply Reply Quote 0
                            • ThomasM
                              ThomasM @Homoran last edited by

                              @homoran
                              Konfig:

                              Raspi4 mit 4GB RAM
                              Installiert ioBroker und ein paar weitere Adapter.
                              System ist längst nicht ausgelastet.
                              Alle anderen Scripte etc. Lichtsteuerung etc. reagieren sofort. Da habe ich kein Problem.

                              1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @ThomasM last edited by

                                @thomasm sagte in Triggerproblem - will nicht auslösen:

                                Die Hardware ist ein AZDelivery NodeMCU Amica Modul V2 ESP8266 ESP-12F mit WiFi.

                                und wie kommuniziert die mit ioBroker?
                                MQTT?

                                ThomasM 1 Reply Last reply Reply Quote 0
                                • ThomasM
                                  ThomasM @Homoran last edited by

                                  @homoran Ich habe einige Homamatic Aktoren im Einsatz. Steuerung swohl über HM als auch über z.B. Aqara-Schalter.

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    Jan1 @ThomasM last edited by

                                    @thomasm
                                    Beschreibe doch mal den DP manuell und schau ob die LED sofort reagiert. Ist das der Fall, muss was anderes die Ursache sein.

                                    ThomasM 1 Reply Last reply Reply Quote 0
                                    • ThomasM
                                      ThomasM @Jan1 last edited by

                                      @jan1 Was meinst du mit DP?

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        Jan1 @ThomasM last edited by

                                        @thomasm
                                        Na den DATENPUNKT im IOBroker der die LED schaltet

                                        haselchen ThomasM 2 Replies Last reply Reply Quote 0
                                        • haselchen
                                          haselchen Most Active @Jan1 last edited by

                                          @jan1

                                          Ich schätze die 5sek ist die Zeit , in der der Datenpunkt sich ändert

                                          J 1 Reply Last reply Reply Quote 0
                                          • ThomasM
                                            ThomasM @Jan1 last edited by

                                            @jan1 Das war der richtige Tipp. Der DP ändert sich erst nach ca. 5 Sekunden, nachdem das Licht angeht.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            889
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            33
                                            995
                                            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