<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="mpython_init_wifi" id="t^bp}QDu[J4chMy{XPm^" x="-793" y="-519">
    <value name="ssid">
      <shadow type="text" id="X/[`V.bKJtKZ$MTpG;G{">
        <field name="TEXT">xcl</field>
      </shadow>
    </value>
    <value name="password">
      <shadow type="text" id="Z?F:.1.+).rw5d_+/]a$">
        <field name="TEXT">xclxclxcl</field>
      </shadow>
    </value>
    <next>
      <block type="mqtt_setup" id="pUi7-@k#D*In-5x901@Y">
        <value name="Server">
          <shadow type="text" id="XVcV|:Al?mHP6}68em}D">
            <field name="TEXT">192.168.0.108</field>
          </shadow>
        </value>
        <value name="Client_ID">
          <shadow type="text" id="hLhqwsxocpAg*=^(keCg">
            <field name="TEXT">lun</field>
          </shadow>
        </value>
        <value name="Iot_id">
          <shadow type="text" id="[]BOHBnbBBJ|{I!RMqoh">
            <field name="TEXT">siot</field>
          </shadow>
        </value>
        <value name="Iot_pwd">
          <shadow type="text" id="-cy-9[?j#9UF?=rY!}%%">
            <field name="TEXT">gdwrobot</field>
          </shadow>
        </value>
        <next>
          <block type="mqtt_connect" id="7t:BwGX/02;N0Piz[vQN">
            <next>
              <block type="mpython_display_fill" id="A2u~U.(Si=([AS$^Ci``">
                <field name="display_fill">fill(0)</field>
                <next>
                  <block type="mpython_display_DispChar_5lines" id="z-/+M=SG]WkAYJ[*C2S3">
                    <field name="TEXTMODE">1</field>
                    <value name="DispChar_5lines">
                      <shadow type="mpython_4_lines" id="Uc_:Eo|H#FE5=;T.]J.n">
                        <field name="mpython_4_lines">0</field>
                      </shadow>
                    </value>
                    <value name="message">
                      <shadow type="text" id="0L5`y03tK$z%1=0[r2dX">
                        <field name="TEXT">Yeelight</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="mpython_display_DispChar_5lines" id="%7zp0!YhP@*{8!uJ{5#W">
                        <field name="TEXTMODE">1</field>
                        <value name="DispChar_5lines">
                          <shadow type="mpython_4_lines" id="%b2Gju=L,vB}%MT{j*Lv">
                            <field name="mpython_4_lines">16</field>
                          </shadow>
                        </value>
                        <value name="message">
                          <shadow type="text" id="0L5`y03tK$z%1=0[r2dX">
                            <field name="TEXT">Hello, world!</field>
                          </shadow>
                          <block type="mpython_WiFi_config" id="BOm#C:s;AF$T^Ik;1eeb">
                            <field name="WiFi_config">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="mpython_display_Show" id="~[^8VSDU=gS55]TkiDrb">
                            <next>
                              <block type="mqtt_publish" id="--Do3QFq~aH[5sc}s8_}">
                                <value name="msg">
                                  <shadow type="text" id="FPE=/BX+0i0r2wVB;O$,">
                                    <field name="TEXT">ok</field>
                                  </shadow>
                                </value>
                                <value name="topic">
                                  <shadow type="text" id="G8x,c7(ZlUym+AJ@%CV,">
                                    <field name="TEXT">lun/led</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="controls_if" id="F8McBY_HBE30Te9=9c8O">
                                    <value name="IF0">
                                      <block type="logic_compare" id="P@:4V!bsgG;kwhSk$^Kx">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="lists_length" id="aMu8JHg0$~sGCOV}qkKn">
                                            <value name="VALUE">
                                              <block type="yeelight_search" id=")x7??LWf*NN:tZZDZjhc"></block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id=".aAQY$7@R2lzc_t+Gd,G">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="mpython_clear_dispchar_5lines" id="%p3a-j{45q@a^.;9=PIs">
                                        <value name="DispChar_5lines">
                                          <shadow type="mpython_4_lines" id=")wYP`el5DfbMEu=yh7Hg">
                                            <field name="mpython_4_lines">32</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="mpython_display_DispChar_5lines" id="{[PwHno#9$go?vTK./ts">
                                            <field name="TEXTMODE">1</field>
                                            <value name="DispChar_5lines">
                                              <shadow type="mpython_4_lines" id="44RDD(`Ci6hAnSHxqhYZ">
                                                <field name="mpython_4_lines">32</field>
                                              </shadow>
                                            </value>
                                            <value name="message">
                                              <shadow type="text" id="ZR_42dnZiWC-Dq8kz{m,">
                                                <field name="TEXT">Hello, yeelight!</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="mpython_display_Show" id=".lxIc68;q+W)@S7.1^TG">
                                                <next>
                                                  <block type="yeelight_init" id="UOizp2a[K;p52[H5fN1J">
                                                    <field name="yeelight_name">bulb</field>
                                                    <value name="order">
                                                      <shadow type="math_number" id="C%z9fwEAg[ms+@g1/Flr">
                                                        <field name="NUM">0</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_repeat_forever" id="{76Qjykoachs#w1XQkX%">
                                        <statement name="DO">
                                          <block type="mqtt_wait_msg" id="7=t}?0pmLCX6r:^MY9qY">
                                            <field name="mode">block</field>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="mqtt_rec_from_topic" id="pEAjOitR?9jcy00`G1~k">
                                            <field name="topic">lun/led</field>
                                            <value name="msg">
                                              <block type="variables_get" id="bK:/LO+[?|p_nL]sb|fg">
                                                <field name="VAR">_msg</field>
                                              </block>
                                            </value>
                                            <statement name="DO">
                                              <block type="mpython_clear_dispchar_5lines" id="6p2FLXEK}+{W!p+_MxUV">
                                                <value name="DispChar_5lines">
                                                  <shadow type="mpython_4_lines" id="}NXvDQbHl}qnP(FgaXrw">
                                                    <field name="mpython_4_lines">32</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="mpython_display_DispChar_5lines" id="gBzXiy)7@@t.Kom]8SQB">
                                                    <field name="TEXTMODE">1</field>
                                                    <value name="DispChar_5lines">
                                                      <shadow type="mpython_4_lines" id="(qI}b}O=T;a^oM$aFJL|">
                                                        <field name="mpython_4_lines">32</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="message">
                                                      <shadow type="text" id="rSufABp+7EY`rWw^7xg%">
                                                        <field name="TEXT">Hello, yeelight!</field>
                                                      </shadow>
                                                      <block type="variables_get" id="z6z?tIz3`@ey$0_N`=4k">
                                                        <field name="VAR">_msg</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="mpython_display_Show" id="|KX(=xevOa9Dw+PIIz7G">
                                                        <next>
                                                          <block type="controls_if" id="P52?jBAq%ko~hp|VPYP)">
                                                            <mutation elseif="9"></mutation>
                                                            <value name="IF0">
                                                              <block type="logic_compare" id="5MH.La:DkMrMGDfIV!I;">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="/K7(AZBDEqX*D[Hvcc_g">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="a9)r!{rDPNIK*$)BuLpG">
                                                                    <field name="TEXT">on</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="yeelight_switch_state" id="!~3s(=ik6(#^_8.HBKoz">
                                                                <field name="state">turn_on()</field>
                                                                <field name="yeelight_name">bulb</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF1">
                                                              <block type="logic_compare" id="}1(aDxPbb:=8$Yjueut.">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="?a:kt)7[nWIZs0[I|qXr">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id=",4L7o*l:;LKum9o{|#_K">
                                                                    <field name="TEXT">zi</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO1">
                                                              <block type="yeelight_set_rgb_color" id="~rO~-nwh9qlguijmUfwW">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#cc33cc</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF2">
                                                              <block type="logic_compare" id="od-`7h`+?$~aJY~S[F*)">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="9.|EOVqW(m8WmeJ+VLLj">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="Wa6+s6puZ!L@z(U6-hJE">
                                                                    <field name="TEXT">lan</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO2">
                                                              <block type="yeelight_set_rgb_color" id="F`al/Wa1FwT2u7y#w(ZI">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#3366ff</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF3">
                                                              <block type="logic_compare" id="AoD4ZSEp.-wQDel?:|i5">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="}BkxDV*t,v-Vs7Vmamce">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id=":(PmrrH/rQj}[C.rRF.c">
                                                                    <field name="TEXT">lv</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO3">
                                                              <block type="yeelight_set_rgb_color" id="]Pic5v##hw9{;;fo#H8o">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#33ff33</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF4">
                                                              <block type="logic_compare" id="Z)ndn_KUd],dJlo}!zBC">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="@BYhVCu(=xa$Q{w;BW%1">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="Pojj3:m/P;bIo]rKia.:">
                                                                    <field name="TEXT">bai</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO4">
                                                              <block type="yeelight_set_rgb_color" id="d.}UUwz*KqgGTJO^ZW?=">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#cccccc</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF5">
                                                              <block type="logic_compare" id="oY6f_3RwC!;iM.hr3FKU">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="-?-U^+(_4d*rW,Dbk$kL">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="G[4q#WigngmpkP^}ZU(2">
                                                                    <field name="TEXT">hong</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO5">
                                                              <block type="yeelight_set_rgb_color" id="cx_fw!JSW-v?pS~ll-TR">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#ff6666</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF6">
                                                              <block type="logic_compare" id="X#_Ox.l3H6=yV=?=zrF;">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id=")F.bmn#|gm;),lAx9Tx!">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="~%2nd3YRq_Z]GuCcZV$-">
                                                                    <field name="TEXT">huang</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO6">
                                                              <block type="yeelight_set_rgb_color" id="It|O{oQtT+pV+PM(#z;^">
                                                                <field name="yeelight_name">bulb</field>
                                                                <field name="COLOUR">#ffff00</field>
                                                              </block>
                                                            </statement>
                                                            <value name="IF7">
                                                              <block type="logic_compare" id="c(6~;/3};aW({tpMqxqV">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="^mI{gTVpqc`WspBx:Ng)">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="zS0bNsGrTw|^Dqs,dCJu">
                                                                    <field name="TEXT">100</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO7">
                                                              <block type="yeelight_set_brightness" id="Xh4ru?QqD^^`^=,j;EjP">
                                                                <field name="yeelight_name">bulb</field>
                                                                <value name="brightness">
                                                                  <shadow type="zero_to_100" id="%p`|V9.s~]nB0iPljBe9">
                                                                    <field name="count">100</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <value name="IF8">
                                                              <block type="logic_compare" id="#+%o}W~/e+Cp!%]0$7LY">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="R}CoIfWn[_eR-$5YH9R-">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="#fhJuN~N@**kzQRfu_4-">
                                                                    <field name="TEXT">50</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO8">
                                                              <block type="yeelight_set_brightness" id="lD5QoWJB,0+$;yr`O$(@">
                                                                <field name="yeelight_name">bulb</field>
                                                                <value name="brightness">
                                                                  <shadow type="zero_to_100" id="MY8[dcQH(KY=[gl;1:7@">
                                                                    <field name="count">50</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <value name="IF9">
                                                              <block type="logic_compare" id="|`d(uQC;[pv(Az}V5XBM">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="DlI$Ld%8$ut1,={*/77)">
                                                                    <field name="VAR">_msg</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="e;^{OSnEd5}3Rm~8*cpD">
                                                                    <field name="TEXT">off</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO9">
                                                              <block type="yeelight_switch_state" id="-WN3#Zg+I$bV_4~YdrPv">
                                                                <field name="state">turn_off()</field>
                                                                <field name="yeelight_name">bulb</field>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>