Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alexa Routinen aktivieren und deaktivieren

    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

    Alexa Routinen aktivieren und deaktivieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jan1 @IceD112 last edited by

      @iced112
      Den DP fragst in der Falls Bedingung ab, also falls DP true, dann starte Script, wenn false mach nix. Also genau wie alle anderen Bedingung damit ein Script läuft oder eben nicht.
      Das ist exakt das Prinzip wie Scripte aufgebaut werden. Trigger der das gesamt Script startet, bei Dir der Cron und dann eben mach das wenn... als FALLS Bedingung.
      Wenn das verstanden hast, hast Blockly verstanden.

      I haselchen 2 Replies Last reply Reply Quote 0
      • I
        IceD112 @Jan1 last edited by

        @jan1
        Ich habe es mal damit versucht! Mit einer Variablen, wenn der DP auf True, dann soll der Zeitplan druchlaufen und entsprechende Aktionen durchführen, wenn auf false, dann halt nicht
        Kann das so funktionieren?

        Screenshot_2021-01-31 javascript - ioBroker.png

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

          Wenn du schon fleissig am Antworten bist @Jan1 🙂
          ich hab eine WAF Frage 🙂
          Wir haben eine Steckdose für Receiver und TV am Bett. Die ist täglich zu einer bestimmten Uhrzeit eingestellt, um die beiden Geräte auszuschalten.
          Über die Alexa App (ist eine geflashte Gosund)
          Nun müsste ich die App auf das Handy installieren und ihr erklären wie man das weiterstellt, wenn die beiden Geräte noch nicht ausgehen sollen.
          Ist mir zu kompliziert und zeitaufwendig für sie 😉
          Kann ich über iobroker was managen , dass wir Alexa sagen : Stelle Routine auf XY Uhr ?

          Vielleicht hat @dslraser als Experte auch noch ne Idee.

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

            @haselchen
            Das Würde schon über Alexa funktionieren, aber da denkst Du einfach zu kompliziert 😉

            Ich habe ein DP der heißt wach und den kann man dann schön für genau solche Dinge verwenden. Ok, dazu muss ich auch erklären das ich zwei Routinen habe, die aufstehen und Feierabendheißen, die wiederum den wach DP ein und ausschalten.

            Schon verstanden wie einfach man dann manche zeitlich gesteuerte Scripte eben etwas smarter machen kann? 😉

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

              @jan1

              Vielleicht ist durch den Schnee bei mir das Hirn eingefroren,
              aber ich will Alexa ja Uhrzeit wie bei einem Timer mitgeben.
              In der Routine ist sagen wir täglich 23Uhr eingestellt.
              Und wenn Trulla weiter fernsehen will, soll sie sagen: Alexa stelle Routine auf 1Uhr.

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

                @haselchen
                Das ist zu umständlich, würde aber auch gehen was aber einiges an Blocky Gefummel erfordert und aus Erfahrung nicht 100% klappt, was nur weiteren Stress mit Deiner Liebsten bedeutet.
                Denk Dich mal in mein Zentrum rein, ist Kindergeburtstag und tot sicher 🙂

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

                  @jan1

                  Ist schon spät und ich alt 😁 😁
                  Kann man mit deiner Lösung Alexa ansprechen, wie ich es möchte?

                  JA / NEIN

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

                    @haselchen
                    Ja das geht, da die Tante ja auch alles im Alexa Adapter rückmeldet und man das auswerten kann. Ich muss mal schauen wie ich das mal gebastelt hatte, aber wie geschrieben, ich war mit der Lösung nicht so ganz zu Frieden.

                    Über die Erkennung ob wach oder eben nicht, ist das wesentlich smarter und man muss nichts tum, außer Alexa mitteilen, dass Feuabend ist 😁

                    So hier mal der Ansatz für die komplizierte Lösung:
                    Du nimmst den Block als Objekt für den Trigger 86c707ca-0652-4d10-8ce3-f4b81ab9ff46-grafik.png
                    da kommt dann das Echo Device rein, das Du ansprechen willst in dem Format:

                    alexa2.0.Echo-Devices.********.Alarm.*.triggered
                    

                    Die ** sind die ID Deines Echo 😉

                    So, dann kannst z.B. über den Befehle "Alexa, sprich mir nach 22Uhr" den DP summary auswerten der dann das enthält:

                    sprich mir nach zwei und zwanzig uhr
                    

                    und schon hast ne Uhrzeit, nur blöd dass die geschrien ist und nicht als Zahl. Ich habs ja geschrieben, ich war damit nicht glücklich 🙂

                    Da kannst mal bei paul53 nachfragen, der ist bei so exotischen Blockly Geschichten wesentlich fitter als ich.

                    M 1 Reply Last reply Reply Quote 0
                    • I
                      IceD112 @IceD112 last edited by

                      @iced112

                      Also das hat nicht wie gewünscht geklappt.
                      Ohne den Zeitplan läuft die Logik durch. Aber ich bekomme s nicht hin, zu triggern, dass der Zeitplan nur dann aktiv sein soll, wenn der Wert vom Daten Punkt "Wecker" auf True steht.
                      Screenshot_2021-01-31 objects - ioBroker.png
                      Stimmt denn was mit der Konfig des Datenpunkts nicht?
                      Das war jetzt mal mein letzter Versuch. Ohne den Zeitpan, nur um zu testen, ob das Skriipt durchläuft wenn der Wecker auf true steht. Ging auch nicht
                      Screenshot_2021-01-31 javascript - ioBroker(1).png

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

                        @iced112
                        poste mal den Blockly Export, ich bau es um 😉

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

                          Neues Textdokument.txt

                          Das dann aber mit der Zeitsteuerung

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

                            @iced112

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <variables>
                               <variable id="ofd~_1ACNUa,u:yTe6Xo">Wecker</variable>
                             </variables>
                             <block type="variables_set" id="DYt]kcwT0(7Twkby=RUM" x="-1437" y="-2287">
                               <field name="VAR" id="ofd~_1ACNUa,u:yTe6Xo">Wecker</field>
                               <value name="VALUE">
                                 <block type="get_value" id="0/U@sFcqH7MF:9Zwh!0;">
                                   <field name="ATTR">val</field>
                                   <field name="OID">0_userdata.0.Wecker</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="schedule" id="FDZzg$+?8@EF;2TJ1+Hf">
                                   <field name="SCHEDULE">20 6 * * 1-5</field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="R+}dTh:/84,:.eP47x{W">
                                       <value name="IF0">
                                         <block type="variables_get" id="0~{]m|~pwQLG|-Y)d85/">
                                           <field name="VAR" id="ofd~_1ACNUa,u:yTe6Xo">Wecker</field>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="control" id="^PW8?s^e|Wa?gH[),z2,">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.volume</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="l=}]AW|Goo80SNhxyb/a">
                                               <field name="NUM">20</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="toggle" id="4gfj%JUwi)?u/oEpY%O:">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Commands.weather</field>
                                               <field name="WITH_DELAY">TRUE</field>
                                               <field name="DELAY_MS">100</field>
                                               <field name="UNIT">ms</field>
                                               <field name="CLEAR_RUNNING">FALSE</field>
                                               <next>
                                                 <block type="control" id="p5U;@9(7Rrc_?[WgyZ*3">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.TuneIn-Station</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="text" id="Z)Vn1ftskb9r@EVPq;rG">
                                                       <field name="TEXT">Rockland Radio</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="%q^R;K3;}BkSu.UF^~+k">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.powerState</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="logic_boolean" id="*TGqx13chu]y;={upwC-">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="-!;EXQI[Gl[xT7y:2780">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.colorRgb</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="text" id="l2XEJN~U=Bu-m[Ls1z*w">
                                                               <field name="TEXT">#fe870b</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="+*rXhKZN~E|HuB]0/?`o">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.brightness</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="text" id="s_^Px}n;^=1]PC,dP]V(">
                                                                   <field name="TEXT">10</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="2J`1OnKu}*Wl];l{gZ,g">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                   <field name="OID">shelly.0.SHSW-25#40F52022FBE9#1.Shutter.Open</field>
                                                                   <field name="WITH_DELAY">TRUE</field>
                                                                   <field name="DELAY_MS">15</field>
                                                                   <field name="UNIT">sec</field>
                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="QM=%!2#6}_`*h,-gg=^R">
                                                                       <field name="NUM">100</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="-!^5Y7!)nJ8le~d||u]y">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                       <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.brightness</field>
                                                                       <field name="WITH_DELAY">TRUE</field>
                                                                       <field name="DELAY_MS">2</field>
                                                                       <field name="UNIT">min</field>
                                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="text" id="{Y(3]/v.:{!#eS_{ON=i">
                                                                           <field name="TEXT">30</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="control" id="2WUDi7JOLYQXjFHUTv2?">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                           <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.controlPause</field>
                                                                           <field name="WITH_DELAY">TRUE</field>
                                                                           <field name="DELAY_MS">25</field>
                                                                           <field name="UNIT">min</field>
                                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="logic_boolean" id="=n~b:OnNONV}fxvh[39i">
                                                                               <field name="BOOL">TRUE</field>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="control" id="edx6DR_R$83$[Kj$5k,-">
                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                               <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.powerState</field>
                                                                               <field name="WITH_DELAY">TRUE</field>
                                                                               <field name="DELAY_MS">25</field>
                                                                               <field name="UNIT">min</field>
                                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                                               <value name="VALUE">
                                                                                 <block type="logic_boolean" id="$u9/f8$ZI|1Vdp0#MZki">
                                                                                   <field name="BOOL">FALSE</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="schedule" id="Hm_D53ht]Ae5Cj$~HS,@">
                                       <field name="SCHEDULE">30 6 * * 1-5</field>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id="KuiZ`3XxI-lg7Fdt?qHZ">
                                           <value name="IF0">
                                             <block type="variables_get" id="Ke`xp(06MN_U1_W3P=#C">
                                               <field name="VAR" id="ofd~_1ACNUa,u:yTe6Xo">Wecker</field>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="control" id="4m^q@Ef?#*6p3YB1SQ{,">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.G2A0P3077474013G.Player.volume</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="?#$C)]NxtQ[4IFA_?Cyc">
                                                   <field name="NUM">30</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="[2r7$@{/^YHy99)lQQ/f">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.TuneIn-Station</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="text" id="5{Uhc#^I]K9rV=4QLIgC">
                                                       <field name="TEXT">BigFM Deutschland</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="ay-evc~N30gBl5(7OAHC">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="logic_boolean" id="=.}D?hrHnu2w*cUf(nRc">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="LMX|gQi]6k?9!Ap!C]KL">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0-rgb</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="text" id="+Jeok%[aC4+g6O*`K7$=">
                                                               <field name="TEXT">#ff00ff</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="hmixh_emLIpgEeR{RL,6">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0-luminance</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="text" id="8GQ,X~XgSEN,xWY`*cQz">
                                                                   <field name="TEXT">100</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="jffgnWrwjoKw#Moaj0Dn">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                   <field name="OID">alexa2.0.Echo-Devices.G2A0P3077474013G.Player.controlPause</field>
                                                                   <field name="WITH_DELAY">TRUE</field>
                                                                   <field name="DELAY_MS">20</field>
                                                                   <field name="UNIT">min</field>
                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="logic_boolean" id="TZFu#i%xXs!vY#O)!|%N">
                                                                       <field name="BOOL">TRUE</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="lST$q8DAct[KzCoNFbzk">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                       <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0</field>
                                                                       <field name="WITH_DELAY">TRUE</field>
                                                                       <field name="DELAY_MS">20</field>
                                                                       <field name="UNIT">min</field>
                                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="logic_boolean" id="ao/pm!sl*vy-dHVUYXQ!">
                                                                           <field name="BOOL">FALSE</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                            </xml>
                            

                            😉

                            oder noch besser ohne Variable, da die flüchig ist und Du den DP auch direkt abfragen kannst:

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <block type="schedule" id="FDZzg$+?8@EF;2TJ1+Hf" x="-1412" y="-2487">
                               <field name="SCHEDULE">20 6 * * 1-5</field>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="R+}dTh:/84,:.eP47x{W">
                                   <value name="IF0">
                                     <block type="get_value" id="0/U@sFcqH7MF:9Zwh!0;">
                                       <field name="ATTR">val</field>
                                       <field name="OID">0_userdata.0.Wecker</field>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="^PW8?s^e|Wa?gH[),z2,">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.volume</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="l=}]AW|Goo80SNhxyb/a">
                                           <field name="NUM">20</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="toggle" id="4gfj%JUwi)?u/oEpY%O:">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                           <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Commands.weather</field>
                                           <field name="WITH_DELAY">TRUE</field>
                                           <field name="DELAY_MS">100</field>
                                           <field name="UNIT">ms</field>
                                           <field name="CLEAR_RUNNING">FALSE</field>
                                           <next>
                                             <block type="control" id="p5U;@9(7Rrc_?[WgyZ*3">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.TuneIn-Station</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="text" id="Z)Vn1ftskb9r@EVPq;rG">
                                                   <field name="TEXT">Rockland Radio</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="%q^R;K3;}BkSu.UF^~+k">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.powerState</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="logic_boolean" id="*TGqx13chu]y;={upwC-">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="-!;EXQI[Gl[xT7y:2780">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.colorRgb</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="l2XEJN~U=Bu-m[Ls1z*w">
                                                           <field name="TEXT">#fe870b</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="+*rXhKZN~E|HuB]0/?`o">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.brightness</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="text" id="s_^Px}n;^=1]PC,dP]V(">
                                                               <field name="TEXT">10</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="2J`1OnKu}*Wl];l{gZ,g">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                               <field name="OID">shelly.0.SHSW-25#40F52022FBE9#1.Shutter.Open</field>
                                                               <field name="WITH_DELAY">TRUE</field>
                                                               <field name="DELAY_MS">15</field>
                                                               <field name="UNIT">sec</field>
                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id="QM=%!2#6}_`*h,-gg=^R">
                                                                   <field name="NUM">100</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="-!^5Y7!)nJ8le~d||u]y">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                   <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.brightness</field>
                                                                   <field name="WITH_DELAY">TRUE</field>
                                                                   <field name="DELAY_MS">2</field>
                                                                   <field name="UNIT">min</field>
                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="text" id="{Y(3]/v.:{!#eS_{ON=i">
                                                                       <field name="TEXT">30</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="2WUDi7JOLYQXjFHUTv2?">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                       <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.controlPause</field>
                                                                       <field name="WITH_DELAY">TRUE</field>
                                                                       <field name="DELAY_MS">25</field>
                                                                       <field name="UNIT">min</field>
                                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="logic_boolean" id="=n~b:OnNONV}fxvh[39i">
                                                                           <field name="BOOL">TRUE</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="control" id="edx6DR_R$83$[Kj$5k,-">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                           <field name="OID">alexa2.0.Smart-Home-Devices.84c750d7-d2de-428e-915c-2e40723608dc.powerState</field>
                                                                           <field name="WITH_DELAY">TRUE</field>
                                                                           <field name="DELAY_MS">25</field>
                                                                           <field name="UNIT">min</field>
                                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="logic_boolean" id="$u9/f8$ZI|1Vdp0#MZki">
                                                                               <field name="BOOL">FALSE</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                               <next>
                                 <block type="schedule" id="Hm_D53ht]Ae5Cj$~HS,@">
                                   <field name="SCHEDULE">30 6 * * 1-5</field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="KuiZ`3XxI-lg7Fdt?qHZ">
                                       <value name="IF0">
                                         <block type="get_value" id="(rIYa~!~x.~^qxReU${p">
                                           <field name="ATTR">val</field>
                                           <field name="OID">0_userdata.0.Wecker</field>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="control" id="4m^q@Ef?#*6p3YB1SQ{,">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">alexa2.0.Echo-Devices.G2A0P3077474013G.Player.volume</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="?#$C)]NxtQ[4IFA_?Cyc">
                                               <field name="NUM">30</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="[2r7$@{/^YHy99)lQQ/f">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.G6G16D100405094S.Player.TuneIn-Station</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="text" id="5{Uhc#^I]K9rV=4QLIgC">
                                                   <field name="TEXT">BigFM Deutschland</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="ay-evc~N30gBl5(7OAHC">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="logic_boolean" id="=.}D?hrHnu2w*cUf(nRc">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="LMX|gQi]6k?9!Ap!C]KL">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0-rgb</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="+Jeok%[aC4+g6O*`K7$=">
                                                           <field name="TEXT">#ff00ff</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="hmixh_emLIpgEeR{RL,6">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0-luminance</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="text" id="8GQ,X~XgSEN,xWY`*cQz">
                                                               <field name="TEXT">100</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="jffgnWrwjoKw#Moaj0Dn">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                               <field name="OID">alexa2.0.Echo-Devices.G2A0P3077474013G.Player.controlPause</field>
                                                               <field name="WITH_DELAY">TRUE</field>
                                                               <field name="DELAY_MS">20</field>
                                                               <field name="UNIT">min</field>
                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="logic_boolean" id="TZFu#i%xXs!vY#O)!|%N">
                                                                   <field name="BOOL">TRUE</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="lST$q8DAct[KzCoNFbzk">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                   <field name="OID">meross.0.2008288194496790827348e1e92ec73b.0</field>
                                                                   <field name="WITH_DELAY">TRUE</field>
                                                                   <field name="DELAY_MS">20</field>
                                                                   <field name="UNIT">min</field>
                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="logic_boolean" id="ao/pm!sl*vy-dHVUYXQ!">
                                                                       <field name="BOOL">FALSE</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                            </xml>
                            

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

                              @jan1

                              Ja cool.

                              So und so ähnlich, ohne den Zeitplan, hatte ich vorhin mal einige Test gemacht. Aber wenn ich den State des DP geändert habe, tat sich nichts. Bis ich gerafft habe, dass ein Trigger gefehlt hat.
                              Haben deinen Umbau jetzt mal genommen und den Zeitplan gegen den Trigger "Falls Objekt Wecker wurde geändert" getauscht und das hat funktioniert.

                              Aber damit ich es verstehe... Woher bekommt das Skript den Bezug, ob der DP auf wahr oder flasch steht und daher unterscheidet dass innerhalb des Zeitplans die darunter folgenden Aktionen ausgeführt werden sollen oder nicht?
                              Da steht ja "Falls Wert von Objekt ID Wecker"... Falls was?!?! Das raffe ich irgendwie nicht.
                              und... Muss dann nicht noch der Trigger "Falls Objekt Wecker hat sich geändert) in den Zeittrigger rein?
                              Screenshot_2021-01-31 javascript - ioBroker(2).png

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

                                @iced112
                                Die FALLS prüft immer auf wahr auch wenn nichts dabei steht 😉
                                Fahr mal mit der Maus auf den Block und lese was im Popup steht, erklärt viele Blöcke.

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

                                  @jan1
                                  Aaaah!
                                  Dann hat sich auch die Frage erübrigt, ob ein zweiter Trigger im Trigger nötig ist

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

                                    @iced112
                                    Das darfst nie tun, da das zu 100% immer in die Hose geht. Ein Trigger niemals ein weiterer da rein!

                                    Du kannst weitere Falls Bedingungen verschachteln, aber nie ein weiteren Trigger.

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

                                      @jan1
                                      Okidoki

                                      Dann schauen wir mal ob der Zeitplan morgen früh auch greift

                                      Danke schonmal für die Hilfe bis hier her

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

                                        @iced112
                                        Und viel Spaß mit Rückwand Radio Beim aufwachen, läuft bei mir im Auto 😉

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

                                          @jan1

                                          Rückwand Radio! 😁

                                          Hat soweit alles super funktioniert. Hatte leider dann für den zweiten Zeitplan den falschen Echo gewählt. Sollte die Küche sein und dann hat stattdessen im Schlafzimmer der Sender gewechselt 🙂
                                          Anfängerfehler...
                                          Heute/morgen wird dann noch getestet ob die Routine morgen früh "nicht" abläuft, wenn ich sie in der VIS deaktiviert habe.

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

                                            @iced112
                                            Ich hasse diese Autokorrektur Funktion. Blöd nur wenn ich die ausschalten, sind noch mehr Tippfehler drin. Ich muss mir echt angewöhnen noch mal zu lesen bevor ich sende 🙂

                                            Aber Schön wenn es fast wie gewünscht läuft 😉

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            880
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            alexa2 adapter iot routinen
                                            5
                                            74
                                            7987
                                            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