Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Debug eines Timer anzeigen lassen

    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

    Debug eines Timer anzeigen lassen

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Flopsi last edited by Flopsi

      Hallo wie kann ich mich den Timer als Debug anzeigen lassen.

      @dslraser du hast doch immer gute Lösungen ?

      2020-10-24 15_01_55-javascript - ioBroker.png

      Ich will mir anzeigen lassen wie die 3 Minuten runterlaufen und ab wann die wieder starten.... leider läuft mein skript für die Radiosteuerung nicht einwandfrei warum auch immer......geht das Radio trotz bewegung aus ....

      Gruss

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

        @Flopsi
        probiere mal so ungefähr

        Bildschirmfoto 2020-10-24 um 15.33.46.png

        24.10.2020, 15:32:16.502	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: true
        24.10.2020, 15:32:16.503	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: Radio startet
        24.10.2020, 15:32:16.504	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: ausschalttimer gestoppt
        24.10.2020, 15:32:56.341	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: false
        24.10.2020, 15:32:56.342	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: Bedingung erfüllt: ausschalttimer startet
        24.10.2020, 15:33:05.543	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: true
        24.10.2020, 15:33:05.544	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: ausschalttimer gestoppt
        24.10.2020, 15:33:40.098	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: false
        24.10.2020, 15:33:40.098	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: Bedingung erfüllt: ausschalttimer startet
        24.10.2020, 15:36:40.099	[info ]: javascript.0 (24083) script.js.19_Test.Skript_111: controlPause wird gedrückt !
        

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable type="timeout" id="timeout">timeout</variable>
         </variables>
         <block type="on_ext" id="pV}cdEGuW%qgE]{;]Xcm" x="87" y="113">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="bGcf6sb_}W!b~^2v!*yU">
               <field name="oid">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="debug" id="nhfXDSe^T;!FQ[r:|c~-">
               <field name="Severity">log</field>
               <value name="TEXT">
                 <shadow type="text" id="}JFSUG),}4!ho4]U~r$T">
                   <field name="TEXT">test</field>
                 </shadow>
                 <block type="on_source" id="E_I:GlCo=+y8ya.nvAz_">
                   <field name="ATTR">state.val</field>
                 </block>
               </value>
               <next>
                 <block type="controls_if" id="s5`iJ/;JS5H!idA7_k*+">
                   <value name="IF0">
                     <block type="logic_operation" id="q_`*u@GpT_8,iZm-$N|!" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="on_source" id="PK81RL08[pWvyh:Sb+3r">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_operation" id="7Yx]YT64W7eP/IcU)s|z" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="time_compare_ex" id="0=aR5E.58.e/KdRQRp*q">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                               <field name="USE_ACTUAL_TIME">TRUE</field>
                               <field name="OPTION">between</field>
                               <value name="START_TIME">
                                 <shadow type="text" id="i]/~/Vr}(T~KNAaVI/`*">
                                   <field name="TEXT">08:00</field>
                                 </shadow>
                               </value>
                               <value name="END_TIME">
                                 <shadow type="text" id="G@g0r-1cHnbAu/X|4sdQ">
                                   <field name="TEXT">22:00</field>
                                 </shadow>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_negate" id="h{yR_oFgk]CS-=-;wHp^">
                               <value name="BOOL">
                                 <block type="get_value" id="Y`n$o3e%16%;aNqfZB_N">
                                   <field name="ATTR">val</field>
                                   <field name="OID">alexa2.0.Echo-Devices.xxx.Player.currentState</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="debug" id="{.]txg|(RUe8^5q{kW2U">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text">
                           <field name="TEXT">test</field>
                         </shadow>
                         <block type="text" id="VJEKh.[#?k`t3z]RVisX">
                           <field name="TEXT">Radio startet</field>
                         </block>
                       </value>
                       <next>
                         <block type="control" id="OsaFSGYF5QJBl9Om1.![">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">alexa2.0.Echo-Devices.xxx.Player.TuneIn-Station</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="~x.U,iNMYb5~zoMbC=)S">
                               <field name="TEXT">s99166</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="EI+pEOy^%#n1K4?8KHdI">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="logic_operation" id="JG9BdNo=O?{BQlGng^MR" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_negate" id="G`gpCZT`g1t-Ds)Er,#R">
                               <value name="BOOL">
                                 <block type="on_source" id="0Xl0QgPY,fHb//IdNDw4">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="get_value" id="6`.McGi{N?*2Hz1/t-i#">
                               <field name="ATTR">val</field>
                               <field name="OID">alexa2.0.Echo-Devices.xxx.Player.currentState</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="debug" id="@FzR{L8P0h;~UBX/;~=0">
                           <field name="Severity">log</field>
                           <value name="TEXT">
                             <shadow type="text" id="Y$NsTw*H=vYJ{Iyg#J9X">
                               <field name="TEXT">test</field>
                             </shadow>
                             <block type="text_join" id="a.SWCGU`vi8exi;i=L~i">
                               <mutation items="2"></mutation>
                               <value name="ADD0">
                                 <block type="text" id="K+whw=80G;r}cxWCkD8=">
                                   <field name="TEXT">Bedingung erfüllt: </field>
                                 </block>
                               </value>
                               <value name="ADD1">
                                 <block type="text" id="9G|~Hqj;4L(q)F%k%V~n">
                                   <field name="TEXT">ausschalttimer startet</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_settimeout" id="v#2YN4{mTk]i*B;43%gk">
                               <field name="NAME">timeout</field>
                               <field name="DELAY">3</field>
                               <field name="UNIT">min</field>
                               <statement name="STATEMENT">
                                 <block type="debug" id="w7!^fFNuZ#MTCyyCE@jv">
                                   <field name="Severity">log</field>
                                   <value name="TEXT">
                                     <shadow type="text" id="xzgz!w?p:pi`}oWL;E3y">
                                       <field name="TEXT">test</field>
                                     </shadow>
                                     <block type="text" id="S*{9Y$hLvX5Z`8tFa8Z^">
                                       <field name="TEXT">controlPause wird gedrückt !</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id=";lRmq|)~+ZaJIk-=hG%#">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">alexa2.0.Echo-Devices.xxx.Player.controlPause</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="n]~2/2jp-Pa|cln9uG=d">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="timeouts_cleartimeout" id="oRNidW}7~+H]F//FLEgo">
                           <field name="NAME">timeout</field>
                           <next>
                             <block type="debug" id="CUy:UCV:HpyX@*hb8GMR">
                               <field name="Severity">log</field>
                               <value name="TEXT">
                                 <shadow type="text">
                                   <field name="TEXT">test</field>
                                 </shadow>
                                 <block type="text" id="i%=upR^BjZNmQ$s;6/00">
                                   <field name="TEXT">ausschalttimer gestoppt</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
         </block>
        </xml>
        

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

          @Flopsi sagte:

          Ich will mir anzeigen lassen wie die 3 Minuten runterlaufen

          Das geht nur mit einem Intervall mit Count-down-Variable. Etwa so:

          Blockly_temp.JPG

          1 Reply Last reply Reply Quote 0
          • F
            Flopsi last edited by

            Vielen Dank ich werde das mal ausprobieren 🙂

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

            Support us

            ioBroker
            Community Adapters
            Donate

            671
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            blockly
            3
            4
            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