Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly für Haustür geöffnet?

    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

    Blockly für Haustür geöffnet?

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      biker1602 last edited by

      Hallo
      Ich habe einen Aqara Tür- und Fenstersensor den ich an die Haustür machen möchte wo ich als Telgramm die Meldung das die Tür geöffnet wurde mit Datum und Uhrzeit.
      Ich hatte schon mal versucht einen Anfang zu machen ohne Datum und Uhrzeit aber nicht mal diese Meldung erscheint als Telegramm.
      19befbef-0ab9-4136-aaff-4a59f24eb7b3-grafik.png
      Ich hoffe mir kann da jemand helfen.
      Danke

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

        @biker1602
        Kann ja auch nicht, das Objekt im Trigger ist ein anderes als das in der FALLS und ich denke es würde Sinn machen auf das in der FALLS auch zu triggern.

        B 1 Reply Last reply Reply Quote 1
        • B
          biker1602 @Jan1 last edited by

          @Jan1 Ja super bin ich blöde. Das hat geklappt aber kannst du mir noch einen Tipp geben wie ich die Uhrzeit rein bekomme. Wochentag und Datum habe ich aber bei Uhrzeit gibt es irgendwie keinen richtigen Block oder ich sehe ihn vor lauter Blöcken nicht

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

            @biker1602
            Ich bin nicht zu Hause und so kann ich das jetzt auch nicht direkt beantworten.

            1 Reply Last reply Reply Quote 0
            • N
              Nordischerjung last edited by

              Moin

              a27f04a2-3548-4188-bd7d-f9c83e582c74-grafik.png

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

                @Nordischerjung
                Ich glaube er wollte das in der FALLS drin haben, nicht in der Meldung

                1 Reply Last reply Reply Quote 0
                • C
                  Chris_90 last edited by

                  Ich hab es folgendermaßen gelöst, vielleicht hilft es dir ja?

                  8e49e4a0-df84-4e3f-84e1-2522715c468a-grafik.png

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    biker1602 @Chris_90 last edited by biker1602

                    @Chris_90 Ich habe es so gemacht und es funktioniert auch perfekt Danke
                    Jetzt wollte ich das Gleiche mit der Balkontür machen, die natürlich oft länger aufsteht.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="^@%tI7pjVpc4+RVh?u-h">Zeit_Geöffnet</variable>
                        <variable id=";9{([_kt$]I*Yb{(M,Kf">Rückmeldetext</variable>
                      </variables>
                      <block type="on" id="!}o^j^oBML|4D1|20vu}" x="-713" y="-413">
                        <field name="OID">zigbee.0.00158d00045c9632.contact</field>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <statement name="STATEMENT">
                          <block type="procedures_callnoreturn" id="kIVz4lk?[]QpyW6-cE^E">
                            <mutation name="Sende Änderung an Telegramm"></mutation>
                          </block>
                        </statement>
                      </block>
                      <block type="procedures_defnoreturn" id="wZ?n71VaVkg#/~-?2kk+" x="-413" y="-412">
                        <field name="NAME">Sende Änderung an Telegramm</field>
                        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        <statement name="STACK">
                          <block type="controls_if" id="{_@od+w)n5inb:a9SQ[,">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="5k^xB?_zrvM,5vviSu6!">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="HR8;vRL?+iDnhjn8fEP+">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.00158d00045c9632.contact</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="eUgA[JXBb,~fP:73V11U">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="QyyPXD[xNL]FCLaej.d9">
                                <field name="VAR" id="^@%tI7pjVpc4+RVh?u-h">Zeit_Geöffnet</field>
                                <value name="VALUE">
                                  <block type="time_get" id="U9QM#n-nYa_C/vA}-N4@">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                    <field name="OPTION">object</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="LN,nVL56@YrP(ve6QW4[">
                                    <field name="VAR" id=";9{([_kt$]I*Yb{(M,Kf">Rückmeldetext</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="@HfaEB/OkHR.!`@bdQd?">
                                        <mutation items="8"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="]]dt~R):lYp#}!.S||z_">
                                            <field name="TEXT">Balkontür wurde am  </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text_newline" id="mhD8viPBwdC:;e|TnL.h">
                                            <field name="Type">\n</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="time_get" id="cA93H,ih=ovnjMRR4?Q6">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation>
                                            <field name="OPTION">wdt</field>
                                            <field name="LANGUAGE">de</field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="text" id="*EeU(t-T7=lR#U@3BFQQ">
                                            <field name="TEXT">   </field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="time_get" id="a?D^RPe+s+Si=*kkfgj[">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                            <field name="OPTION">DD.MM.YY</field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="text_newline" id="[(Qo%5MZq`n7L%8:,)4M">
                                            <field name="Type">\n</field>
                                          </block>
                                        </value>
                                        <value name="ADD6">
                                          <block type="time_get" id="l5}@:+%,ZN%N-~V0WqjE">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                            <field name="OPTION">hh:mm:ss</field>
                                          </block>
                                        </value>
                                        <value name="ADD7">
                                          <block type="text" id="5m5`8)B#4U(x$q6%:M/m">
                                            <field name="TEXT">  Geöffnet</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="]Gr/*BW_2xD^SEG?6cyp">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="T1l$%{*Y;W_Ry{3~vJq7">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.00158d00045c9632.contact</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="~:FpD/Ttf/9];)t~I`^F">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="variables_set" id="4=mH-_7cL$kz;_FGQpC@">
                                <field name="VAR" id="^@%tI7pjVpc4+RVh?u-h">Zeit_Geöffnet</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="w9XQ#~NFXqRPV$aGRV//">
                                    <field name="OP">MINUS</field>
                                    <value name="A">
                                      <shadow type="math_number" id="U,GXDaa_bnA_Mv?$e4l[">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="time_get" id="Iqc~dm:TPbT-~LlYgrls">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                        <field name="OPTION">object</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="TB{q:K:%y;b$!c3y89|p">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="3cn])L;!^f|5WYS-C.I*">
                                        <field name="VAR" id="^@%tI7pjVpc4+RVh?u-h">Zeit_Geöffnet</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="+N!n}`:0m}r25LyxTZ)P">
                                    <field name="VAR" id=";9{([_kt$]I*Yb{(M,Kf">Rückmeldetext</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="fJ3!NhgwUINx9F8dQMss">
                                        <mutation items="7"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="BD4_TK4diO]t~DAQt4#t">
                                            <field name="TEXT">Balkontür wurde um  </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="time_get" id="H9+zMV2KWEdPd3yB,3Cx">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                            <field name="OPTION">hh:mm:ss</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="MNPsEu)gFP.-+MJu^Nk-">
                                            <field name="TEXT">  geschlossen  </field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="text_newline" id="[alE/L=3#3lKI2.(X2cM">
                                            <field name="Type">\n</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="text" id="{:l1{Qc9/7X1eLHxZL8{">
                                            <field name="TEXT">Sie stand für  </field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="convert_from_date" id="x8KWKBEoALN}!lVJi42Y">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                            <field name="OPTION">m</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="irhY_#:+tf/*0o(O.FL2">
                                                <field name="VAR" id="^@%tI7pjVpc4+RVh?u-h">Zeit_Geöffnet</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ADD6">
                                          <block type="text" id="+{*_!5[wmUrell($.)dQ">
                                            <field name="TEXT"> Min. offen</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="telegram" id="LFgQfgQk(qxz~d/p?_}g">
                                <field name="INSTANCE">.0</field>
                                <field name="LOG"></field>
                                <field name="SILENT">FALSE</field>
                                <field name="PARSEMODE">default</field>
                                <value name="MESSAGE">
                                  <shadow type="text" id="Jibht#5j$,NX4d^6ir!J">
                                    <field name="TEXT">text</field>
                                  </shadow>
                                  <block type="variables_get" id="t)_EHRRL]JtMf4ZO{ylQ">
                                    <field name="VAR" id=";9{([_kt$]I*Yb{(M,Kf">Rückmeldetext</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    

                    Ich habe unten bei der Zeit schon alles Mögliche verzucht einzustellen aber es wird nie die richtige Zeit angezeigt. Wenn ich unten z.B. auf Stunde stelle, und die Tür ist 70 Min auf ist dann kommt bei Telegramm die Meldung das die Tür 10 min auf war. Wie kann man das Lösen das die Zeit richtig angezeigt wird.
                    Auch wenn es im Prinzip nur Spielerei ist hätte ich es doch gerne das es funktioniert.
                    Danke

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    928
                    Online

                    31.9k
                    Users

                    80.3k
                    Topics

                    1.3m
                    Posts

                    blockly
                    4
                    8
                    578
                    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