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]Fenster Blockly Hilfe

    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

    [gelöst]Fenster Blockly Hilfe

    This topic has been deleted. Only users with topic management privileges can see it.
    • dslraser
      dslraser Forum Testing Most Active @sigi234 last edited by

      @sigi234
      tausche einfach die Timeout Bausteine gegen Intervall Bausteine, sollte gehen.

      sigi234 1 Reply Last reply Reply Quote 1
      • sigi234
        sigi234 Forum Testing Most Active @dslraser last edited by

        @dslraser sagte in Fenster Blockly Hilfe:

        @sigi234
        tausche einfach die Timeout Bausteine gegen Intervall Bausteine, sollte gehen.

        Oh Mann, manchmal hat man ein Brett vor dem Kopf. 😀

        dslraser 2 Replies Last reply Reply Quote 0
        • dslraser
          dslraser Forum Testing Most Active @sigi234 last edited by dslraser

          <xml xmlns="http://www.w3.org/1999/xhtml">
           <variables>
             <variable type="undefined" id="Intervall">Intervall</variable>
           </variables>
           <block type="on_ext" id="F!vi?BKRsLZog%?FBH:g" x="-112" y="-37">
             <mutation items="1"></mutation>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION"></field>
             <value name="OID0">
               <shadow type="field_oid" id=".%Kic*EGFUiKPCQ*RKf^">
                 <field name="oid">hm-rpc.1.OEQ0926852.1.STATE</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="controls_if" id="X3z1#^5Fw/yt.JJH%mgG">
                 <mutation else="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="kz6a*@]rTi@)ZP{,]#*:">
                     <field name="OP">NEQ</field>
                     <value name="A">
                       <block type="get_value" id="XEaJQQQ*$nX}=}pk-D/r">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rpc.1.OEQ0926852.1.STATE</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="Yrl[!=%9ZHJUAD;25Obz">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="timeouts_setinterval" id="u#rS73GY/m7T~.#Bh9QU">
                     <field name="NAME">Intervall</field>
                     <field name="INTERVAL">10</field>
                     <field name="UNIT">min</field>
                     <statement name="STATEMENT">
                       <block type="control" id="=*B,vjZW*hnjeJ!PgxP@">
                         <mutation delay_input="false"></mutation>
                         <field name="OID">alexa2.0.Echo-Devices.G090U50784350DKU.Commands.speak</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="text" id="s(HE-yMfiJs%,njRSwwp">
                             <field name="TEXT">Das Badfenster ist seit 10 Minuten offen</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                   </block>
                 </statement>
                 <statement name="ELSE">
                   <block type="timeouts_clearinterval" id="e^!S+IEUkz74-KWuLP)]">
                     <field name="NAME">Intervall</field>
                     <next>
                       <block type="control" id="|X=~p7*8$lmTqfr`DR.L">
                         <mutation delay_input="false"></mutation>
                         <field name="OID">alexa2.0.Echo-Devices.G090U50784350DKU.Commands.speak</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="text" id="r41/^`!#QQ8#L)reQ5BH">
                             <field name="TEXT">Danke, das Du das Fenster geschlossen hast.</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
          </xml>
          

          Bildschirmfoto 2019-12-15 um 13.08.10.png

          1 Reply Last reply Reply Quote 0
          • dslraser
            dslraser Forum Testing Most Active @sigi234 last edited by

            @sigi234
            hier kommt die Ansage aber alle 10 Minuten immer wieder, wenn das Fenster nicht geschlossen wird. Wenn Du das nur einmalig nach 10 Minuten willst, oder eine bestimmte Anzahl an Wiederholungen, dann musst Du noch einen Zähler einbauen.

            sigi234 Homoran 2 Replies Last reply Reply Quote 0
            • sigi234
              sigi234 Forum Testing Most Active @dslraser last edited by

              @dslraser sagte in [gelöst]Fenster Blockly Hilfe:

              @sigi234
              hier kommt die Ansage aber alle 10 Minuten immer wieder, wenn das Fenster nicht geschlossen wird.

              Ja , das will ich so.

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

                @dslraser sagte in [gelöst]Fenster Blockly Hilfe:

                hier kommt die Ansage aber alle 10 Minuten immer wieder,

                ich habe da sogar noch eine härtere Variante 😉

                https://github.com/Homoran/iobroker.sonos_api#beispiel-fenster-offen-meldung

                sigi234 1 Reply Last reply Reply Quote 3
                • sigi234
                  sigi234 Forum Testing Most Active @Homoran last edited by sigi234

                  @Homoran sagte in [gelöst]Fenster Blockly Hilfe:

                  @dslraser sagte in [gelöst]Fenster Blockly Hilfe:

                  hier kommt die Ansage aber alle 10 Minuten immer wieder,

                  ich habe da sogar noch eine härtere Variante 😉

                  https://github.com/Homoran/iobroker.sonos_api#beispiel-fenster-offen-meldung

                  Cool, wie setze ich das auf Alexas um? Einfach die Sonos weg und durch steuere speak ersetzen?
                  Room Name kann dann ja auch weg.

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

                    @sigi234
                    Isch 'abe keine fremde Frau im Haus 😉

                    Der verlinkte Beitrag war ein Ansatz ein HowTo wegen der Probleme mit TTS und SONOS für die User zu schreiben.
                    Deswegen ist da der Bezug auf SONOS.

                    Wenn "speak" der entsprechende Befehl für Alexa ist, kannst du das ersetzen, brauchst aber die Zusammensetzung des HTTP-Befehls überhaupt nicht.
                    Müsste also vieeeel einfacher sein.

                    dslraser 1 Reply Last reply Reply Quote 0
                    • dslraser
                      dslraser Forum Testing Most Active @Homoran last edited by

                      @Homoran @sigi234
                      das geht mit den fremden Frauen auch genau so zu machen, auch mit Lautstärken. Entweder einzelne ECHOS oder Gruppen, am besten Multiroom Musik Gruppen, da sind alle Ausgaben synchron.

                      sigi234 1 Reply Last reply Reply Quote 0
                      • sigi234
                        sigi234 Forum Testing Most Active @dslraser last edited by

                        @dslraser sagte in [gelöst]Fenster Blockly Hilfe:

                        @Homoran @sigi234
                        das geht mit den fremden Frauen auch genau so zu machen, auch mit Lautstärken. Entweder einzelne ECHOS oder Gruppen, am besten Multiroom Musik Gruppen, da sind alle Ausgaben synchron.

                        Umgebaut, irgendwo ist ein Fehler

                        Screenshot (963).png

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

                          @sigi234
                          Auf die Schnelle:
                          dir fehlt das erste Stop zyklische...
                          und da ist ein offenes "Maul" bei falls counter > 10

                          sigi234 1 Reply Last reply Reply Quote 0
                          • sigi234
                            sigi234 Forum Testing Most Active @Homoran last edited by

                            @Homoran sagte in [gelöst]Fenster Blockly Hilfe:

                            @sigi234
                            Auf die Schnelle:
                            dir fehlt das erste Stop zyklische...
                            und da ist ein offenes "Maul" bei falls counter > 10

                            Screenshot (965).png

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

                              @sigi234 Und?

                              Ich habe keine Ahnung wie du der fremden Frau die Lautstärke übergeben musst

                              dslraser sigi234 2 Replies Last reply Reply Quote 0
                              • dslraser
                                dslraser Forum Testing Most Active @Homoran last edited by

                                @Homoran sagte in [gelöst]Fenster Blockly Hilfe:

                                @sigi234 Und?

                                Ich habe keine Ahnung wie du der fremden Frau die Lautstärke übergeben musst

                                mit speak-volume (hat er noch gar nicht drinn)

                                1 Reply Last reply Reply Quote 0
                                • sigi234
                                  sigi234 Forum Testing Most Active @Homoran last edited by

                                  @Homoran sagte in [gelöst]Fenster Blockly Hilfe:

                                  Ich habe keine Ahnung wie du der fremden Frau die Lautstärke übergeben musst

                                  Aha, oh ja sollte ich auch ändern

                                  dslraser 1 Reply Last reply Reply Quote 0
                                  • dslraser
                                    dslraser Forum Testing Most Active @sigi234 last edited by

                                    @sigi234

                                    ich habe es mal mit einer Multiroom Musikgruppe probiert, geht.

                                    Bildschirmfoto 2019-12-15 um 22.51.05.png

                                    <xml xmlns="http://www.w3.org/1999/xhtml">
                                     <variables>
                                       <variable type="" id="#;wCh21CJ;hK(*=w2c4l">Zaehler</variable>
                                       <variable type="" id="HGh$As`$N^0W}Ki[4F6^">ECHO_Multiroom_Musikgruppe</variable>
                                       <variable type="undefined" id="Fenster_Timer">Fenster_Timer</variable>
                                       <variable type="" id="}A9,iuiND(cd(Yrf{GoP">Nachricht</variable>
                                     </variables>
                                     <block type="variables_set" id="l:]p[.m/yTGjjtWkI2gq" x="-87" y="-62">
                                       <field name="VAR" id="#;wCh21CJ;hK(*=w2c4l" variabletype="">Zaehler</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="M}/k`clF3elu1D[RVD[`">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="|0(W7wFH4ptVC;qeap1P">
                                           <field name="VAR" id="HGh$As`$N^0W}Ki[4F6^" variabletype="">ECHO_Multiroom_Musikgruppe</field>
                                           <value name="VALUE">
                                             <block type="field_oid" id="-.18yO;*svLGI{,BF%Jr">
                                               <field name="oid">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="@.X-r7ycZ3n=bk5]|VTf">
                                               <mutation delay_input="false"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="w6{*zt!/{t?p(`:MPc5U">
                                                   <field name="NUM">40</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="on_ext" id="F!vi?BKRsLZog%?FBH:g">
                                                   <mutation items="1"></mutation>
                                                   <field name="CONDITION">ne</field>
                                                   <field name="ACK_CONDITION"></field>
                                                   <value name="OID0">
                                                     <shadow type="field_oid" id=".%Kic*EGFUiKPCQ*RKf^">
                                                       <field name="oid">hm-rpc.0.xxx.1.STATE</field>
                                                     </shadow>
                                                   </value>
                                                   <statement name="STATEMENT">
                                                     <block type="controls_if" id="X3z1#^5Fw/yt.JJH%mgG">
                                                       <mutation else="1"></mutation>
                                                       <value name="IF0">
                                                         <block type="logic_compare" id="kz6a*@]rTi@)ZP{,]#*:">
                                                           <field name="OP">NEQ</field>
                                                           <value name="A">
                                                             <block type="get_value" id="XEaJQQQ*$nX}=}pk-D/r">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">hm-rpc.0.xxx.1.STATE</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="math_number" id="Yrl[!=%9ZHJUAD;25Obz">
                                                               <field name="NUM">0</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <statement name="DO0">
                                                         <block type="timeouts_clearinterval" id="tO=/.@3F=NZC4)X0%t2V">
                                                           <field name="NAME">Fenster_Timer</field>
                                                           <next>
                                                             <block type="timeouts_setinterval" id="u#rS73GY/m7T~.#Bh9QU">
                                                               <field name="NAME">Fenster_Timer</field>
                                                               <field name="INTERVAL">5</field>
                                                               <field name="UNIT">min</field>
                                                               <statement name="STATEMENT">
                                                                 <block type="variables_set" id="f55gkbe[jX_=959Esj)[">
                                                                   <field name="VAR" id="#;wCh21CJ;hK(*=w2c4l" variabletype="">Zaehler</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_arithmetic" id="`Lr(7fL~SD:u(8rV=ac9">
                                                                       <field name="OP">ADD</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number" id="PH5Vh.Qc`t|,m%{m^~F5">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="3EYN7qJuKcWTcF_bM[T]">
                                                                           <field name="VAR" id="#;wCh21CJ;hK(*=w2c4l" variabletype="">Zaehler</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number" id="c4hKg(Qm0W4-h8^$@.!*">
                                                                           <field name="NUM">5</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="controls_if" id="su+`OL7B?lh4Ln6_8TQ+">
                                                                       <mutation else="1"></mutation>
                                                                       <value name="IF0">
                                                                         <block type="logic_compare" id="sh3+N!CF]eT4wo`$|sre">
                                                                           <field name="OP">LTE</field>
                                                                           <value name="A">
                                                                             <block type="get_value" id="M}{|)ER0ipTg/+8l~7qp">
                                                                               <field name="ATTR">val</field>
                                                                               <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="B">
                                                                             <block type="math_number" id="q{6NWIBv5BL*${DRE:^%">
                                                                               <field name="NUM">95</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <statement name="DO0">
                                                                         <block type="control" id=";7LC91tyx]rjyFQM?YqX">
                                                                           <mutation delay_input="false"></mutation>
                                                                           <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_arithmetic" id="_houhb,QcNv{K*?yToWl">
                                                                               <field name="OP">ADD</field>
                                                                               <value name="A">
                                                                                 <shadow type="math_number" id="iK-Rj9=G(|Q,+{~~jPC}">
                                                                                   <field name="NUM">1</field>
                                                                                 </shadow>
                                                                                 <block type="get_value" id="`;8A%(+e?8_zQL/KHb/^">
                                                                                   <field name="ATTR">val</field>
                                                                                   <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="B">
                                                                                 <shadow type="math_number" id=",0n9PR$_+:hbRUxXWT?p">
                                                                                   <field name="NUM">5</field>
                                                                                 </shadow>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </statement>
                                                                       <statement name="ELSE">
                                                                         <block type="control" id="=9(xFgJK8+;wB.[my0of">
                                                                           <mutation delay_input="false"></mutation>
                                                                           <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_number" id="V%jI39P{+5iVFr$^g5L*">
                                                                               <field name="NUM">100</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </statement>
                                                                       <next>
                                                                         <block type="variables_set" id="*_1Trl}.^)5sC%/.lNvv">
                                                                           <field name="VAR" id="}A9,iuiND(cd(Yrf{GoP" variabletype="">Nachricht</field>
                                                                           <value name="VALUE">
                                                                             <block type="text_join" id="~aWj=ZJK`;i$u=C#PMk+">
                                                                               <mutation items="3"></mutation>
                                                                               <value name="ADD0">
                                                                                 <block type="text" id="GGxz]|4m5/6h_4j6^K+v">
                                                                                   <field name="TEXT">Das Badezimmerfenster ist seit </field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="ADD1">
                                                                                 <block type="variables_get" id="!zE$wP|^u8@#Ahq-pkrb">
                                                                                   <field name="VAR" id="#;wCh21CJ;hK(*=w2c4l" variabletype="">Zaehler</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="ADD2">
                                                                                 <block type="text" id="Uqzsr=FFV/o+AKIwnzvF">
                                                                                   <field name="TEXT"> Minuten offen. Bitte schließe das Badezimmerfenster.</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="control_ex" id="Lya;Sx:n`ob6$I0guX]F">
                                                                               <field name="TYPE">false</field>
                                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                                               <value name="OID">
                                                                                 <shadow type="field_oid" id="DWgN4ggi@.z8uJj*KlGY">
                                                                                   <field name="oid">Object ID</field>
                                                                                 </shadow>
                                                                                 <block type="variables_get" id="fyWnu]POf[cRwgCVVBBA">
                                                                                   <field name="VAR" id="HGh$As`$N^0W}Ki[4F6^" variabletype="">ECHO_Multiroom_Musikgruppe</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="VALUE">
                                                                                 <shadow type="logic_boolean" id="DO8$+jH~2=|[eg`X.aTT">
                                                                                   <field name="BOOL">TRUE</field>
                                                                                 </shadow>
                                                                                 <block type="variables_get" id="k)c6Fdm#4E{L+nAY7YyK">
                                                                                   <field name="VAR" id="}A9,iuiND(cd(Yrf{GoP" variabletype="">Nachricht</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="DELAY_MS">
                                                                                 <shadow type="math_number" id="d}#HDwNCbef$9Qi!P4T1">
                                                                                   <field name="NUM">0</field>
                                                                                 </shadow>
                                                                               </value>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </statement>
                                                       <statement name="ELSE">
                                                         <block type="timeouts_clearinterval" id="e^!S+IEUkz74-KWuLP)]">
                                                           <field name="NAME">Fenster_Timer</field>
                                                           <next>
                                                             <block type="variables_set" id="ldI2T{QSVIxlFtGIg:$@">
                                                               <field name="VAR" id="#;wCh21CJ;hK(*=w2c4l" variabletype="">Zaehler</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id=",D0jzu`pl6D)q(n41qZN">
                                                                   <field name="NUM">0</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="H663]^O0Cj=3z2~;NB~l">
                                                                   <mutation delay_input="false"></mutation>
                                                                   <field name="OID">alexa2.0.Echo-Devices.xxx.Player.volume</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="-K226Z`qy=]qR2#@Of6F">
                                                                       <field name="NUM">40</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control_ex" id="^G%?e)6F}rujcbmkrQ2U">
                                                                       <field name="TYPE">false</field>
                                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                                       <value name="OID">
                                                                         <shadow type="field_oid" id="DWgN4ggi@.z8uJj*KlGY">
                                                                           <field name="oid">Object ID</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="*X6|~z6Y/IQ~:lBRL0-!">
                                                                           <field name="VAR" id="HGh$As`$N^0W}Ki[4F6^" variabletype="">ECHO_Multiroom_Musikgruppe</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="VALUE">
                                                                         <shadow type="logic_boolean" id="DO8$+jH~2=|[eg`X.aTT">
                                                                           <field name="BOOL">TRUE</field>
                                                                         </shadow>
                                                                         <block type="text" id="Jm4bT`j^~3?/2_^iq_-6">
                                                                           <field name="TEXT">Danke das Du das Badezimmerfenster geschlossen hast.</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="DELAY_MS">
                                                                         <shadow type="math_number" id=")X|08^)cf#:t1*9SP7._">
                                                                           <field name="NUM">0</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                    </xml>
                                    

                                    1 Reply Last reply Reply Quote 1
                                    • D
                                      derDennis99 last edited by

                                      @sigi234 du musst dann einfach noch mal prüfen ob das Fenster noch auf ist... also "Falls wert von Fenster = 1 dann steuere speak....."

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

                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      875
                                      Online

                                      31.9k
                                      Users

                                      80.3k
                                      Topics

                                      1.3m
                                      Posts

                                      blockly
                                      4
                                      18
                                      1258
                                      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