Hab soeben für meinem Rasenmähroboter Gardena Sileno ein Skript erstellt das wenn es regnet oder zu warm bzw. zu kalt ist das er automatisch in die Station zurückfährt. Die benutzte Hardware wäre Xiaomi 1x Temperatur- und 1x Wasserstandssensor angebunden auf einem Zigbee Stick. Weiß jemand ob man den Xiaomi Bodensensor zwecks der Bodenfeuchte auch am CC2530 oder [definition='64','0']CC2531[/definition] anbinden kann? Vielleicht hat ja jemand hier noch Verbesserungsvorschläge für das Skript
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="+A7wlutQO8gBfqosc.y3" x="-862" y="-287">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
<field name="oid">zigbee.0.00158d00023878f9</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="=*YMEuEx]n!98FPdz.8p">
<field name="oid">zigbee.0.00158d0002701fd6.detected</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="V6]e:v6u:?I_dnQ6L_VO">
<value name="IF0">
<block type="logic_compare" id="YL]^MiM0C_d90EjXd7qr">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="yM=9zWrslsViHeXAVGm6">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d00023878f9.temperature</field>
</block>
</value>
<value name="B">
<block type="text" id="H=g~S*6(?G/uCr~jDdCp">
<field name="TEXT">28</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="vs.J|^}}{M%%SJ1bpk;V">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="gvfoVV5t!!Us3^C~!w.H">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="I5G5,xEQ9|pglEcLrxmF">
<value name="IF0">
<block type="logic_compare" id="0:j(PpuR#q]w,2%zPefn">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="=aOq*pG]LHVvtPf35L-@">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d00023878f9.temperature</field>
</block>
</value>
<value name="B">
<block type="text" id="./tM;5GiY1BD-I9)|6iW">
<field name="TEXT">5</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="r)IqM@+KHcCyL;n|C}++">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="FX4pGcn{T*VLc~!rKTs,">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="Fka;*|t}*-`SbqlH][O,">
<value name="IF0">
<block type="logic_compare" id="M~uV)}gj0R1:#*W8;u|_">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=";C4ZX5Zy!7cKvi8im7j~">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d0002701fd6.detected</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="4LuZn)urV=lv8oo%d@pS">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="W@d-F3O_9HHWW#dCNkL=">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="A4H}`x`xaT~u.qw:OMjO">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Alles anzeigen