Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Rasenmäher Endzeit - Startzeit = Dauer speichern

    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

    Rasenmäher Endzeit - Startzeit = Dauer speichern

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Accu @paul53 last edited by Negalein

      @paul53 hi, ich habe irgendwie probleme den adapter zu installieren.
      Keine ahnung warum das nicht geht:

      gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
      gyp
       ERR! configure error 
      gyp
       ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack     at ChildProcess.emit (events.js:198:13)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      gyp ERR! System Linux 4.19.80-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"gyp ERR! cwd
       /opt/iobroker/node_modules/canvasgyp ERR! node -v v10.16.0gyp ERR! node-gyp -v v5.0.5gyp ERR! not ok 
      node-pre-gyp
       ERR! build error 
      node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)node-pre-gyp
       ERR! stack     at maybeClose (internal/child_process.js:982:16)node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)node-pre-gyp
       ERR! System Linux 4.19.80-v7+node-pre-gyp ERR! command "/usr/local/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvasnode-pre-gyp ERR! node -v v10.16.0
      node-pre-gyp ERR! node-pre-gyp -v v0.11.0node-pre-gyp ERR! not ok
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Accu last edited by paul53

        @Accu sagte:

        ich habe irgendwie probleme den adapter zu installieren.

        Den History-Adapter ? Wenn History nicht funktioniert, dann Logge den Status:

        Blockly_temp.JPG

        1 Reply Last reply Reply Quote 0
        • A
          Accu last edited by

          hi,
          leider gibt es mindestens 2 Stati, die der Mäher annehmen kann. Ich weiß nicht ob man das mit 2 oder 3 abfangen kann?

          2: Automower mäht
          3: Automower sucht die Ladestation

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

            @Accu sagte:

            Ich weiß nicht ob man das mit 2 oder 3 abfangen kann?

            Wenn auf "vorheriger Wert = 2" geprüft wird, ist Mähen gerade beendet, egal welcher neue Status angenommen wird.

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

              @paul53 ich habe es jetzt doch mit dem History hinbekommen und den Status mal mitgeloggt (siehe unten).
              Heute Mittag kam wieder die Meldung dass der Mäher angeblich nur 4 min gefahren sei.
              Seltsam dass der Code nach 4min wechselt.

              Anbei einmal die Telegramm Meldung und die Robo Codes die es gibt.

              Bildschirmfoto 2020-04-14 um 16.01.33.png Bildschirmfoto 2020-04-14 um 16.03.20.png IMG_2460.jpeg

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

                @Accu sagte:

                der Mäher angeblich nur 4 min gefahren sei

                Ja, laut History von 13:56:45 bis 14:00:45.

                1 Reply Last reply Reply Quote 0
                • A
                  Accu last edited by

                  Ich habe heute einmal darauf geachtet und im Log nachgesehen.
                  um 14 uhr war der Start. (Status 2)
                  um 15 Uhr war das Ende

                  blöderweise wird, warum auch immer kurz vor Ende noch einmal der Status 2 gesetzt (14:59)

                  kann man das irgendwie programmtechnisch abfangen?

                  Bildschirmfoto 2020-04-15 um 17.00.52.png

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

                    @Accu sagte:

                    kurz vor Ende noch einmal der Status 2 gesetzt (14:59), kann man das irgendwie programmtechnisch abfangen?

                    Mit Trigger "wurde geändert" und Differenzbildung "letzte Änderung" - "vorherige letzte Änderung" wird diese Aktualisierung ignoriert, da es keine Wertänderung ist.

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

                      @paul53

                      habe es jetzt so:

                      <xml xmlns="http://www.w3.org/1999/xhtml">
                        <variables>
                          <variable type="" id="r)M)J`L2gdR+-rjVpLQA">Dauer</variable>
                          <variable type="" id="kE/kiClb=y?}6)j?_-_R">std</variable>
                          <variable type="" id="F..#nc_!4s(/0NkG7Dzk">min</variable>
                          <variable type="" id="DRJ.iVA5f}kG0snR{]c|">sec</variable>
                        </variables>
                        <block type="on" id="cs~te#thQW#;E}~%[dl:" x="-2262" y="-813">
                          <field name="OID">robonect.0.status.status</field>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="ACZ2l@qR5uVDesc;Qw(m">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="t;NAYM2tTT4]R)..I]XM">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="on_source" id="G$@Mrx{Y{|xfMVSJrZAE">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="3;54XhGs31;DcGiQ~n3,">
                                      <field name="NUM">2</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="telegram" id="2!p+PV1saI=q!@K|Ir|q">
                                  <field name="INSTANCE"></field>
                                  <field name="LOG"></field>
                                  <field name="SILENT">FALSE</field>
                                  <field name="PARSEMODE">default</field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="8:0Y,wE6|ev^*~mt]8ol">
                                      <field name="TEXT">Paul fängt jetzt das Rasenmähen an.</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control" id="vQd|F#_`Z-90cVo}Q2ly">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">alexa2.0.Echo-Devices.G070RR138312054L.Commands.speak</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1000</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text" id="Y+SB`RY.pMm9IWrjo:e-">
                                          <field name="TEXT">Paul sagt: Kannst Du Dein Haus nicht mehr erspähen wird es höchste Zeit zum Rasenmähen </field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="WBD4.25Ie$LsWVZz3j_S">
                                          <mutation delay_input="true"></mutation>
                                          <field name="OID">alexa2.0.Echo-Devices.G090LF0971521B4M.Commands.speak</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">10</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="text" id="k0x?~2-IV%5,qSXV?(Ql">
                                              <field name="TEXT">Paul sagt: Unkraut ist die Opposition der Natur gegen die Regierung der Gärtner.</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="[JwN;JQ/]mKe.S}VXujz">
                                              <mutation delay_input="true"></mutation>
                                              <field name="OID">alexa2.0.Echo-Devices.G090LF11745408CD.Commands.speak</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="text" id="`,@Qh+garav~A)*Lr6nv">
                                                  <field name="TEXT">Paul sagt: Unkraut ist alles, was nach dem Jäten wieder wächst</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="QgDbDr/L=mbSt~={qDDo">
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="6[`9E.kG+wc45PGs2#4-">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="convert_toboolean" id="xBo%6UVn:Ko~/a-/?A-j">
                                                          <value name="VALUE">
                                                            <block type="get_value" id="Xg^YXOIlR!/nxu#g83JX">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">lgtv.0.states.on</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="X|5gfom?`O;qRQa^NO5}">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="r^MMa/-qkidv|PcPP)0!">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">lgtv.0.states.popup</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="XOQf+6$.T4^s[8v@2K#i">
                                                          <field name="TEXT">Paul sagt: Was ist der Unterschied zwischen einem Minirock und einem Rasenmäher?…Faß mal drunter…</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="c)w`SEDk{Hsofx?CMA,*">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="on_source" id="hljohzkK)P=?(TcNl_jB">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="wRc!3;oyFtl0#.FCx9qq">
                                      <field name="NUM">4</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="telegram" id="6bh7.~7@tF^[(r`[i#4~">
                                  <field name="INSTANCE"></field>
                                  <field name="LOG"></field>
                                  <field name="SILENT">FALSE</field>
                                  <field name="PARSEMODE">default</field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="P=n(ben`N(}o,yEGI}Ux">
                                      <field name="TEXT">Paul ist jetzt wieder in der Ladestation und läd auf.</field>
                                    </shadow>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="3u_=MAN42B1?UM0}=M_S">
                                  <value name="IF0">
                                    <block type="logic_compare" id="TH^mE[.{=sgnDEHtasK/">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="on_source" id="u$yucfese]^~y_Q{H%6X">
                                          <field name="ATTR">state.lc</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="rGR|_nKY.C7t`}rM?V2O">
                                          <field name="NUM">2</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="comment" id="(uZLcOltI|3KAYUIX?la">
                                      <field name="COMMENT">Einschaltdauer in s</field>
                                      <next>
                                        <block type="variables_set" id="AAGg8D=NIW)$jdm!HX}9">
                                          <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                          <value name="VALUE">
                                            <block type="math_round" id="tz!ft0KeV-H-!$k@SM$K">
                                              <field name="OP">ROUND</field>
                                              <value name="NUM">
                                                <shadow type="math_number" id="{g@.`En/t_VrZ;wI[~$P">
                                                  <field name="NUM">3.1</field>
                                                </shadow>
                                                <block type="math_arithmetic" id=".P]SR!Pq:?kZrwSqb8X`" inline="false">
                                                  <field name="OP">DIVIDE</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="]p.pVk3zL(tptGOBQa1f">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="p8Bo|d@2I%CQigv9vQg0" inline="false">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="JdlI$t%2[jdjU{xrur^5">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="on_source" id="i1DKFbnp@[R:t$R)q))%">
                                                          <field name="ATTR">state.lc</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="Tn=mC~*zYHxZ{n9%w+=F">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="on_source" id="WW@h5gJm(Wu017fZz/(g">
                                                          <field name="ATTR">oldState.lc</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="Y3HvzC=A-Mc[+N:zybZ1">
                                                      <field name="NUM">1000</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="IsisxgwIpg{:o:{;3!?3">
                                              <field name="VAR" id="kE/kiClb=y?}6)j?_-_R" variabletype="">std</field>
                                              <value name="VALUE">
                                                <block type="math_round" id="%HEm,*dFOQ/e[$j]={uG">
                                                  <field name="OP">ROUNDDOWN</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="*LdrF*2T_H99F$C-AQ.S">
                                                      <field name="NUM">3.1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="_:]YgVi^cs?Y8wEn0zH,">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="FsVvP2(eT4WY-~%s9pY2">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="aUs1r^;I~]DKdFD2G!3J">
                                                          <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="#Pku{x)L}o~QWLDu97Yi">
                                                          <field name="NUM">3600</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="kxdT/Zb[,y4Mu|iuUj[[">
                                                  <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="!d^/09}I#:^erq$Ofd60">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="2#5V2DlWFiXcPjoi{wXY">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="5`YGDPJ^@y/rFCm-[8*7">
                                                          <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="?u8TE#ViTZQXst+#^+8T">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="jCX*zx_Vj#|8!V6upEe~">
                                                          <field name="OP">MULTIPLY</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="FsVvP2(eT4WY-~%s9pY2">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="C?fIXN?6zy?%)MB1Y3;!">
                                                              <field name="VAR" id="kE/kiClb=y?}6)j?_-_R" variabletype="">std</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="r;o=_?mQ1Y6A~MAHpH@m">
                                                              <field name="NUM">3600</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="#?K9?Bzbc(,[q=f}hO*|">
                                                      <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk" variabletype="">min</field>
                                                      <value name="VALUE">
                                                        <block type="math_round" id="W|pgqG{c+4/0*(nIhKX|">
                                                          <field name="OP">ROUNDDOWN</field>
                                                          <value name="NUM">
                                                            <shadow type="math_number" id="*LdrF*2T_H99F$C-AQ.S">
                                                              <field name="NUM">3.1</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="az~GP+|whT6nxz1NCzk|">
                                                              <field name="OP">DIVIDE</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="FsVvP2(eT4WY-~%s9pY2">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="(3J1*x*xqB[oruvy|:o1">
                                                                  <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="e]L~2Tp[?3D0cLwrlYo]">
                                                                  <field name="NUM">60</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="variables_set" id="+iQ2o`i*L6};[P)BMFP1">
                                                          <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|" variabletype="">sec</field>
                                                          <value name="VALUE">
                                                            <block type="math_arithmetic" id="oK]YvZCP0{NoNwenRKSp">
                                                              <field name="OP">MINUS</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="2#5V2DlWFiXcPjoi{wXY">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="NhS7fxXrLpt%/Z2K6^fg">
                                                                  <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="?u8TE#ViTZQXst+#^+8T">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="^+Kra1B7w(EJ,xM1~tt7">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="FsVvP2(eT4WY-~%s9pY2">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="[M28GQ0qXx|g#iG})#+W">
                                                                      <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk" variabletype="">min</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id=";#D_$p379}e/a=,5CS8v">
                                                                      <field name="NUM">60</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="telegram" id="Tc8#Krg9)c2g:3(*1TUq">
                                                              <field name="INSTANCE"></field>
                                                              <field name="LOG"></field>
                                                              <field name="SILENT">FALSE</field>
                                                              <field name="PARSEMODE">default</field>
                                                              <value name="MESSAGE">
                                                                <shadow type="text" id="|?dr_ndHB`}],Bii?fbe">
                                                                  <field name="TEXT">text</field>
                                                                </shadow>
                                                                <block type="text_join" id="bt)4lz4o`on5,BrlD87:">
                                                                  <mutation items="3"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="text" id="!Q!zIW}c7{q;t{Z5H^ej">
                                                                      <field name="TEXT">Die Dauer des Rasenmähens betrug: </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="math_round" id="$Q{c,`G+c%ExXDn-MG4U">
                                                                      <field name="OP">ROUNDDOWN</field>
                                                                      <value name="NUM">
                                                                        <shadow type="math_number" id="*LdrF*2T_H99F$C-AQ.S">
                                                                          <field name="NUM">3.1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="lre=}(U,t7MV3WJIDRy/">
                                                                          <field name="OP">DIVIDE</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="mn7Fh4]|Epxm/;SbywE6">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="t!W13C47[1-2p8_*SJhd">
                                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="-R0utA)-Fl1m/#P)R+qg">
                                                                              <field name="NUM">60</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD2">
                                                                    <block type="text" id="^A~jKfq-~gLKVNN(Rjd`">
                                                                      <field name="TEXT"> Minuten.</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="controls_if" id="8g|Ccl~,FIow0fNq?MF1">
                                                                  <value name="IF0">
                                                                    <block type="logic_compare" id="Y.$7Id_[O(xg%7_elHSe">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="convert_toboolean" id="?,W*/LEac.e[x)1#^g:F">
                                                                          <value name="VALUE">
                                                                            <block type="get_value" id="@BiCqH^PT?@Ld5,iwsXf">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">lgtv.0.states.on</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_boolean" id="Vf-`-8s`p/)mBljUJnzL">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id=".IN.:qKncvS0(dbZrnAT">
                                                                      <mutation delay_input="false"></mutation>
                                                                      <field name="OID">lgtv.0.states.popup</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="text_join" id="O;DGRHfa]R.[%f@p^?P^">
                                                                          <mutation items="3"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="text" id=";h,mV7L[v+aIl!uFnb*`">
                                                                              <field name="TEXT">Die Dauer des Rasenmähens betrug: </field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="math_round" id="Am6g?Xk%e8?022:K9W=W">
                                                                              <field name="OP">ROUNDDOWN</field>
                                                                              <value name="NUM">
                                                                                <shadow type="math_number" id="*LdrF*2T_H99F$C-AQ.S">
                                                                                  <field name="NUM">3.1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="USa66ro0Wg]_GI3PhN[^">
                                                                                  <field name="OP">DIVIDE</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="mn7Fh4]|Epxm/;SbywE6">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="Q#lONSW[PSNL0t)z2Av$">
                                                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="xe4nh7l*H0-TBuY?HzlX">
                                                                                      <field name="NUM">60</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD2">
                                                                            <block type="text" id="f(^/gbp.FWeH?$.f5:m8">
                                                                              <field name="TEXT"> Minuten.</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      
                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Accu last edited by paul53

                        @Accu sagte:

                        habe es jetzt so:

                        Bitte Code immer in Code tags </> posten.

                        <xml xmlns="http://www.w3.org/1999/xhtml">
                         <variables>
                           <variable type="" id="r)M)JL2gdR+-rjVpLQA">Dauer</variable>
                         </variables>
                         <block type="on" id="cs~te#thQW#;E}~%[dl:" x="-2262" y="-813">
                           <field name="OID">robonect.0.status.status</field>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="ACZ2l@qR5uVDesc;Qw(m">
                               <mutation elseif="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_compare" id="t;NAYM2tTT4]R)..I]XM">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="on_source" id="G$@Mrx{Y{|xfMVSJrZAE">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="3;54XhGs31;DcGiQ~n3,">
                                       <field name="NUM">2</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="telegram" id="2!p+PV1saI=q!@K|Ir|q">
                                   <field name="INSTANCE"></field>
                                   <field name="LOG"></field>
                                   <field name="SILENT">FALSE</field>
                                   <field name="PARSEMODE">default</field>
                                   <value name="MESSAGE">
                                     <shadow type="text" id="8:0Y,wE6|ev^*~mt]8ol">
                                       <field name="TEXT">Paul fängt jetzt das Rasenmähen an.</field>
                                     </shadow>
                                   </value>
                                   <next>
                                     <block type="control" id="vQd|F#_Z-90cVo}Q2ly">
                                       <mutation delay_input="true"></mutation>
                                       <field name="OID">alexa2.0.Echo-Devices.G070RR138312054L.Commands.speak</field>
                                       <field name="WITH_DELAY">TRUE</field>
                                       <field name="DELAY_MS">1000</field>
                                       <field name="UNIT">ms</field>
                                       <field name="CLEAR_RUNNING">FALSE</field>
                                       <value name="VALUE">
                                         <block type="text" id="Y+SBRY.pMm9IWrjo:e-">
                                           <field name="TEXT">Paul sagt: Kannst Du Dein Haus nicht mehr erspähen wird es höchste Zeit zum Rasenmähen </field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="WBD4.25Ie$LsWVZz3j_S">
                                           <mutation delay_input="true"></mutation>
                                           <field name="OID">alexa2.0.Echo-Devices.G090LF0971521B4M.Commands.speak</field>
                                           <field name="WITH_DELAY">TRUE</field>
                                           <field name="DELAY_MS">10</field>
                                           <field name="UNIT">sec</field>
                                           <field name="CLEAR_RUNNING">FALSE</field>
                                           <value name="VALUE">
                                             <block type="text" id="k0x?~2-IV%5,qSXV?(Ql">
                                               <field name="TEXT">Paul sagt: Unkraut ist die Opposition der Natur gegen die Regierung der Gärtner.</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="[JwN;JQ/]mKe.S}VXujz">
                                               <mutation delay_input="true"></mutation>
                                               <field name="OID">alexa2.0.Echo-Devices.G090LF11745408CD.Commands.speak</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="text" id=",@Qh+garav~A)Lr6nv">
                                                   <field name="TEXT">Paul sagt: Unkraut ist alles, was nach dem Jäten wieder wächst</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="controls_if" id="QgDbDr/L=mbSt~={qDDo">
                                                   <value name="IF0">
                                                     <block type="logic_compare" id="6[9E.kG+wc45PGs2#4-">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="convert_toboolean" id="xBo%6UVn:Ko~/a-/?A-j">
                                                           <value name="VALUE">
                                                             <block type="get_value" id="Xg^YXOIlR!/nxu#g83JX">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">lgtv.0.states.on</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="logic_boolean" id="X|5gfom?O;qRQa^NO5}">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO0">
                                                     <block type="control" id="r^MMa/-qkidv|PcPP)0!">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">lgtv.0.states.popup</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="XOQf+6$.T4^s[8v@2K#i">
                                                           <field name="TEXT">Paul sagt: Was ist der Unterschied zwischen einem Minirock und einem Rasenmäher?…Faß mal drunter…</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <value name="IF1">
                                 <block type="logic_compare" id="c)wSEDk{Hsofx?CMA,*">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="on_source" id="hljohzkK)P=?(TcNl_jB">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="wRc!3;oyFtl0#.FCx9qq">
                                       <field name="NUM">4</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO1">
                                 <block type="telegram" id="6bh7.~7@tF^[(r[i#4~">
                                   <field name="INSTANCE"></field>
                                   <field name="LOG"></field>
                                   <field name="SILENT">FALSE</field>
                                   <field name="PARSEMODE">default</field>
                                   <value name="MESSAGE">
                                     <shadow type="text" id="P=n(benN(}o,yEGI}Ux">
                                       <field name="TEXT">Paul ist jetzt wieder in der Ladestation und läd auf.</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </statement>
                               <next>
                                 <block type="controls_if" id="3u_=MAN42B1?UM0}=M_S">
                                   <value name="IF0">
                                     <block type="logic_compare" id="TH^mE[.{=sgnDEHtasK/">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="u$yucfese]^~y_Q{H%6X">
                                           <field name="ATTR">oldState.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="rGR|_nKY.C7t}rM?V2O">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="comment" id="(uZLcOltI|3KAYUIX?la">
                                       <field name="COMMENT">Einschaltdauer in min</field>
                                       <next>
                                         <block type="variables_set" id="AAGg8D=NIW)$jdm!HX}9">
                                           <field name="VAR" id="r)M)JL2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                           <value name="VALUE">
                                             <block type="math_round" id="tz!ft0KeV-H-!$k@SM$K">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="{g@.En/t_VrZ;wI[~$P">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="math_arithmetic" id=".P]SR!Pq:?kZrwSqb8X" inline="false">
                                                   <field name="OP">DIVIDE</field>
                                                   <value name="A">
                                                     <shadow type="math_number" id="]p.pVk3zL(tptGOBQa1f">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="math_arithmetic" id="p8Bo|d@2I%CQigv9vQg0" inline="false">
                                                       <field name="OP">MINUS</field>
                                                       <value name="A">
                                                         <shadow type="math_number" id="JdlI$t%2[jdjU{xrur^5">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                         <block type="on_source" id="i1DKFbnp@[R:t$R)q))%">
                                                           <field name="ATTR">state.lc</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <shadow type="math_number" id="Tn=mC~*zYHxZ{n9%w+=F">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                         <block type="on_source" id="WW@h5gJm(Wu017fZz/(g">
                                                           <field name="ATTR">oldState.lc</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <shadow type="math_number" id="Y3HvzC=A-Mc[+N:zybZ1">
                                                       <field name="NUM">60000</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="telegram" id="Tc8#Krg9)c2g:3(1TUq">
                                               <field name="INSTANCE"></field>
                                               <field name="LOG"></field>
                                               <field name="SILENT">FALSE</field>
                                               <field name="PARSEMODE">default</field>
                                               <value name="MESSAGE">
                                                 <shadow type="text" id="|?dr_ndHB}],Bii?fbe">
                                                   <field name="TEXT">text</field>
                                                 </shadow>
                                                 <block type="text_join" id="bt)4lz4oon5,BrlD87:">
                                                   <mutation items="3"></mutation>
                                                   <value name="ADD0">
                                                     <block type="text" id="!Q!zIW}c7{q;t{Z5H^ej">
                                                       <field name="TEXT">Die Dauer des Rasenmähens betrug: </field>
                                                     </block>
                                                   </value>
                                                   <value name="ADD1">
                                                     <block type="variables_get" id="t!W13C47[1-2p8_*SJhd">
                                                       <field name="VAR" id="r)M)JL2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                     </block>
                                                   </value>
                                                   <value name="ADD2">
                                                     <block type="text" id="^A~jKfq-~gLKVNN(Rjd">
                                                       <field name="TEXT"> Minuten.</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="controls_if" id="8g|Ccl~,FIow0fNq?MF1">
                                                   <value name="IF0">
                                                     <block type="logic_compare" id="Y.$7Id_[O(xg%7_elHSe">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="convert_toboolean" id="?,W*/LEac.e[x)1#^g:F">
                                                           <value name="VALUE">
                                                             <block type="get_value" id="@BiCqH^PT?@Ld5,iwsXf">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">lgtv.0.states.on</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="logic_boolean" id="Vf--8sp/)mBljUJnzL">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO0">
                                                     <block type="control" id=".IN.:qKncvS0(dbZrnAT">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">lgtv.0.states.popup</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text_join" id="O;DGRHfa]R.[%f@p^?P^">
                                                           <mutation items="3"></mutation>
                                                           <value name="ADD0">
                                                             <block type="text" id=";h,mV7L[v+aIl!uFnb*">
                                                               <field name="TEXT">Die Dauer des Rasenmähens betrug: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="variables_get" id="Q#lONSW[PSNL0t)z2Av$">
                                                               <field name="VAR" id="r)M)JL2gdR+-rjVpLQA" variabletype="">Dauer</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD2">
                                                             <block type="text" id="f(^/gbp.FWeH?$.f5:m8">
                                                               <field name="TEXT"> Minuten.</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                        </xml>
                        

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

                          @paul53 ebenfalls korrigiert. Passt der Code so jetzt? (Sorry bin leider kein Blockly Experte)

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

                            @Accu sagte:

                            Passt der Code so jetzt?

                            Hast Du den korrigierten Code importiert ? Ich habe einige Änderungen vorgenommen (Abfrage "vorheriger Wert", Dauer).

                            Blockly_temp.JPG

                            1 Reply Last reply Reply Quote 0
                            • A
                              Accu last edited by

                              oh sorry - das hatte ich falsch verstanden. Mache ich gleich. Der Mäher lief nämlich gerade und es wurde gar keine Message an Telegram geschickt.
                              Ich kopiere es mal und berichte wieder. Danke für Deine Hilfe.

                              1 Reply Last reply Reply Quote 0
                              • A
                                Accu last edited by

                                scheint zu funktionieren 🙂
                                vielen Dank für die Unterstützung

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

                                  @Accu sagte:

                                  scheint zu funktionieren

                                  Dann markiere bitte das Thema in der Überschrift des ersten Beitrags als [gelöst].

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  876
                                  Online

                                  31.9k
                                  Users

                                  80.3k
                                  Topics

                                  1.3m
                                  Posts

                                  4
                                  29
                                  2164
                                  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