Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Vorage]-Blockly-Alexa Timer sichtbar machen (vis)

    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

    [Vorage]-Blockly-Alexa Timer sichtbar machen (vis)

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Si_Ska last edited by liv-in-sky

      @si_ska

      hier mal eine eieruhr

      • der trigger dp muss die rolle switch haben und den typ boolean - wird über alexa routine gesteuert (dieser kann auch für sichtbarkeit in vis genutzt werden)
      • ein datenpunkt (zahl) mit gesamtsekunden
      • ein dp für vis - sekunden
      • ein dp für vis - minuten

      Image 1.png

      AApossis (35).gif

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="fT;=_wfW%h4{R73!Jknb">x</variable>
         <variable id="ia)r=(wtIr{HMgJ-42A5">sek</variable>
         <variable type="interval" id="Intervall">Intervall</variable>
       </variables>
       <block type="on" id="s6k9KQ-%|C2b7@$KA8hd" x="187" y="313">
         <field name="OID">0_userdata.0.EierUhr.EieruhrIOT</field>
         <field name="CONDITION">true</field>
         <field name="ACK_CONDITION"></field>
         <statement name="STATEMENT">
           <block type="variables_set" id="]{9K;`{.{+MM1zU5Qk*z">
             <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
             <value name="VALUE">
               <block type="math_number" id="k-o6BDNl6.=OpymFy)]!">
                 <field name="NUM">330</field>
               </block>
             </value>
             <next>
               <block type="timeouts_clearinterval" id="?RE9aWBnf}*|Z{?$d)=s">
                 <field name="NAME">Intervall</field>
                 <next>
                   <block type="timeouts_setinterval" id="A_EFR}7y6lgSi/t;p~Tv">
                     <field name="NAME">Intervall</field>
                     <field name="INTERVAL">5</field>
                     <field name="UNIT">sec</field>
                     <statement name="STATEMENT">
                       <block type="math_change" id="6t;F%JO`Itc=A**Q}m|/">
                         <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
                         <value name="DELTA">
                           <shadow type="math_number" id="Ni#vh]Gay_xg8zq.i~3a">
                             <field name="NUM">1</field>
                           </shadow>
                           <block type="math_number" id="A*sTt4kEMls-`=$5H-wW">
                             <field name="NUM">-5</field>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="4;iv_FvR.,3eG6;j6@aW">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">0_userdata.0.EierUhr.Sek</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="variables_get" id="~01`hV0LGqPM[_XJSiUq">
                                 <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
                               </block>
                             </value>
                             <next>
                               <block type="control" id="{,aSo)[)MJ`:vRr$j{73">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">0_userdata.0.EierUhr.MinVis</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="procedures_callcustomreturn" id="=qcO_-{jAq0fyRnVRHlu">
                                     <mutation name="mins">
                                       <arg name="x"></arg>
                                     </mutation>
                                     <value name="ARG0">
                                       <block type="variables_get" id="c6r:5])+f(EV6YLykl1{">
                                         <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="dRJq3i{~(PDV-|uA,O;(">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">0_userdata.0.EierUhr.SekVis</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="procedures_callcustomreturn" id="1b6f5?Rm#~K4,_Vg+y{#">
                                         <mutation name="seks">
                                           <arg name="x"></arg>
                                         </mutation>
                                         <value name="ARG0">
                                           <block type="variables_get" id="nw*`]dbjp@ZM=Zmp:4z9">
                                             <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="controls_if" id="-7_%{,*r_?*,gyq;:6pJ">
                                         <value name="IF0">
                                           <block type="logic_compare" id="yriYm}!JheF7J;1n;!Bi">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="Nj+1rfpp~eE}u6qr0|9g">
                                                 <field name="VAR" id="ia)r=(wtIr{HMgJ-42A5">sek</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="ev7?[8g$86e#Ke7M;P!P">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="control" id="3L7FnXA#)vyQayI`36YX">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">0_userdata.0.EierUhr.EieruhrIOT</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="_Wj_-BVYwuD8?dZEPRoB">
                                                 <field name="BOOL">FALSE</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="timeouts_clearinterval" id="T4B4.K*)(kq/PbP0`;$i">
                                                 <field name="NAME">Intervall</field>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </statement>
       </block>
       <block type="procedures_defcustomreturn" id=")7(`K1lbnQk}]T=rC%iJ" x="738" y="338">
         <mutation statements="false">
           <arg name="x" varid="fT;=_wfW%h4{R73!Jknb"></arg>
         </mutation>
         <field name="NAME">mins</field>
         <field name="SCRIPT">cmV0dXJuIE1hdGguZmxvb3IoICgoeCkvNjApICUgNjAgKTs=</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
       </block>
       <block type="procedures_defcustomreturn" id="^?Us{6]v{[qBvW/Ov:V|" x="763" y="387">
         <mutation statements="false">
           <arg name="x" varid="fT;=_wfW%h4{R73!Jknb"></arg>
         </mutation>
         <field name="NAME">seks</field>
         <field name="SCRIPT">cmV0dXJuIE1hdGguZmxvb3IoICgoeCkpICUgNjAgKTs=</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
       </block>
      </xml>
      

      AApossis (36).gif

      1 Reply Last reply Reply Quote 0
      • D
        Dirni last edited by

        Hallo Leute

        Wenn ich das Script anlege und starte kommt folgender Fehler

        Was mach ich falsch ?

        83e0992b-34aa-407f-b682-8d8ac6b6ac16-image.png

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Dirni last edited by

          @dirni hast du im log-tab etwas mehr log-info ?

          D 1 Reply Last reply Reply Quote 0
          • D
            Dirni @liv-in-sky last edited by

            @liv-in-sky de4205ca-55f3-441e-8a3b-397ff9e6a409-image.png

            liv-in-sky 1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @Dirni last edited by

              @dirni

              welches script ist das - das vom ersten post oder das von der "eieruhr"

              könnte es sein, dass du beim kopieren etwas vergessen hast ?

              ist etwas verwirrend, da ein blockly, bei dem etwas fehlt, eigentlich nicht gesichert werden kann

              D 1 Reply Last reply Reply Quote 0
              • D
                Dirni @liv-in-sky last edited by

                @liv-in-sky

                Ich danke dir vielmals, dein Satz hat mir schon gereicht 😉. Ich habe das ganze nicht in ein Blockly importiert sondern in ein JavaScript. Funktioniert alles perfekt

                1 Reply Last reply Reply Quote 0
                • Z
                  Zyan last edited by

                  Hi mal ne Frage,

                  bei mir klappt alles soweit denke ich, allerdings sehe ich keine Sekunden und kein Hintergrund usw.
                  Wurde da etwas geändert das es nicht mehr richtig Funktioniert? oder gibt es bei mir einen Fehler?timer.PNG

                  Danke im Voraus.

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Zyan last edited by

                    @zyan mach mal den hntergrund der view dunkel

                    du weißt, das da gerade ein adapter dafür entwickelt wird ?

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      Zyan @liv-in-sky last edited by

                      @liv-in-sky

                      das ändert leider auch nichts.

                      Nein das an einem Adapter gebastelt wird wusste ich nicht. Vlt warte ich dann lieber darauf.
                      Was mir aufgefallen ist das meine Widgets teilweise "undefined" sind weiss nict ob das normal ist.

                      timer.PNG wid.PNG

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Zyan last edited by

                        @zyan

                        https://forum.iobroker.net/topic/50765/test-adapter-adapter-alexa-timer-vis-v0-1-x-github-latest?_=1645561201918

                        hier die posts des adapters

                        am besten alles auswählen und löschen - brauchste dann icht mehr mit dem adapter

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        524
                        Online

                        31.9k
                        Users

                        80.2k
                        Topics

                        1.3m
                        Posts

                        blockly
                        17
                        159
                        17078
                        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