Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Einfache ToDo Liste in Datenpunkt schreiben

    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

    Einfache ToDo Liste in Datenpunkt schreiben

    This topic has been deleted. Only users with topic management privileges can see it.
    • padrino
      padrino Most Active last edited by padrino

      Da mein Hirn ein Sieb ist 😌, hab ich mir etwas gebastelt, das mich an (eine Liste von) Dinge(n) erinnern soll, wenn ich das Haus verlasse.
      Im Prinzip füttere ich einen Datenpunkt mit Sachen, die mir (im Moment) dann vorgelesen werden, wenn ich die Tür öffne (man könnte natürlich auch Nachrichten auf Handy schicken, etc.).

      Den Datenpunkt füttere ich, in dem ich sage:
      Alexa, erinnere mich beim ... (z.B. "verlassen", "weggehen"...) an Text.
      Wenn Sie dann sagt, "wann soll ich dich erinneren", sage ich "danke" oder "stopp". 😉

      Vielleicht kann ja jemand den Denkansatz auch anderweitig gebrauchen. 😄

      erinnerung1.jpg

      erinnerung2.jpg

      <xml xmlns="http://www.w3.org/1999/xhtml">
       <variables>
         <variable type="" id="S/!;-vl/5@[)l$5I3]dk">Erinnerung</variable>
         <variable type="" id="nr9DM%qL~GYs]S:B:w{~">summary</variable>
       </variables>
       <block type="on" id="ZJwwDeK`wdhvc9`5ke9n" x="-2688" y="362">
         <field name="OID">Zustaende.0.Wohnungstuer</field>
         <field name="CONDITION">true</field>
         <field name="ACK_CONDITION"></field>
         <statement name="STATEMENT">
           <block type="variables_set" id="Xbs3OcbFFqDy|/EkK!Nr">
             <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
             <value name="VALUE">
               <block type="get_value" id="0Wa@OOqVW|E8EeJ=?oqe">
                 <field name="ATTR">val</field>
                 <field name="OID">Zustaende.0.Erinnerung</field>
               </block>
             </value>
             <next>
               <block type="controls_if" id="]}}W?u1~,j[,WJ;3C]4h">
                 <value name="IF0">
                   <block type="logic_compare" id="^ve+`1;0tDiiTn#.M@*F">
                     <field name="OP">NEQ</field>
                     <value name="A">
                       <block type="variables_get" id="dx-JW(l*6US`5if*2bhe">
                         <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="text" id="uya.`02H*DN}$vlH`B-m">
                         <field name="TEXT"></field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="eS}CfJyJbyH`X``$tB`b">
                     <mutation delay_input="false"></mutation>
                     <field name="OID">alexa2.0.Echo-Devices.65a7583a2d2043148250409e749171b6.Commands.announcement</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="text_join" id="FA3nNRCbdOQ;%~uh[o{9">
                         <mutation items="2"></mutation>
                         <value name="ADD0">
                           <block type="text" id="~eE#qjVC#q?bTT[*Y+?0">
                             <field name="TEXT">&lt;break time="1s"/&gt;</field>
                           </block>
                         </value>
                         <value name="ADD1">
                           <block type="variables_get" id="S65]JB~PF/}Iv)g-UzJP">
                             <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <next>
                       <block type="update" id="5`OCn^ZJzR9Z3PMDE%#E">
                         <mutation delay_input="false"></mutation>
                         <field name="OID">Zustaende.0.Erinnerung</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="text" id="}kQVwm(6Z9mp{Q,W@8;}">
                             <field name="TEXT"></field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
       </block>
       <block type="on" id="?v$_hKnY)Tf,L1YxFhh)" x="-2688" y="687">
         <field name="OID">alexa2.0.History.summary</field>
         <field name="CONDITION">ne</field>
         <field name="ACK_CONDITION"></field>
         <statement name="STATEMENT">
           <block type="variables_set" id="A6:~}WgTo,UvXYFtn0IY">
             <field name="VAR" id="nr9DM%qL~GYs]S:B:w{~" variabletype="">summary</field>
             <value name="VALUE">
               <block type="get_value" id="4g;bXZzQ{$QM0!ywgzYq">
                 <field name="ATTR">val</field>
                 <field name="OID">alexa2.0.History.summary</field>
               </block>
             </value>
             <next>
               <block type="controls_if" id="]4%f?pAf`-9XMkCtxDcB">
                 <value name="IF0">
                   <block type="logic_compare" id="V!ojuoMk#si7r!e_$q[B">
                     <field name="OP">NEQ</field>
                     <value name="A">
                       <block type="text_indexOf" id="7`0@H)YMgya1OjZ~PzbC" inline="false">
                         <field name="END">FIRST</field>
                         <value name="VALUE">
                           <block type="variables_get" id="uwlCLsVf+.H6wh%~ume[">
                             <field name="VAR" id="nr9DM%qL~GYs]S:B:w{~" variabletype="">summary</field>
                           </block>
                         </value>
                         <value name="FIND">
                           <shadow type="text" id="QKmACRh(#;Xt?x2iFxV!">
                             <field name="TEXT">erinnere mich beim</field>
                           </shadow>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="1y8GvTYp/|;v~:15T;`+">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="variables_set" id="?NB,2a|krpU+lE(7?Ow#">
                     <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                     <value name="VALUE">
                       <block type="get_value" id="uxQ*asJn.F8qqF[j2vO]">
                         <field name="ATTR">val</field>
                         <field name="OID">Zustaende.0.Erinnerung</field>
                       </block>
                     </value>
                     <next>
                       <block type="controls_if" id="=*JisQW|IC_87Q%c!LuH">
                         <mutation else="1"></mutation>
                         <value name="IF0">
                           <block type="logic_compare" id="GGFoz*PXci+yn-tuqyG0">
                             <field name="OP">EQ</field>
                             <value name="A">
                               <block type="variables_get" id="DUnl1]/R297~O[J=`H~C">
                                 <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="text" id="LrF//@,dZk?6f?IhFXGQ">
                                 <field name="TEXT"></field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="variables_set" id="zmdf|jB[Aj7#Q:X`KBce">
                             <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                             <value name="VALUE">
                               <block type="lists_create_with" id="ZWuS7h7.w!uZjZqtj|of">
                                 <mutation items="0"></mutation>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <statement name="ELSE">
                           <block type="variables_set" id="!;`M0/asX$i_j3m3]$$r">
                             <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                             <value name="VALUE">
                               <block type="lists_split" id="kL`p;LrJQ/GKoEDI2F*:">
                                 <mutation mode="SPLIT"></mutation>
                                 <field name="MODE">SPLIT</field>
                                 <value name="INPUT">
                                   <block type="variables_get" id="8#c!2Ffo)`X)BmC.T1CO">
                                     <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                   </block>
                                 </value>
                                 <value name="DELIM">
                                   <shadow type="text" id="U9XibAS[z9OwN(Fb+xQP">
                                     <field name="TEXT">,</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="controls_if" id="XNm6`gbNESKDK`0=G*qL">
                                 <value name="IF0">
                                   <block type="logic_compare" id="mf)*6L2|:I_/}:tyT8BB">
                                     <field name="OP">EQ</field>
                                     <value name="A">
                                       <block type="lists_getIndex" id="iMb%p=3p$TT+hDel`/Ye">
                                         <mutation statement="false" at="true"></mutation>
                                         <field name="MODE">GET</field>
                                         <field name="WHERE">FROM_START</field>
                                         <value name="VALUE">
                                           <block type="variables_get" id="7J+e*Js~lik5@Q2,0A26">
                                             <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                           </block>
                                         </value>
                                         <value name="AT">
                                           <block type="math_arithmetic" id="~[k}SvacUF%+`}=*{-eA">
                                             <field name="OP">MINUS</field>
                                             <value name="A">
                                               <shadow type="math_number" id="z~bt8l~pnwtt@*dzt#O:">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                               <block type="lists_length" id="Q34tsUqP922O[,mQFFkg">
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="un}{(Y:7aPkFV?9/5^x/">
                                                     <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <shadow type="math_number" id="LpdPOG{K?tKckZ:Tt6/,">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="text" id="Q=w{osHeL8^.-+V4B[c,">
                                         <field name="TEXT">und</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="lists_getIndex" id="nHrJVa@P+6ju~?ewmrNo">
                                     <mutation statement="true" at="true"></mutation>
                                     <field name="MODE">REMOVE</field>
                                     <field name="WHERE">FROM_START</field>
                                     <value name="VALUE">
                                       <block type="variables_get" id="^52Cw~D7cbJ`m@uZDNSr">
                                         <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                       </block>
                                     </value>
                                     <value name="AT">
                                       <block type="math_arithmetic" id=";QzI$.|3rba@!WLiBl9g">
                                         <field name="OP">MINUS</field>
                                         <value name="A">
                                           <shadow type="math_number" id="z~bt8l~pnwtt@*dzt#O:">
                                             <field name="NUM">1</field>
                                           </shadow>
                                           <block type="lists_length" id="urL|b|-NRb)anJH?@DRX">
                                             <value name="VALUE">
                                               <block type="variables_get" id="59/iK7v^X;6zDhWCF;8D">
                                                 <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <shadow type="math_number" id="wQ7k;02;#RGOx2+=IFkW">
                                             <field name="NUM">1</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="lists_setIndex" id="pBP2`-{v`.UW`gNi_n,p">
                                     <mutation at="false"></mutation>
                                     <field name="MODE">INSERT</field>
                                     <field name="WHERE">LAST</field>
                                     <value name="LIST">
                                       <block type="variables_get" id="-OKwO*6lma.Hc28lv7D5">
                                         <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                       </block>
                                     </value>
                                     <value name="TO">
                                       <block type="text" id="XU=j}Lv+y(D^kN)6(x3e">
                                         <field name="TEXT">und</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <next>
                           <block type="lists_setIndex" id="-jsA_Z%+ow#LAOg]k*7W">
                             <mutation at="false"></mutation>
                             <field name="MODE">INSERT</field>
                             <field name="WHERE">LAST</field>
                             <value name="LIST">
                               <block type="variables_get" id="LGM,v=2,Cw!=ItOrOR0J">
                                 <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                               </block>
                             </value>
                             <value name="TO">
                               <block type="text_getSubstring" id="5`EN$]X51o|*:{lW^{C+" inline="false">
                                 <mutation at1="true" at2="false"></mutation>
                                 <field name="WHERE1">FROM_START</field>
                                 <field name="WHERE2">LAST</field>
                                 <value name="STRING">
                                   <block type="variables_get" id="kXYK_ze=obCFCm3bZwHe">
                                     <field name="VAR" id="nr9DM%qL~GYs]S:B:w{~" variabletype="">summary</field>
                                   </block>
                                 </value>
                                 <value name="AT1">
                                   <block type="math_arithmetic" id="WG%`pkpoZ{9_zZLxC97Q">
                                     <field name="OP">ADD</field>
                                     <value name="A">
                                       <shadow type="math_number" id="HI:uRa(u]?7}NKyi9hac">
                                         <field name="NUM">1</field>
                                       </shadow>
                                       <block type="text_indexOf" id="Q3fGB6xK6}.OIdwDmZD}" inline="false">
                                         <field name="END">FIRST</field>
                                         <value name="VALUE">
                                           <block type="get_value" id="zy?_-}SkGYzbU7~4.X1`">
                                             <field name="ATTR">val</field>
                                             <field name="OID">alexa2.0.History.summary</field>
                                           </block>
                                         </value>
                                         <value name="FIND">
                                           <shadow type="text" id="d5tk3^7gzg!ii|![(B6u">
                                             <field name="TEXT">an</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <shadow type="math_number" id="8xM2N=9_j}d2|7%aRHL{">
                                         <field name="NUM">3</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="update" id="p}IK36a}-O:p5`{G`0}f">
                                 <mutation delay_input="false"></mutation>
                                 <field name="OID">Zustaende.0.Erinnerung</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="lists_split" id="R0|k6wPq0tafNvT,:In1">
                                     <mutation mode="JOIN"></mutation>
                                     <field name="MODE">JOIN</field>
                                     <value name="INPUT">
                                       <block type="variables_get" id="x:fQ6=QyC0[D:P]aV9,5">
                                         <field name="VAR" id="S/!;-vl/5@[)l$5I3]dk" variabletype="">Erinnerung</field>
                                       </block>
                                     </value>
                                     <value name="DELIM">
                                       <shadow type="text" id="]pOd/^.wJDE)_+;)sp5j">
                                         <field name="TEXT">,</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
       </block>
      </xml>
      

      Glasfaser 1 Reply Last reply Reply Quote 1
      • Glasfaser
        Glasfaser @padrino last edited by

        @padrino sagte in Einfache ToDo Liste in Datenpunkt schreiben:

        Da mein Hirn ein Sieb ist 😌, hab ich mir etwas gebastelt ...
        .......vielleicht kann ja jemand den Denkansatz auch anderweitig gebrauchen. 😄

        Kann Mann gut gebrauchen ....😎 ,müßte ich nur dann noch für meine Frau umschreiben 😄

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

        Support us

        ioBroker
        Community Adapters
        Donate

        755
        Online

        31.8k
        Users

        79.9k
        Topics

        1.3m
        Posts

        blockly
        2
        2
        265
        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