Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Xiaomi Vacuum (Rockrobo) Saugkarte Live Map

    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

    Xiaomi Vacuum (Rockrobo) Saugkarte Live Map

    This topic has been deleted. Only users with topic management privileges can see it.
    • Diginix
      Diginix @oranggila last edited by

      @oranggila Was genau meinst du? Für Telegram gibt es ein extra sendto Block.

      O 1 Reply Last reply Reply Quote 0
      • O
        oranggila @Diginix last edited by

        @Diginix Aber der convert ist doch ein linux Befehl, wie mache ich den in blockly oder JavaScript mit %date% und %raum%, damit ich es danach per sendto Telegram verschicken kann?

        Diginix 1 Reply Last reply Reply Quote 0
        • Diginix
          Diginix @oranggila last edited by

          @oranggila Achso, deswegen fragte ich ja. Aus deiner Frage war kein Bezug zu einem Post von mir zu erkennen.
          So sieht das Blockly dazu bei mir aus.

          8cc44321-5c0e-408b-a65c-81206c79f961-image.png

          O 1 Reply Last reply Reply Quote 0
          • O
            oranggila @Diginix last edited by

            @Diginix Super, danke! Jetzt versteh ich es. Würdest Du es exportieren?

            Diginix 1 Reply Last reply Reply Quote 0
            • Diginix
              Diginix @oranggila last edited by Diginix

              @oranggila Kann ich machen, aber eine Funktion, bei deren Aufruf auch Variablen übergeben werden müssen ist immer recht individuell. Die wird bei dir also so nur in Teilen funktionieren.
              Was verhindert das schnelle selbst zusammen klicken so wie du es wirklich brauchst?

              O 2 Replies Last reply Reply Quote 0
              • O
                oranggila @Diginix last edited by

                @Diginix Auch ok, das bekomme ich hin. 👍

                Diginix 1 Reply Last reply Reply Quote 0
                • Diginix
                  Diginix @oranggila last edited by Diginix

                  @oranggila

                  Hier mal ein Auszug aus meinem Skript, der so out-of-the-box funktionieren könnte:

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="lno{76T;UG-MO~4@k,/|">subject</variable>
                      <variable id="p/p,!c]Yiwh[R~8D{|et">cleaning_time</variable>
                      <variable id="eWB[s[v+3eb}U0]+/?f5">cleaning_area</variable>
                      <variable id="p$aK]LM(_B|lu|0x0aJI">room</variable>
                      <variable id="LVz(;207#pS1|F*~-/MB">last_room</variable>
                      <variable id="dlm-%`O7q/6M6V).k*iU">map_archive_filepath</variable>
                      <variable id="Wj]%`Dh,%m_M~E9m-{Cc">next_room</variable>
                    </variables>
                    <block type="on" id="J~pqYwj-20vxb:!9Za6M" x="12" y="12">
                      <field name="OID">mihome-vacuum.0.info.state</field>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION">true</field>
                      <statement name="STATEMENT">
                        <block type="comment" id="gv#]HU^-Epsw@Ro_]qy`">
                          <field name="COMMENT">Go Home</field>
                          <next>
                            <block type="controls_if" id="y!@IA,q9I[6|+Va.:rC7">
                              <value name="IF0">
                                <block type="logic_compare" id="4$8PGN=5oI)adt6htu]R">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="on_source" id="JVt_I)VB4rz~PW5Bd55k">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="d#a1Q]Jje5eYVZ-r9,(?">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="comment" id="sw1uV+V7o^rFo89@*nqq">
                                  <field name="COMMENT">Room Cleaning &gt; Going to Dock</field>
                                  <next>
                                    <block type="controls_if" id="p;G,WB3cF`H/}WH2.~{e">
                                      <value name="IF0">
                                        <block type="logic_compare" id=";XH2Zco~W0qa^%L+3?#B">
                                          <field name="OP">EQ</field>
                                          <comment pinned="false" h="50" w="258">Room Cleaning &gt; Going to Dock</comment>
                                          <value name="A">
                                            <block type="on_source" id="/Ul^oO,wBh:)vYYm^%Dq">
                                              <field name="ATTR">oldState.val</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="Yj*edPEj6hTFi!MyI|BW">
                                              <field name="NUM">18</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="comment" id="|M5y{_X//^=8r;j/GJ#J">
                                          <field name="COMMENT">Karte archivieren und per E-Mail senden</field>
                                          <next>
                                            <block type="procedures_callnoreturn" id="wWg7c-WE_4s1_m|Ji28[">
                                              <mutation name="map_backup_and_email">
                                                <arg name="subject"></arg>
                                                <arg name="cleaning_time"></arg>
                                                <arg name="cleaning_area"></arg>
                                                <arg name="room"></arg>
                                              </mutation>
                                              <value name="ARG0">
                                                <block type="text" id="hY+2THv2vmb81H)ng=d%">
                                                  <field name="TEXT">Einzelraumreinigung</field>
                                                </block>
                                              </value>
                                              <value name="ARG1">
                                                <block type="get_value" id="O_9_Joj?=%z(ag7ILYQ;">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">mihome-vacuum.0.info.cleanedtime</field>
                                                </block>
                                              </value>
                                              <value name="ARG2">
                                                <block type="get_value" id="Yx|NwsT]:4rbTCost`g:">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">mihome-vacuum.0.info.cleanedarea</field>
                                                </block>
                                              </value>
                                              <value name="ARG3">
                                                <block type="variables_get" id="yyUi4?4yKok4.XZ~]V`0">
                                                  <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id=";C@YFV:E/FLn#Y({OPpO">
                                          <field name="COMMENT">Cleaning &gt; Going to Dock</field>
                                          <next>
                                            <block type="controls_if" id="R:u/A#Z?p.S#~2fo!I]-">
                                              <value name="IF0">
                                                <block type="logic_compare" id="K2B.UBdKrSSNq!D-NIda">
                                                  <field name="OP">EQ</field>
                                                  <comment pinned="false" h="50" w="258">Cleaning &gt; Going to Dock</comment>
                                                  <value name="A">
                                                    <block type="on_source" id="V]1HeBg,NL0u.UAA?1Ro">
                                                      <field name="ATTR">oldState.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="Pc+*=[|yD$24w;Cqs1L!">
                                                      <field name="NUM">5</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="comment" id="@Nht=.#srH~vm?l;`]65">
                                                  <field name="COMMENT">Karte archivieren und per E-Mail senden</field>
                                                  <next>
                                                    <block type="procedures_callnoreturn" id="1KQVk(O?v!JwuLLr(U-8">
                                                      <mutation name="map_backup_and_email">
                                                        <arg name="subject"></arg>
                                                        <arg name="cleaning_time"></arg>
                                                        <arg name="cleaning_area"></arg>
                                                        <arg name="room"></arg>
                                                      </mutation>
                                                      <value name="ARG0">
                                                        <block type="text" id="~2#[,4jPjDV4An$:Q29a">
                                                          <field name="TEXT">Reinigung</field>
                                                        </block>
                                                      </value>
                                                      <value name="ARG1">
                                                        <block type="get_value" id="O(sD5foTm$V*.Y7(2g_|">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">mihome-vacuum.0.info.cleanedtime</field>
                                                        </block>
                                                      </value>
                                                      <value name="ARG2">
                                                        <block type="get_value" id="NA;~THJn%tL2ECN1X*@Y">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">mihome-vacuum.0.info.cleanedarea</field>
                                                        </block>
                                                      </value>
                                                      <value name="ARG3">
                                                        <block type="text" id="m12O{AH|h]wo.*-/7JiC">
                                                          <field name="TEXT">Wohnung</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="comment" id="o(F1CXrO/To72|fyTNr`">
                                                  <field name="COMMENT">Zone Cleaning &gt; Going to Dock</field>
                                                  <next>
                                                    <block type="controls_if" id="rMA)Df{Vx^[]0?GMECRa">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="1kzlws7CRr4.421Z=oQC">
                                                          <field name="OP">EQ</field>
                                                          <comment pinned="false" h="50" w="258">Zone Cleaning &gt; Going to Dock</comment>
                                                          <value name="A">
                                                            <block type="on_source" id="3%m(G4)-9[LXW1gyDI{d">
                                                              <field name="ATTR">oldState.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id=":V@N{/0{RcJ_P;kMwp{w">
                                                              <field name="NUM">17</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="comment" id="VBYRKvB^H3dx5)RasLw`">
                                                          <field name="COMMENT">Karte archivieren und per E-Mail senden</field>
                                                          <next>
                                                            <block type="procedures_callnoreturn" id="c`9nGePcVp^t#|fmMU12">
                                                              <mutation name="map_backup_and_email">
                                                                <arg name="subject"></arg>
                                                                <arg name="cleaning_time"></arg>
                                                                <arg name="cleaning_area"></arg>
                                                                <arg name="room"></arg>
                                                              </mutation>
                                                              <value name="ARG0">
                                                                <block type="text" id="7cfVtF+W{N~2J.NMYqV*">
                                                                  <field name="TEXT">Zonenreinigung</field>
                                                                </block>
                                                              </value>
                                                              <value name="ARG1">
                                                                <block type="get_value" id="Oh,SfX459qV+!}MtdX;Q">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">mihome-vacuum.0.info.cleanedtime</field>
                                                                </block>
                                                              </value>
                                                              <value name="ARG2">
                                                                <block type="get_value" id="gy=2OrmbEeEzwV^%!e[=">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">mihome-vacuum.0.info.cleanedarea</field>
                                                                </block>
                                                              </value>
                                                              <value name="ARG3">
                                                                <block type="text" id=":;P.p(VkrocfR8xBEB?J">
                                                                  <field name="TEXT">unbekannte Zone</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="variables_set" id=";#9?:{fg3;#VfWWX%j*u">
                          <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                          <value name="VALUE">
                            <block type="text" id=";n;;K@c]4YX}$)|uOd?6">
                              <field name="TEXT"></field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="92h6!-WdD_m88iKR:59P">
                              <field name="VAR" id="Wj]%`Dh,%m_M~E9m-{Cc">next_room</field>
                              <value name="VALUE">
                                <block type="text" id=",Nzqevv;.`B#~u$5x9Rt">
                                  <field name="TEXT"></field>
                                </block>
                              </value>
                              <next>
                                <block type="on_ext" id="{Bvcye-`9QM7%];YiUv[">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                  <field name="CONDITION">any</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_oid" id="DqF!z?^NAaH^E@U,v1s^">
                                      <field name="oid">default</field>
                                    </shadow>
                                    <block type="regex" id=":SqXq%G`u5kq;C;RBaFC">
                                      <field name="TEXT">mihome-vacuum\.([0-9]+)\.rooms\.([0-9]{12})\.state</field>
                                    </block>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="$L.]1r5.QicoBy+FU7w^">
                                      <value name="IF0">
                                        <block type="logic_compare" id="tr$0B5ow9`Kh%E!3wU9K">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="on_source" id="oVbF~U3V%6b=_.x7ef+p">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="text" id="s/SCjbK2!cJAX.EJwC5M">
                                              <field name="TEXT">sauge Zimmer</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="iuE__?nT+rndHPc-CZWC">
                                          <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                                          <value name="VALUE">
                                            <block type="on_source" id="KnR)G_,L?00sv({6UVb_">
                                              <field name="ATTR">channelName</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="debug" id="{DKXIXdhq[23]KnJ;SLn">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="@HnhT?e.r87c9Xp!8LZ7">
                                                  <field name="TEXT">test</field>
                                                </shadow>
                                                <block type="text_join" id="~QC46MfB(!KnI@*sTM./">
                                                  <mutation items="4"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="Ub^nm99780=DH`y7#u5q">
                                                      <field name="TEXT">*** Staubsauger </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="on_source" id="N(SMVR?QF7o2)_l%[]eE">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="text" id=":AFVd(bJK}x73A26tdd=">
                                                      <field name="TEXT">: </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="variables_get" id="k[:PD%g9~+k6U(qmfqKf">
                                                      <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_if" id="_}0DZG)Yg~kP9+fu~Ja1">
                                          <value name="IF0">
                                            <block type="logic_compare" id="{ifs*#W_+FOdk.idw:BN">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="on_source" id="K~_W?I4De2lRw8E~^cv|">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="text" id="1O~wV36[e$lSt}LIHQQA">
                                                  <field name="TEXT">Warteposition: 0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="u7],@8Z|,!Il*IKU7JcY">
                                              <field name="VAR" id="Wj]%`Dh,%m_M~E9m-{Cc">next_room</field>
                                              <value name="VALUE">
                                                <block type="on_source" id="Tby]`^H}C%,h_YQDG)u~">
                                                  <field name="ATTR">channelName</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id="#N@@{cK~NTa;=+CEHy41">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="@HnhT?e.r87c9Xp!8LZ7">
                                                      <field name="TEXT">test</field>
                                                    </shadow>
                                                    <block type="text_join" id="A.@rApxa*FiU=NE[!-8^">
                                                      <mutation items="2"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="-]OKsYqMR[(rhcvXQ03x">
                                                          <field name="TEXT">*** Staubsauger nächster Raum: </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="variables_get" id="*x)DSA#R)WwQgVClbTqz">
                                                          <field name="VAR" id="Wj]%`Dh,%m_M~E9m-{Cc">next_room</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                    <block type="procedures_defnoreturn" id="DCo`G+k*2brV*~M%z1r*" x="763" y="12">
                      <mutation>
                        <arg name="subject" varid="lno{76T;UG-MO~4@k,/|"></arg>
                        <arg name="cleaning_time" varid="p/p,!c]Yiwh[R~8D{|et"></arg>
                        <arg name="cleaning_area" varid="eWB[s[v+3eb}U0]+/?f5"></arg>
                        <arg name="room" varid="p$aK]LM(_B|lu|0x0aJI"></arg>
                      </mutation>
                      <field name="NAME">map_backup_and_email</field>
                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                      <statement name="STACK">
                        <block type="variables_set" id="3n/$3iA.$.nO,;PB{tHH">
                          <field name="VAR" id="dlm-%`O7q/6M6V).k*iU">map_archive_filepath</field>
                          <value name="VALUE">
                            <block type="text_join" id="GjiLjtRBd2-C|@g$TB1r">
                              <mutation items="3"></mutation>
                              <value name="ADD0">
                                <block type="text" id="zXCV(n(zLssUzfNOOQKh">
                                  <field name="TEXT">/opt/iobroker_user_data/vacuum/</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="time_get" id="n!M[!k7E(MH[D9/(Yf(E">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                  <field name="OPTION">custom</field>
                                  <field name="FORMAT">JJJJ-MM-TT_SS-mm-ss_</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="SGEqRhQyl+l@.[l+!d5A">
                                  <field name="TEXT">map.png</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="exec" id="amIBcvnIdgu^.HsL$9{j">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                              <field name="WITH_STATEMENT">TRUE</field>
                              <field name="LOG">log</field>
                              <value name="COMMAND">
                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="YH5WKREOXjQQ#HSy[dh^">
                                  <field name="TEXT"></field>
                                </shadow>
                                <block type="text_join" id="t=jZxb+q.nkCU]FM@$k+">
                                  <mutation items="2"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="|Kv}qei_Z)nY_qlP,INK">
                                      <field name="TEXT">convert /opt/iobroker/iobroker-data/files/mihome-vacuum.admin/actualMap_0.png -crop 1240x830+350+446 +repage </field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="variables_get" id="YnAv9huDLp|$1WMZX9`1">
                                      <field name="VAR" id="dlm-%`O7q/6M6V).k*iU">map_archive_filepath</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="STATEMENT">
                                <block type="email" id="Y8`O=`7FWMCbVHR:ce+g">
                                  <field name="INSTANCE"></field>
                                  <field name="IS_HTML">FALSE</field>
                                  <field name="LOG">log</field>
                                  <value name="TO">
                                    <shadow type="text" id="seTADx[RH#gks3)4Q7R/">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                  <value name="TEXT">
                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="QBk`+p?4GD/-v+fz?29a">
                                      <field name="TEXT"></field>
                                    </shadow>
                                    <block type="text_join" id="OSKFh$KiJ`v0bFS1R(d{">
                                      <mutation items="11"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="1Q,{B%gDI-enxQr`1P4~">
                                          <field name="TEXT">Fläche: </field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="get_value" id=")uJPcvY7Aej[[Gi)g*~6">
                                          <field name="ATTR">val</field>
                                          <field name="OID">mihome-vacuum.0.info.cleanedarea</field>
                                        </block>
                                      </value>
                                      <value name="ADD2">
                                        <block type="text" id=":z@U!A)-3kBR$J*MR)o9">
                                          <field name="TEXT"> m²</field>
                                        </block>
                                      </value>
                                      <value name="ADD3">
                                        <block type="text_newline" id="h8@9+4_uIfCaDz$:,14]">
                                          <field name="Type">\n</field>
                                        </block>
                                      </value>
                                      <value name="ADD4">
                                        <block type="text" id="o(UYr~IbgsWO4ebP%D/t">
                                          <field name="TEXT">Zeit: </field>
                                        </block>
                                      </value>
                                      <value name="ADD5">
                                        <block type="variables_get" id="bI32:7[2umN~?GhT9WVx">
                                          <field name="VAR" id="p/p,!c]Yiwh[R~8D{|et">cleaning_time</field>
                                        </block>
                                      </value>
                                      <value name="ADD6">
                                        <block type="text" id="Mz.^TQ1=98J|-pg]3:(.">
                                          <field name="TEXT"> min</field>
                                        </block>
                                      </value>
                                      <value name="ADD7">
                                        <block type="text_newline" id="rNZjPx$02EYRokVR38Bt">
                                          <field name="Type">\n</field>
                                        </block>
                                      </value>
                                      <value name="ADD8">
                                        <block type="text" id="`p|h{S]M-lkUxawzla6T">
                                          <field name="TEXT">Staubbehälter: </field>
                                        </block>
                                      </value>
                                      <value name="ADD9">
                                        <block type="math_round" id="W=Z)3.z;p~EM62~]]r^1">
                                          <field name="OP">ROUND</field>
                                          <value name="NUM">
                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="t+/qBF*}USyfO#bV2Q@B">
                                              <field name="NUM">3.1</field>
                                            </shadow>
                                            <block type="math_arithmetic" id="NJNkUOU9q{#$nHU@yXl1" inline="false">
                                              <field name="OP">ADD</field>
                                              <value name="A">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7bb+fA/!Tvfjt@Fn7i?m">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="D%#$#mpF53f5CC012+*C">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">javascript.0.Objects.MiRobot1S.Dustbin_Level</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="IsNMbEyF4n4TlhyL0dkK">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="2YEf.FSda6PmRHb8^+$q">
                                                  <field name="VAR" id="eWB[s[v+3eb}U0]+/?f5">cleaning_area</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="ADD10">
                                        <block type="text" id="v79?*:El]6e]XR$:;Wbw">
                                          <field name="TEXT"> m²</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="SUBJECT">
                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="[2dkR-WO_2efuOq|~CZ-">
                                      <field name="TEXT"></field>
                                    </shadow>
                                    <block type="text_join" id="S{ypW?!PP]X9kes|Xh$y">
                                      <mutation items="4"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="9B.@,$kHZ`?jtJdbuqU/">
                                          <field name="TEXT">ioBroker - Staubsauger </field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="variables_get" id="soR+Qs_RM*A:6*ZfkaR?">
                                          <field name="VAR" id="lno{76T;UG-MO~4@k,/|">subject</field>
                                        </block>
                                      </value>
                                      <value name="ADD2">
                                        <block type="text" id="aK]!.]$|1/OmTc{nka9R">
                                          <field name="TEXT"> </field>
                                        </block>
                                      </value>
                                      <value name="ADD3">
                                        <block type="variables_get" id="Coz~J+PNkwoN$b]}tOIT">
                                          <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="FILE_1">
                                    <block type="variables_get" id="l|wjuC~xgYe/U{-jC#d-">
                                      <field name="VAR" id="dlm-%`O7q/6M6V).k*iU">map_archive_filepath</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="telegram" id="epyb2KCBsD|%@vK5.W^s">
                                      <field name="INSTANCE"></field>
                                      <field name="LOG">log</field>
                                      <field name="SILENT">FALSE</field>
                                      <field name="PARSEMODE">default</field>
                                      <value name="MESSAGE">
                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="U+#{/EM`]#fA.w~xuYuN">
                                          <field name="TEXT">text</field>
                                        </shadow>
                                        <block type="text_join" id="3)+},Dp)t;]N//Fgc+LY">
                                          <mutation items="13"></mutation>
                                          <value name="ADD0">
                                            <block type="text_join" id="MO2oltXL,M`eh1]f}zUE">
                                              <mutation items="2"></mutation>
                                              <value name="ADD0">
                                                <block type="text" id="bn(wA#BS?k#42u!:B|cK">
                                                  <field name="TEXT">Staubsauger </field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="variables_get" id="7@#3htyF[iPx$Gtj+lK~">
                                                  <field name="VAR" id="LVz(;207#pS1|F*~-/MB">last_room</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="text_newline" id="9M}/zm}6U}dZrXK@/o1M">
                                              <field name="Type">\n</field>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="text" id="z#NKWW4ljD@]9q-mvPm+">
                                              <field name="TEXT">Fläche: </field>
                                            </block>
                                          </value>
                                          <value name="ADD3">
                                            <block type="get_value" id="O]8xF/+QpL`S1k7RMg-A">
                                              <field name="ATTR">val</field>
                                              <field name="OID">mihome-vacuum.0.info.cleanedarea</field>
                                            </block>
                                          </value>
                                          <value name="ADD4">
                                            <block type="text" id="Wv0aK4y|RDqc)w0KR4^t">
                                              <field name="TEXT"> m²</field>
                                            </block>
                                          </value>
                                          <value name="ADD5">
                                            <block type="text_newline" id="f^L%%milfqJECY51Sj6S">
                                              <field name="Type">\n</field>
                                            </block>
                                          </value>
                                          <value name="ADD6">
                                            <block type="text" id="$Jc-AD-tdFm){EOE2JcV">
                                              <field name="TEXT">Zeit: </field>
                                            </block>
                                          </value>
                                          <value name="ADD7">
                                            <block type="variables_get" id="mZP:MYh@i=rsLkfnEyzV">
                                              <field name="VAR" id="p/p,!c]Yiwh[R~8D{|et">cleaning_time</field>
                                            </block>
                                          </value>
                                          <value name="ADD8">
                                            <block type="text" id="phVq$h#EEIaGMYA,824B">
                                              <field name="TEXT"> min</field>
                                            </block>
                                          </value>
                                          <value name="ADD9">
                                            <block type="text_newline" id="*r^eY=?-2Wy9g@pF2rkA">
                                              <field name="Type">\n</field>
                                            </block>
                                          </value>
                                          <value name="ADD10">
                                            <block type="text" id="#tLT:r0)g6jqb5.ub=b#">
                                              <field name="TEXT">Staubbehälter: </field>
                                            </block>
                                          </value>
                                          <value name="ADD11">
                                            <block type="math_round" id="bS1(2,6zoi_Tc1-MF]4J">
                                              <field name="OP">ROUND</field>
                                              <value name="NUM">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="t+/qBF*}USyfO#bV2Q@B">
                                                  <field name="NUM">3.1</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="m#+4wYC=/-S*(B*3flKo" inline="false">
                                                  <field name="OP">ADD</field>
                                                  <value name="A">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7bb+fA/!Tvfjt@Fn7i?m">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="nYG-7A5$~da_,(Z1=c(m">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Objects.MiRobot1S.Dustbin_Level</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="IsNMbEyF4n4TlhyL0dkK">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="0?Z@ZZirJb,u,J@CfG^!">
                                                      <field name="VAR" id="eWB[s[v+3eb}U0]+/?f5">cleaning_area</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="ADD12">
                                            <block type="text" id="RDWDT@[=tmZ/CQBH|7An">
                                              <field name="TEXT"> m²</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="USERNAME">
                                        <block type="text" id="^Al`hLjC3@THl3K%[:l}">
                                          <field name="TEXT"></field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="telegram" id="IW@iAJg7F(RbzgdN2%?f">
                                          <field name="INSTANCE"></field>
                                          <field name="LOG">log</field>
                                          <field name="SILENT">FALSE</field>
                                          <field name="PARSEMODE">default</field>
                                          <value name="MESSAGE">
                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="U+#{/EM`]#fA.w~xuYuN">
                                              <field name="TEXT">text</field>
                                            </shadow>
                                            <block type="variables_get" id="CGcD49$5r+{6rJqIi],G">
                                              <field name="VAR" id="dlm-%`O7q/6M6V).k*iU">map_archive_filepath</field>
                                            </block>
                                          </value>
                                          <value name="USERNAME">
                                            <block type="text" id="$nck!/;.l9,VG)~?kpyK">
                                              <field name="TEXT"></field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  

                  1 Reply Last reply Reply Quote 0
                  • AxelF1977
                    AxelF1977 last edited by

                    @Meistertr

                    Du hattest dieses klasse Javascript erstellt, mit dem ich bei meinem gerootetem Robbi die Karte per Telegramm schicken lassen konnte.

                    createState('vis.RockroboMap', '');
                     
                    var fs = require("fs");
                     
                    const {
                        createCanvas,
                        Canvas
                    } = require('canvas')
                    const {
                        Image
                    } = require('canvas')
                    const request = require('request');
                    const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
                     
                    //________________________________________________________________________________________________________________________________________________
                    // Farben änder
                    const COLOR_FLOOR = "#23465e";
                    const COLOR_WALLS = "#2b2e30";
                    const COLOR_PATH = "white";
                     
                    //________________________________________________________________________________________________________________________________________________
                     
                     
                     
                    //Robot Image
                    const rocky = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAMAAAHGjw8oAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADbUExURQAAAICAgICAgICAgICAgICAgHx8fH19fX19fYCAgIGBgX5+foCAgH5+foCAgH9/f39/f35+foCAgH9/f39/f4CAgH5+foGBgYCAgICAgIGBgX9/f39/f35+foCAgH9/f39/f4CAgIODg4eHh4mJiZCQkJycnJ2dnZ6enqCgoKSkpKenp62trbGxsbKysry8vL29vcLCwsXFxcbGxsvLy87OztPT09XV1d/f3+Tk5Ojo6Ozs7O3t7e7u7vHx8fLy8vPz8/X19fb29vf39/j4+Pn5+f39/f7+/v///9yECocAAAAgdFJOUwAGChgcKCkzOT5PVWZnlJmfsLq7wcrS1Nre4OXz+vr7ZhJmqwAAAAlwSFlzAAAXEQAAFxEByibzPwAAAcpJREFUKFNlkolaWkEMhYPggliBFiwWhGOx3AqCsggI4lZt8/5P5ElmuEX5P5hMMjeZJBMRafCvUKnbIqpcioci96owTQWqP0QKC54nImUAyr9k7VD1me4YvibHlJKpVUzQhR+dmdTRSDUvdHh8NK8nhqUVch7cITmXA3rtYDmH+3OL4XI1T+BhJUcXczQxOBXJuve0/daeUr5A6g9muJzo5NI2kPKtyRSGBStKQZ5RC1hENWn6NSRTrDUqLD/lsNKoFTNRETlGMn9dDoGdoDcT1fHPi7EuUDD9dMBw4+6vMQVyInnPXDsdW+8tjWfbYTbzg/OstcagzSlb0+wL/6k+1KPhCrj6YFhzS5eXuHcYNF4bsGtDYhFLTOSMqTsx9e3iyKfynb1SK+RqtEq70RzZPwEGKwv7G0OK1QA42Y+HIgct9P3WWG9ItI/mQTgvoeuWAMdlTRclO/+Km2jwlhDvinGNbyJH6EWV84AJ1wl8JowejqTqTmv+0GqDmVLlg/wLX5Mp2rO3WRs2Zs5fznAVd1EzRh10OONr7hhhM4ctevhiVVxHdYsbq+JzHzaIfdjs5CZ9tGInSfoWEXuL7//fwtn9+Jp7wSryDjBFqnOGeuUxAAAAAElFTkSuQmCC";
                    const charger = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAdVBMVEUAAAA44Yo44Yo44Yo44Yo44Yo44Yo44Yo44Yp26q844Yr///9767Kv89DG9t2g8Md26q5C44/5/vvz/fjY+ei19NNV5ZtJ45T2/fmY78KP7r1v6atq6Kjs/PPi+u7e+uvM9+Gb8MSS7r+H7bhm6KVh56JZ5p3ZkKITAAAACnRSTlMABTr188xpJ4aepd0A4wAAANZJREFUKM9VklmCgzAMQwkQYCSmLKWl2+zL/Y9YcIUL7wvkJHIUJyKkVcyy+JIGCZILGF//QLEqlTmMdsBEXi56igfH/QVGqvXSu49+1KftCbn+dtxB5LOPfNGQNRaKaQNkTJ46OMGczZg8wJB/9TB+J3nFkyqJMp44vBrnWYhJJmOn/5uVzAotV/zACnbUtTbOpHcQzVx8kxw6mavdpYP90dsNcE5k6xd8RoIb2Xgk6xAbfm5C9NiHtxGiXD/U2P96UJunrS/LOeV2GG4wfBi241P5+NwBnAEUFx9FUdUAAAAASUVORK5CYII=";
                     
                    //last map
                    let last_map;
                     
                    var canvasimg = new Canvas();
                    var ctximg = canvasimg.getContext('2d');
                    var res = {};
                     
                    var img = new Image(); // Create a new Image
                    img.src = rocky
                     
                    const img_charger = new Image();
                    img_charger.src = charger;
                     
                    const robotIp = "rockrobo"; // IP of the robot
                    const robotState = "mihome-vacuum.0.info.state" // e.g : "mihome-vacuum.0.info.state"
                     
                    httpGetAsync("http://" + robotIp + "/api/map/latest", updateMapPage);
                     
                     
                    // get actuel map data from Valetudo
                    function httpGetAsync(theUrl, callback) {
                        var xmlHttp = new XMLHttpRequest();
                        var jdata = {};
                        xmlHttp.onreadystatechange = function () {
                            //console.log(JSON.stringify(xmlHttp));
                            if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
                                try {
                                    jdata = JSON.parse(xmlHttp.responseText)
                                    //console.log(JSON.stringify(jdata));
                                } catch (err) {}
                                callback(jdata);
                            }
                     
                        }
                        xmlHttp.open("GET", theUrl, true); // true for asynchronous 
                        xmlHttp.send(null);
                    }
                     
                    function updateMapPage(res) {
                        var canvas = createCanvas();
                        var ctx = canvas.getContext('2d');
                     
                        let mapImageData;
                        var map;
                        canvas.height = 1024 * 4 //res.image.dimensions.height;
                        canvas.width = 1024 * 4 //res.image.dimensions.width;
                     
                        // Male Boden
                        if (res.image.pixels.floor && res.image.pixels.floor.length !== 0) {
                            ctx.fillStyle = COLOR_FLOOR;
                            res.image.pixels.floor.forEach(function (coord) {
                                ctx.fillRect(coord[0] * 4 + res.image.position.left * 4, coord[1] * 4 + res.image.position.top * 4, 4, 4);
                     
                            });
                        }
                        // Male Wände
                        if (res.image.pixels.obstacle_strong && res.image.pixels.obstacle_strong.length !== 0) {
                            ctx.fillStyle = COLOR_WALLS;
                            res.image.pixels.obstacle_strong.forEach(function (coord) {
                                ctx.fillRect(coord[0] * 4 + res.image.position.left * 4, coord[1] * 4 + res.image.position.top * 4, 4, 4);
                     
                            });
                        }
                     
                        // Male den Pfad
                        if (res.path.points && res.path.points.length !== 0) {
                            ctx.fillStyle = COLOR_PATH;
                            let first = true;
                            let cold1, cold2;
                     
                     
                     
                            res.path.points.forEach(function (coord) {
                                if (first) {
                                    ctx.fillRect(coord[0] / 12.5, coord[1] / 50, 2, 2);
                                    cold1 = coord[0] / 12.5;
                                    cold2 = coord[1] / 12.5;
                                } else {
                                    ctx.beginPath();
                                    ctx.lineWidth = 1;
                                    ctx.strokeStyle = "#FFFFFF";
                                    ctx.moveTo(cold1, cold2);
                                    ctx.lineTo(coord[0] / 12.5, coord[1] / 12.5);
                                    ctx.stroke();
                     
                                    cold1 = coord[0] / 12.5
                                    cold2 = coord[1] / 12.5
                                }
                                first = false
                     
                            });
                        }
                        // Zeichne Roboter
                        ctx.beginPath();
                        if (res.robot){
                            if (res.path.current_angle && typeof res.robot[0] !== "undefined" && typeof res.robot[1] !== "undefined") {
                                canvasimg = rotateRobo(img, res.path.current_angle);
                                ctx.drawImage(canvasimg, res.robot[0] / 12.5 - 15, res.robot[1] / 12.5 - 15, img.width, img.height);
                            } else {
                                ctx.drawImage(img, res.robot[0] / 12.5 - 15, res.robot[1] / 12.5 - 15, img.width, img.height);
                            }
                        }
                        // Zeichne Ladestation wenn vorhanden
                        if (res.charger){
                            if (typeof res.charger[0] !== "undefined" && typeof res.charger[1] !== "undefined") {
                                ctx.beginPath();
                                ctx.drawImage(img_charger, res.charger[0] / 12.5 - 15, res.charger[1] / 12.5 - 15);
                            }
                        }
                      
                     
                     
                        // crop image
                        let canvas_final = createCanvas();
                        let ctx_final = canvas_final.getContext('2d');
                        var trimmed = ctx.getImageData(res.image.position.left * 4, res.image.position.top * 4, res.image.dimensions.width * 4, res.image.dimensions.height * 4);
                     
                        canvas_final.height = res.image.dimensions.height * 4;
                        canvas_final.width = res.image.dimensions.width * 4;
                     
                        ctx_final.putImageData(trimmed, 0, 0);
                     
                     
                        map = canvas_final.toDataURL();
                        last_map=  canvas_final;
                        setState("javascript.0.vis.RockroboMap", '<img src="' + canvas_final.toDataURL() + '" /style="width: auto ;height: 100%;">');
                        //log('<img src="' + canvas_final.toDataURL() + '" />');
                    }
                    function send(canvas){
                    var buf = canvas.toBuffer();
                    fs.writeFile("/opt/iobroker/vac_map.png", buf, (err) => {
                      if (err) throw err;
                      log('The file has been saved!');
                    });
                    setTimeout(function(){
                       // sendTo('telegram.0', '/opt/iobroker/vac_map.png');
                        sendTo('telegram.0', {text: '/opt/iobroker/vac_map.png', caption: 'Fertig mit saugen!'});
                     }, 3000);
                     
                    }
                     
                    function rotateRobo(img, angle) {
                        var canvasimg = createCanvas(img.width, img.height);
                        var ctximg = canvasimg.getContext('2d');
                        const offset = 90;
                     
                        ctximg.clearRect(0, 0, img.width, img.height);
                        ctximg.translate(img.width / 2, img.width / 2);
                        ctximg.rotate((angle + offset) * Math.PI / 180);
                        ctximg.translate(-img.width / 2, -img.width / 2);
                        ctximg.drawImage(img, 0, 0);
                        return canvasimg;
                    }
                    schedule("*/2 * * * * *", function () {
                        var robyState = getState(robotState).val;
                     
                        if (robyState === 5 || robyState === 11 || robyState === 17) httpGetAsync("http://" + robotIp + "/api/map/latest", updateMapPage);
                    });
                     
                    subscribe({ id: 'mihome-vacuum.0.info.state'/*Vacuum state*/, change: "ne" }, function (obj) {
                     
                        if(obj.newState.val === 8 && obj.oldState.val !== 8){
                        send(last_map);
                        }
                    });
                    
                    

                    Nachdem Robbi das 4te Mal nun das rooting verloren hat, hab ich da keinen Bock mehr drauf. Der Adapter gibt die Karte ja jetzt auch aus der Cloud her.
                    Allerdings funktioniert das Script nicht mehr. Wie muss ich das abändern, damit die Karte wieder per Telegramm kommt?

                    Robbi ist nicht mehr gerootet

                    Knallochse D 2 Replies Last reply Reply Quote 0
                    • Knallochse
                      Knallochse @AxelF1977 last edited by Knallochse

                      @AxelF1977 kannst du leicht per Blockly versenden mit dem Adapter ab 2.0
                      Hier Mein Export mit meinen 2 Saugis.

                      2F35E51B-0215-4058-9DA9-8112B794E1C8.png

                      
                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable type="timeout" id="timeout">timeout</variable>
                          <variable type="timeout" id="timeout3">timeout3</variable>
                          <variable type="timeout" id="timeout2">timeout2</variable>
                          <variable type="timeout" id="timeout4">timeout4</variable>
                        </variables>
                        <block type="on_ext" id="c!wqLA*[?}xM]jh)7)cz" x="40" y="102">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id=";At=V/M;,CXn)Va`f?X5">
                              <field name="oid">mihome-vacuum.0.info.state</field>
                            </shadow>
                          </value>
                          <value name="OID1">
                            <shadow type="field_oid" id="~*x-4sw:RNh5BGXW7IZ]">
                              <field name="oid">mihome-vacuum.1.info.state</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="EAbA,SW-@`w[zU@Y63Mo">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="E%q1Ho-w{[1+=^}d%auy">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="eo)429boq#izC%i;ChAO">
                                      <field name="ATTR">val</field>
                                      <field name="OID">mihome-vacuum.0.info.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="e4q:RgK?,*%7+;;JUKTg">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_settimeout" id="~N$Ql%+#eix.dIU(//w-">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">30</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="telegram" id="9LBJ*m_T);KW:KMHWy9:">
                                      <field name="INSTANCE">.1</field>
                                      <field name="LOG"></field>
                                      <field name="SILENT">FALSE</field>
                                      <field name="PARSEMODE">default</field>
                                      <value name="MESSAGE">
                                        <shadow type="text" id="]~QQ~bla`N)][~aCEr!P">
                                          <field name="TEXT">Saugi EG fertig mit Saugen !!!</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout" id="g?EGzl?Um9}n+T6iINRB">
                                          <field name="NAME">timeout2</field>
                                          <field name="DELAY">1000</field>
                                          <field name="UNIT">ms</field>
                                          <statement name="STATEMENT">
                                            <block type="telegram" id=".K5?KVsXs6##0Dl5VK?x">
                                              <field name="INSTANCE">.1</field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="X!eL?fI?gU~aaQZOh`xx">
                                                  <field name="TEXT">/opt/iobroker/iobroker-data/files/mihome-vacuum.admin/actualMap_0.png</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="ZJ4d#i$r^rfR^9K6T%:r">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="$wUZ5mIg,XUd_GX4^8YJ">
                                      <field name="ATTR">val</field>
                                      <field name="OID">mihome-vacuum.1.info.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="pnkE.%)d@Il_D8!M`;}d">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="timeouts_settimeout" id="HnlPB{pXF#kGFI$/1H!b">
                                  <field name="NAME">timeout3</field>
                                  <field name="DELAY">30</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="telegram" id="w,1Mkmh1^_=djTb5ZZEZ">
                                      <field name="INSTANCE">.1</field>
                                      <field name="LOG"></field>
                                      <field name="SILENT">FALSE</field>
                                      <field name="PARSEMODE">default</field>
                                      <value name="MESSAGE">
                                        <shadow type="text" id="bfBR*0so?~FSPuL$ylW@">
                                          <field name="TEXT">Saugi OG fertig mit Saugen !!!</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout" id="^8R16*KKcPN185Yr@1}R">
                                          <field name="NAME">timeout4</field>
                                          <field name="DELAY">1000</field>
                                          <field name="UNIT">ms</field>
                                          <statement name="STATEMENT">
                                            <block type="telegram" id="[MV:**wPLZoyEp6]aqHN">
                                              <field name="INSTANCE">.1</field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="WmqXTs9.3i17o4|cZ(Xh">
                                                  <field name="TEXT">/opt/iobroker/iobroker-data/files/mihome-vacuum.admin/actualMap_1.png</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      
                      
                      AxelF1977 1 Reply Last reply Reply Quote 1
                      • AxelF1977
                        AxelF1977 @Knallochse last edited by

                        @Knallochse sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                        @AxelF1977 kannst du leicht per Blockly versenden mit dem Adapter ab 2.0
                        Hier Mein Export mit meinen 2 Saugis.

                        2F35E51B-0215-4058-9DA9-8112B794E1C8.png

                        
                        <xml xmlns="https://developers.google.com/blockly/xml">
                          <variables>
                            <variable type="timeout" id="timeout">timeout</variable>
                            <variable type="timeout" id="timeout3">timeout3</variable>
                            <variable type="timeout" id="timeout2">timeout2</variable>
                            <variable type="timeout" id="timeout4">timeout4</variable>
                          </variables>
                          <block type="on_ext" id="c!wqLA*[?}xM]jh)7)cz" x="40" y="102">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                            <field name="CONDITION">ne</field>
                            <field name="ACK_CONDITION"></field>
                            <value name="OID0">
                              <shadow type="field_oid" id=";At=V/M;,CXn)Va`f?X5">
                                <field name="oid">mihome-vacuum.0.info.state</field>
                              </shadow>
                            </value>
                            <value name="OID1">
                              <shadow type="field_oid" id="~*x-4sw:RNh5BGXW7IZ]">
                                <field name="oid">mihome-vacuum.1.info.state</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="EAbA,SW-@`w[zU@Y63Mo">
                                <mutation elseif="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="E%q1Ho-w{[1+=^}d%auy">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="eo)429boq#izC%i;ChAO">
                                        <field name="ATTR">val</field>
                                        <field name="OID">mihome-vacuum.0.info.state</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="e4q:RgK?,*%7+;;JUKTg">
                                        <field name="NUM">6</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_settimeout" id="~N$Ql%+#eix.dIU(//w-">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">30</field>
                                    <field name="UNIT">sec</field>
                                    <statement name="STATEMENT">
                                      <block type="telegram" id="9LBJ*m_T);KW:KMHWy9:">
                                        <field name="INSTANCE">.1</field>
                                        <field name="LOG"></field>
                                        <field name="SILENT">FALSE</field>
                                        <field name="PARSEMODE">default</field>
                                        <value name="MESSAGE">
                                          <shadow type="text" id="]~QQ~bla`N)][~aCEr!P">
                                            <field name="TEXT">Saugi EG fertig mit Saugen !!!</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="timeouts_settimeout" id="g?EGzl?Um9}n+T6iINRB">
                                            <field name="NAME">timeout2</field>
                                            <field name="DELAY">1000</field>
                                            <field name="UNIT">ms</field>
                                            <statement name="STATEMENT">
                                              <block type="telegram" id=".K5?KVsXs6##0Dl5VK?x">
                                                <field name="INSTANCE">.1</field>
                                                <field name="LOG"></field>
                                                <field name="SILENT">FALSE</field>
                                                <field name="PARSEMODE">default</field>
                                                <value name="MESSAGE">
                                                  <shadow type="text" id="X!eL?fI?gU~aaQZOh`xx">
                                                    <field name="TEXT">/opt/iobroker/iobroker-data/files/mihome-vacuum.admin/actualMap_0.png</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <value name="IF1">
                                  <block type="logic_compare" id="ZJ4d#i$r^rfR^9K6T%:r">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="$wUZ5mIg,XUd_GX4^8YJ">
                                        <field name="ATTR">val</field>
                                        <field name="OID">mihome-vacuum.1.info.state</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="pnkE.%)d@Il_D8!M`;}d">
                                        <field name="NUM">6</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO1">
                                  <block type="timeouts_settimeout" id="HnlPB{pXF#kGFI$/1H!b">
                                    <field name="NAME">timeout3</field>
                                    <field name="DELAY">30</field>
                                    <field name="UNIT">sec</field>
                                    <statement name="STATEMENT">
                                      <block type="telegram" id="w,1Mkmh1^_=djTb5ZZEZ">
                                        <field name="INSTANCE">.1</field>
                                        <field name="LOG"></field>
                                        <field name="SILENT">FALSE</field>
                                        <field name="PARSEMODE">default</field>
                                        <value name="MESSAGE">
                                          <shadow type="text" id="bfBR*0so?~FSPuL$ylW@">
                                            <field name="TEXT">Saugi OG fertig mit Saugen !!!</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="timeouts_settimeout" id="^8R16*KKcPN185Yr@1}R">
                                            <field name="NAME">timeout4</field>
                                            <field name="DELAY">1000</field>
                                            <field name="UNIT">ms</field>
                                            <statement name="STATEMENT">
                                              <block type="telegram" id="[MV:**wPLZoyEp6]aqHN">
                                                <field name="INSTANCE">.1</field>
                                                <field name="LOG"></field>
                                                <field name="SILENT">FALSE</field>
                                                <field name="PARSEMODE">default</field>
                                                <value name="MESSAGE">
                                                  <shadow type="text" id="WmqXTs9.3i17o4|cZ(Xh">
                                                    <field name="TEXT">/opt/iobroker/iobroker-data/files/mihome-vacuum.admin/actualMap_1.png</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </xml>
                        
                        

                        Funktioniert wieder 🙂 Vielen Dank!

                        Knallochse 1 Reply Last reply Reply Quote 0
                        • Knallochse
                          Knallochse @AxelF1977 last edited by

                          @AxelF1977 Gern 👍

                          1 Reply Last reply Reply Quote 0
                          • O
                            oranggila @Diginix last edited by

                            @Diginix said in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                            @oranggila Kann ich machen, aber eine Funktion, bei deren Aufruf auch Variablen übergeben werden müssen ist immer recht individuell. Die wird bei dir also so nur in Teilen funktionieren.
                            Was verhindert das schnelle selbst zusammen klicken so wie du es wirklich brauchst?

                            Crop PNG und Versand per Telegram funktioniert nach Deinem Beispiel-Blockly wunderbar. Ich schicke mir die Karte nur im Fehlerfall, um zu sehen, wo der Robi steckt. Danke nochmal @Diginix !

                            1 Reply Last reply Reply Quote 0
                            • D
                              Dennis93 @AxelF1977 last edited by

                              @AxelF1977 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                              Nachdem Robbi das 4te Mal nun das rooting verloren hat, hab ich da keinen Bock mehr drauf. Der Adapter gibt die Karte ja jetzt auch aus der Cloud her.

                              Wie funktioniert das mit der Karte aus der Cloud? Den S6 bekommt man ja nicht (so ist zumindest mein aktueller stand) gerootet.

                              AxelF1977 1 Reply Last reply Reply Quote 0
                              • AxelF1977
                                AxelF1977 @Dennis93 last edited by

                                @Dennis93 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                @AxelF1977 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                Nachdem Robbi das 4te Mal nun das rooting verloren hat, hab ich da keinen Bock mehr drauf. Der Adapter gibt die Karte ja jetzt auch aus der Cloud her.

                                Wie funktioniert das mit der Karte aus der Cloud? Den S6 bekommt man ja nicht (so ist zumindest mein aktueller stand) gerootet.

                                Über den Adapter mihome-vacuum. Unter dem Punkt Cloud die Logindaten eintragen, dann zieht der Adapter alles. Wenn das denn dort für den S6 funktioniert

                                O 1 Reply Last reply Reply Quote 0
                                • O
                                  oranggila @AxelF1977 last edited by

                                  @AxelF1977 said in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                  @Dennis93 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                  @AxelF1977 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                  Nachdem Robbi das 4te Mal nun das rooting verloren hat, hab ich da keinen Bock mehr drauf. Der Adapter gibt die Karte ja jetzt auch aus der Cloud her.

                                  Wie funktioniert das mit der Karte aus der Cloud? Den S6 bekommt man ja nicht (so ist zumindest mein aktueller stand) gerootet.

                                  Über den Adapter mihome-vacuum. Unter dem Punkt Cloud die Logindaten eintragen, dann zieht der Adapter alles. Wenn das denn dort für den S6 funktioniert
                                  Hier die Screenshots:
                                  2020-06-09 15_55_40-instances - ioBroker.png 2020-06-09 15_54_14-instances - ioBroker.png

                                  O D 2 Replies Last reply Reply Quote 0
                                  • O
                                    oranggila @oranggila last edited by

                                    @oranggila Dann bekommst Du in den Objekten die Live Map
                                    2020-06-09 16_00_13-objects - ioBroker.png

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      Dennis93 @oranggila last edited by

                                      @oranggila sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                      @AxelF1977 said in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                      @Dennis93 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                      @AxelF1977 sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                      Nachdem Robbi das 4te Mal nun das rooting verloren hat, hab ich da keinen Bock mehr drauf. Der Adapter gibt die Karte ja jetzt auch aus der Cloud her.

                                      Wie funktioniert das mit der Karte aus der Cloud? Den S6 bekommt man ja nicht (so ist zumindest mein aktueller stand) gerootet.

                                      Über den Adapter mihome-vacuum. Unter dem Punkt Cloud die Logindaten eintragen, dann zieht der Adapter alles. Wenn das denn dort für den S6 funktioniert
                                      Hier die Screenshots:
                                      2020-06-09 15_55_40-instances - ioBroker.png 2020-06-09 15_54_14-instances - ioBroker.png

                                      Screenshot_20200609_155823.jpg

                                      Wenn ihr mir jetzt noch sagen könnt, warum ich die Tabs alle nicht habe, dann wäre ich euch echt mega dankbar.
                                      Adapter ist aktuell.

                                      Diginix 1 Reply Last reply Reply Quote 0
                                      • Diginix
                                        Diginix @Dennis93 last edited by Diginix

                                        @Dennis93 Du hast eben nicht die aktuelle bzw neuste Adapter Version.
                                        Wahrscheinlich bist du im stable repo und dort ist bisher nur die 1.1.5 verfügbar, 2.0.9 brauchst du aber.

                                        O D 2 Replies Last reply Reply Quote 0
                                        • O
                                          oranggila @Diginix last edited by

                                          @Diginix said in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                          @Dennis93 Du hast eben nicht die aktuelle bzw neuste Adapter Version.
                                          Wahrscheinlich bist du im stable repo und dort ist bisher nur die 1.1.5 verfügbar, 2.0.9 brauchst du aber.

                                          Ich denke ab 2.0.4 sollte es geben laut history. Ich habe 2.0.7.
                                          2020-06-09 16_03_59-adapters - ioBroker.png

                                          Diginix 1 Reply Last reply Reply Quote 0
                                          • D
                                            Dennis93 @Diginix last edited by

                                            @Diginix sagte in Xiaomi Vacuum (Rockrobo) Saugkarte Live Map:

                                            @Dennis93 Du hast eben nicht die aktuelle bzw neuste Adapter Version.
                                            Wahrscheinlich bist du im stable repo und dort ist bisher nur die 1.1.5 verfügbar, 2.0.9 brauchst du aber.

                                            Alles Klar ... das war der fehler ... nachher mal schauen, dass ich auf die aktuelle Version komme. 🤦

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

                                            Support us

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

                                            591
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            30
                                            89
                                            18820
                                            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