Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Regensensor Blockly vereinen

    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

    Regensensor Blockly vereinen

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

      @paul53
      Das Problem mit den 5 Minute hatte ich gerade. Der Datenpunkt wurde auch nicht aktualisiert.
      Durschaue das Blockly mit delay nicht, werde es aber mal probieren.
      Die Angaben sind alle Millisekunden?

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

        @gonzokalle sagte: Die Angaben sind alle Millisekunden?

        Ja.

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

          @paul53 ✋
          Es funktioniert nun so, wie ich es mir vorgestellt habe. 😁
          b4808d58-9940-46b7-bb45-d2088949ded5-image.png

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

            @gonzokalle sagte: Es funktioniert nun

            Wirklich? Mit der falschen Variablen "wert"?

            Bild_2022-05-05_000428004.png

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

              @paul53
              Hast recht, da muss der Wert rein und nicht die Var Wert.
              Da falle ich jedes mal drauf rein.
              Alexa hat heut nicht viel geredet. 😆

              S 1 Reply Last reply Reply Quote 0
              • S
                Sushibomba @Gonzokalle last edited by Sushibomba

                @gonzokalle

                Hey habe mal eben dein Script bei mir im Blockly nachgebaut.
                Es funktioniert auch soweit, nur zeigt er bei mir immer nur in Telegram:

                🌧️ Es regnet seit

                oder

                ⛅ Es ist trocken seit

                an. Müsste er nicht dahinter dann die Uhrzeit anzeigen? Wenn ja irgendwie sehe ich diesen Wert bei dir im Blockly nicht oder ich bin zu blöd 😄
                Wäre klasse, wenn du mir kurz unter die Arme greifen könntest.

                PS: Und könntest du mir vielleicht noch dein Script schicken zur Tageszeitberechnugn also TAg/Nacht.

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gonzokalle @Sushibomba last edited by

                  @sushibomba
                  Bei Telegram steht ja um wieviel Uhr die Nachricht gekommen ist in HH:MM. Das hat mir bisher immer gereicht.
                  Tag/Nacht schaue ich morgen mal.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Sushibomba @Gonzokalle last edited by Sushibomba

                    @gonzokalle
                    Danke. Habe es erfreulicherweise selbst lösen können. Nur Tag/Nacht klappt irgendwie nicht so richtig.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      Gonzokalle @Sushibomba last edited by Gonzokalle

                      @sushibomba
                      Ich lasse mit dem Zeit Trigger um 22 Uhr Nacht in den DP schreiben und um 8 Uhr Tag.
                      362cd15b-b898-440d-988c-9fffdca2acb9-image.png

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Sushibomba @Gonzokalle last edited by

                        @gonzokalle

                        Achso ja so gehts natürlich auch nur ist die Zeit dann immer fix.
                        Wollte es eigentlich irgendwie mit dem Astro Trigger machen aber das hat nicht ganz funktioniert.

                        G 1 Reply Last reply Reply Quote 0
                        • DJMarc75
                          DJMarc75 last edited by DJMarc75

                          @Gonzokalle @Sushibomba

                          für solche Aufgaben nutze ich folgenden DP:

                          javascript.0.variables.isDayTime
                          

                          dieser wird automatisch bei Sonnenaufgang auf "true" und Sonnenuntergang auf "false" gesetzt.

                          Screenshot 2023-05-25 115240.png

                          S 1 Reply Last reply Reply Quote 1
                          • G
                            Gonzokalle @Sushibomba last edited by

                            @sushibomba
                            Astro Trigger habe ich extra nicht gemacht. Sonntags um 5 Uhr muss ich nicht wissen das es regnet.

                            Astro Trigger nehme ich für Lichtsteuerung.
                            5d5992e5-fb15-4756-b207-8819522f3c73-image.png

                            @DJMarc75
                            Interessant, kannte ich noch nicht.

                            Homoran 1 Reply Last reply Reply Quote 0
                            • S
                              Sushibomba @DJMarc75 last edited by

                              @djmarc75 Danke dir 😉

                              Chris76e 1 Reply Last reply Reply Quote 1
                              • Homoran
                                Homoran Global Moderator Administrators @Gonzokalle last edited by

                                @gonzokalle sagte in Regensensor Blockly vereinen:

                                Sonntags um 5 Uhr muss ich nicht wissen das es regnet.

                                dann musst du vor dem Absenden prüfen ob Sonntag ist

                                1 Reply Last reply Reply Quote 0
                                • Chris76e
                                  Chris76e @Sushibomba last edited by

                                  @sushibomba sagte in Regensensor Blockly vereinen:

                                  Danke. Habe es erfreulicherweise selbst lösen können.

                                  Hi, kannst du das fertige Blockly zur verfügung stellen?

                                  Vielen Dank

                                  G S 2 Replies Last reply Reply Quote 0
                                  • G
                                    Gonzokalle @Chris76e last edited by

                                    @chris76e
                                    Das Regensensor Blockly oder das Astro Blockly?

                                    Chris76e 1 Reply Last reply Reply Quote 0
                                    • Chris76e
                                      Chris76e @Gonzokalle last edited by

                                      @gonzokalle

                                      Regensensor Blockly

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sushibomba @Chris76e last edited by

                                        @chris76e
                                        Klaro 🙂

                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                          <variables>
                                            <variable id="YM#%4ryA|zg=hJxPLR]9">delay</variable>
                                            <variable type="timeout" id="timeout2">timeout2</variable>
                                            <variable id="Px*`UM+[bBTnRrkz7ahY">msg</variable>
                                            <variable id="uZcvBI;$3hz:XKTG%H~a">lastMsg</variable>
                                          </variables>
                                          <block type="variables_set" id=";{/vyPH[lUJ|j@ydR+U5" x="263" y="588">
                                            <field name="VAR" id="YM#%4ryA|zg=hJxPLR]9">delay</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="+}tQ;h6~%j_?ACtg|gqz">
                                                <field name="NUM">10000</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="on_ext" id="MQumz1aO.lQ;5n3mi_CK">
                                                <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="GA2V$#WqnaO=^jS}aDm}">
                                                    <field name="oid">zigbee.0.00158d0009e15c4e.detected</field>
                                                  </shadow>
                                                </value>
                                                <statement name="STATEMENT">
                                                  <block type="timeouts_cleartimeout" id="J_e=W;xlRrG/7CC-RI6]">
                                                    <field name="NAME">delay</field>
                                                    <next>
                                                      <block type="timeouts_settimeout_variable" id="rY,mUnIIXAQ4V[i#XS$$">
                                                        <field name="NAME">timeout2</field>
                                                        <value name="DELAY_MS">
                                                          <shadow type="math_number" id="te*eQbAx}q,v=}EO-HEx">
                                                            <field name="NUM">1000</field>
                                                          </shadow>
                                                          <block type="variables_get" id="D$#{DMS]x+#KV1lRMlTw">
                                                            <field name="VAR" id="YM#%4ryA|zg=hJxPLR]9">delay</field>
                                                          </block>
                                                        </value>
                                                        <statement name="STATEMENT">
                                                          <block type="controls_if" id="bKIjzCMM.7E!I4!47`;!">
                                                            <mutation else="1"></mutation>
                                                            <value name="IF0">
                                                              <block type="logic_compare" id="(YeX3v|8R23Hw_)7G,M|">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="aaebj(u.x23^a~|2G-@r">
                                                                    <field name="VAR" id="YM#%4ryA|zg=hJxPLR]9">delay</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="D`wFSS%H%bDAi5Co+{9R">
                                                                    <field name="NUM">10000</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="variables_set" id="0mGZ4EPI6?.;0ylMMA_s">
                                                                <field name="VAR" id="YM#%4ryA|zg=hJxPLR]9">delay</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="D8/B+K5Qk+J24mcB|~*r">
                                                                    <field name="NUM">30000</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <statement name="ELSE">
                                                              <block type="variables_set" id="TOGWW8xacPfv_1eELS+,">
                                                                <field name="VAR" id="YM#%4ryA|zg=hJxPLR]9">delay</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="R}cJqg|l2Q`sV2T`0igG">
                                                                    <field name="NUM">10000</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="controls_if" id="qXC,B2]hdVPPQVSG#0xz">
                                                                <mutation else="1"></mutation>
                                                                <value name="IF0">
                                                                  <block type="on_source" id="xEp}O*VO~C)oX.m_17sq">
                                                                    <field name="ATTR">state.val</field>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="debug" id="GbF0aP1FWJbz6H*ylYC7">
                                                                    <field name="Severity">log</field>
                                                                    <value name="TEXT">
                                                                      <shadow type="text" id="E=^Vk*yCQq!2u*wB^sWw">
                                                                        <field name="TEXT">Es regnet!</field>
                                                                      </shadow>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id="A@nCgjPl)N%1O/+%[6KR">
                                                                        <field name="VAR" id="Px*`UM+[bBTnRrkz7ahY">msg</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="fD?BmD)*eSZqPw$}kRvN">
                                                                            <field name="TEXT">🌧️ Es regnet seit: </field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="update" id="4bR$MR$-E|fp~hS7R$sS">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">0_userdata.0.VIS.Eigene_Datenpunkte.Sensoren.Regensensor</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="$=7.8%G6.XR%p4GW_:*o">
                                                                                <field name="TEXT">Regen</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <statement name="ELSE">
                                                                  <block type="debug" id="lW0w^=/{7?y-h.k;~g+.">
                                                                    <field name="Severity">log</field>
                                                                    <value name="TEXT">
                                                                      <shadow type="text" id="dUdC#XW0Ofqw=;KFLFrC">
                                                                        <field name="TEXT">Es ist trocken!</field>
                                                                      </shadow>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id="9uo@uL`$19!v$1xicC;Y">
                                                                        <field name="VAR" id="Px*`UM+[bBTnRrkz7ahY">msg</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="k|t_kalP`p-}MYTNx]c)">
                                                                            <field name="TEXT">⛅ Es ist trocken seit: </field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="update" id="[|(O6pJhjjLsvg_oPDY9">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">0_userdata.0.VIS.Eigene_Datenpunkte.Sensoren.Regensensor</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="nz{LIn_/3w/)`Ku$XsSm">
                                                                                <field name="TEXT">Trocken</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="controls_if" id="tIrmc/NqX{h+nvyI5)Wn">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="Hr(,J3HaZuwe6M`rgt0p">
                                                                        <field name="OP">NEQ</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id="sgPGTt^$9/-SBiXr62DZ">
                                                                            <field name="VAR" id="Px*`UM+[bBTnRrkz7ahY">msg</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="variables_get" id="!?^{C=Q=H3NAi-*#}Hf`">
                                                                            <field name="VAR" id="uZcvBI;$3hz:XKTG%H~a">lastMsg</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="variables_set" id="Ewz8`X_80GmZpB?N/Rg*">
                                                                        <field name="VAR" id="uZcvBI;$3hz:XKTG%H~a">lastMsg</field>
                                                                        <value name="VALUE">
                                                                          <block type="variables_get" id="3PK?u-Gk3r[oK;wDIj_H">
                                                                            <field name="VAR" id="Px*`UM+[bBTnRrkz7ahY">msg</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="controls_if" id="fw5%cK9r[$FOQY?7M{?n">
                                                                            <value name="IF0">
                                                                              <block type="logic_operation" id="IP6d{Ol89E)i}i3%|Qr/" inline="false">
                                                                                <field name="OP">AND</field>
                                                                                <value name="A">
                                                                                  <block type="on_source" id=".Sad9s?yEPT6bmevg1K#">
                                                                                    <field name="ATTR">state.val</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_compare" id="8Ek_%muzvXq42!kbkJI%">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="@X,+.D[N2_XE{Wj)[!xi">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">0_userdata.0.VIS.Eigene_Datenpunkte.Tageszeit</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="text" id="kgUsh/_8jM_SFV7_L4a/">
                                                                                        <field name="TEXT">Tag</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="JVHP0_0-HgVqE=0?:yV%">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                <field name="OID">alexa2.0.Echo-Devices.G0918309036602A9.Commands.speak</field>
                                                                                <field name="WITH_DELAY">TRUE</field>
                                                                                <field name="DELAY_MS">1</field>
                                                                                <field name="UNIT">sec</field>
                                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                                <comment pinned="false" h="80" w="160">Hier das Echo Gerät mit speak auswählen, welches die Updates ansagen soll. Für mehrere Echo Geräte einfach den Block kopieren und drunter anhängen.</comment>
                                                                                <value name="VALUE">
                                                                                  <block type="text" id="atpiy%H2G_IZa!oLfZd_">
                                                                                    <field name="TEXT">30;Hey, es fängt gerade an zu regnen.</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="telegram" id="9gM_-~h%1Gj4h~^7IsFq">
                                                                                <field name="INSTANCE"></field>
                                                                                <field name="LOG"></field>
                                                                                <field name="SILENT">FALSE</field>
                                                                                <field name="PARSEMODE">default</field>
                                                                                <field name="ESCAPING">FALSE</field>
                                                                                <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                                <value name="MESSAGE">
                                                                                  <shadow type="text" id="16%7eWeUx^=[]wcA]DYd">
                                                                                    <field name="TEXT">text</field>
                                                                                  </shadow>
                                                                                  <block type="text_join" id="6e7En|$yufE3)riC1o{L">
                                                                                    <mutation items="2"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="variables_get" id="p-iCge:`Dm)$5wDc7w%5">
                                                                                        <field name="VAR" id="Px*`UM+[bBTnRrkz7ahY">msg</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD1">
                                                                                      <block type="time_get" id="ce|f=6BC@ZChs$je={xL">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                        <field name="OPTION">hh:mm</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                          <block type="comment" id="]#;fUXsqP;An.q2Ca+dQ" x="513" y="688">
                                            <field name="COMMENT">Verzögerung um ...</field>
                                          </block>
                                          <block type="comment" id=";q{hIgl39F;$bEv%B#PP" x="613" y="788">
                                            <field name="COMMENT">Falls die Var. auf 10 Sek. dann timeout auf 30 Sek.</field>
                                            <next>
                                              <block type="comment" id="E%XhYYjw|S]V;$IUgBQ#">
                                                <field name="COMMENT">Falls die Var. auf 30 Sek. dann timeout auf 10 Sek.</field>
                                              </block>
                                            </next>
                                          </block>
                                          <block type="comment" id="?cC[Mlaf2uS3FQ*gp:jF" x="638" y="888">
                                            <field name="COMMENT">Falls der Sensor Regen meldet</field>
                                          </block>
                                          <block type="comment" id="7END()XIOq(@M~:0@=/~" x="638" y="1163">
                                            <field name="COMMENT">Falls sich die Meldung ändert ...</field>
                                          </block>
                                        </xml>
                                        
                                        Chris76e DJMarc75 2 Replies Last reply Reply Quote 0
                                        • Chris76e
                                          Chris76e @Sushibomba last edited by

                                          @sushibomba

                                          Danke 👍

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            Sushibomba @Chris76e last edited by

                                            @chris76e

                                            Gerne doch 😉

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            951
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            41
                                            2865
                                            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