Device EW-04
XML definition
<device>
<id>EW-04</id>
<MAC>24:6F:28:45:33:6C</MAC>
<alert-interval>6</alert-interval>
<refresh>120</refresh>
<software-version>V6.6</software-version>
<alert-time>2023-09-06T06:00:00.094+01:00</alert-time>
<name>Ginkgo biloba</name>
<description>Beside a young Ginkgo on the high side of Morley Square</description>
<treeid>MS-44</treeid>
<batteries>blue</batteries>
<location>Morley Square</location>
<device-alert-email>chris@bristoltrees.space</device-alert-email>
<fields>
<field>
<id>moisture-pc</id>
<trigger>
<min>40</min>
<warning>Too dry</warning>
</trigger>
<compute>
<method>convert-moisture</method>
<parameter id="air">3200</parameter>
<parameter id="water">1250</parameter>
</compute>
</field>
<field>
<id>soil-temp-C</id>
<tag>temp-C-1</tag>
<compare>
<device>EW-04</device>
<field>air-temp-C</field>
<colour>blue</colour>
</compare>
</field>
<field>
<id>air-temp-C</id>
<tag>temp-C-0</tag>
<compare>
<device>weather</device>
<field>air-temp-C</field>
<colour>blue</colour>
</compare>
</field>
<field>
<id>battery-voltage</id>
<trigger>
<min>3.6</min>
<warning>Low battery</warning>
</trigger>
</field>
</fields>
</device>