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) Ikea Bewegungsmelder Typ E1745 Tradfri Skript

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    ( gelöst) Ikea Bewegungsmelder Typ E1745 Tradfri Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @SigiMOE last edited by

      @sigimoe

      Ich hatte so ein skript mal mit den IKEA BWM laufen:

      https://forum.iobroker.net/topic/47400/beleuchtung-mit-zwei-präsenzmeldern/14

      S 1 Reply Last reply Reply Quote 0
      • S
        SigiMOE @Thomas Braun last edited by SigiMOE

        @thomas-braun verstehe ich leider nicht so ganz, Dein Lösungsansatz.

        habe es mal so nachgebaut :

        26998cfb-b78c-4f6b-aae0-870f0cdd633f-2022-04-29_18-31-33.jpg /var/folders/wz/jd1j4lqs0zxf0stxl90dsjwh0000gn/T/2022-04-29_18-31-33.jpg

        oder muss ich andere Datenpunkte auswählen ?

        c58d9e9d-1136-4a5e-86be-c615d97e6afa-2022-04-29_18-34-13.jpg /var/folders/wz/jd1j4lqs0zxf0stxl90dsjwh0000gn/T/2022-04-29_18-34-13.jpg

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @SigiMOE last edited by

          @sigimoe

          Ich weiß es nicht mehr. Hab das auch so nicht mehr im Einsatz. Nur eben aus meiner digitalen Pinnwand geangelt.

          S 1 Reply Last reply Reply Quote 0
          • S
            SigiMOE @Thomas Braun last edited by

            @thomas-braun OK Danke 🙂 ich probiere weiter mein Glück....

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • I
              io_laurent last edited by

              Hi, hast du dir schon mal den smartcontrol-Adapter angeguckt? Der ist genau für solche Angelegenheiten gemacht.
              Gruß.

              S 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @SigiMOE last edited by

                @sigimoe

                Du musst allerdings auf eine Änderung der Trigger lauschen, nicht auf einen Status.

                1 Reply Last reply Reply Quote 0
                • S
                  SigiMOE @io_laurent last edited by

                  @io_laurent Dann schaue ich mir den mal an, Danke für den Tipp

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

                    @sigimoe sagte: 60 Sekunden auf True steht und dann erst auf false

                    Versuche es mal so:

                    Bild_2022-04-29_185706011.png

                    Wert (unter "Trigger"):

                    Blockly_DP_Props.JPG

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

                      @paul53 Danke für den Tipp aber leider funktioniert es nicht wie gewünscht

                      hier das nachgebaute Skript :

                      0d04851f-183c-411e-b844-1d0f47d91805-2022-04-29_19-07-00.jpg /var/folders/wz/jd1j4lqs0zxf0stxl90dsjwh0000gn/T/2022-04-29_19-07-00.jpg

                      oder habe ich ein Fehler unbeabsichtigt eingebaut ?

                      Das Licht geht bei Bewegung an, geht nach 3 Minuten wieder aus. geht aber nicht mehr an obwohl die occupancy immer noch auf true steht also Bewegung erkannt.

                      Ich möchte gerne dass das Licht aber immer an bleibt so lange occupancy auf true steht....

                      Wo ist mein Fehler ?

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

                        @sigimoe sagte: Wo ist mein Fehler ?

                        Das Ausschalten muss in den sonst-Zweig der Abfrage "falls Wert".

                        Bild_2022-04-29_191733125.png

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

                          @paul53 PERFEKT !!!

                          Jetzt klappt es. Vielen Dank für die Hilfe.

                          Kannst DU mir noch kurz verraten, was der Wert ( unter "Trigger" ) bewirkt ?

                          Falls jemand den EXPORT benötigt. hier ist er :

                          <xml xmlns="https://developers.google.com/blockly/xml">
                            <variables>
                              <variable type="timeout" id="timeout">timeout</variable>
                            </variables>
                            <block type="on_ext" id="OZ=]b-wM%)dIU`3H,)Dg" x="8" y="-37">
                              <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="Q}n50;-9Ukn@6,tggY6w">
                                  <field name="oid">zigbee.0.0c4314fffe51edbb.occupancy</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="O(4|AJgD{S=D8tpLfy0R">
                                  <value name="IF0">
                                    <block type="time_compare_ex" id="/oIg]wv~@3FB.o~rz!J`">
                                      <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="DByh2e4-58dMAzK$6)-x">
                                          <field name="TEXT">17:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="k/(+W~Lq9532j-fg5LoI">
                                          <field name="TEXT">23:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="controls_if" id="B(RDrOK#=AT]1sbJm[o2">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="on_source" id="XM2F]VSjPr%[~Uk7WxgK">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_cleartimeout" id="|j%KQ{@$:nXOMuXPY3HS">
                                          <field name="NAME">timeout</field>
                                          <next>
                                            <block type="control" id="P(,dRWM@=97dkFt~me8V">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.a848face993d.on</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="[zOB%y9,[B:=D?@!Gjon">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id=":KC{PfMw:7}|yEI{1R3$">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="U~quq[kmzq4qc6ja_-kv">
                                                      <field name="TEXT">BWM IKEA an zwischen 17:00 Uhr und 23:30 !!</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="comment" id="1,MzrFNerBB-Twd6$^Ta">
                                          <field name="COMMENT">nach 3 Minuten das Licht ausschalten</field>
                                          <next>
                                            <block type="timeouts_settimeout" id="?1]pPl%r6b*fa#qvw@CC">
                                              <field name="NAME">timeout</field>
                                              <field name="DELAY">3</field>
                                              <field name="UNIT">min</field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="]8ZvW7:UsXs#1U^tFSEp">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">wled.0.a848face993d.on</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="_!-%8DA2YLINfQNr^]bR">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </xml>
                          
                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @SigiMOE last edited by

                            @sigimoe sagte: verraten, was der Wert ( unter "Trigger" ) bewirkt ?

                            Die vordefinierte lokale Variable Wert enthält den Wert des Trigger-Datenpunktes (true bei Bewegung).

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

                              @paul53 Ah, Danke 🙂

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              704
                              Online

                              32.1k
                              Users

                              80.6k
                              Topics

                              1.3m
                              Posts

                              4
                              14
                              790
                              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