Site updated at 2017-05-31 06:38:25 UTC
This commit is contained in:
parent
13fe56aa0d
commit
0eadbdc41e
26 changed files with 50 additions and 40 deletions
|
@ -67,6 +67,15 @@
|
|||
</header>
|
||||
<hr class="divider">
|
||||
<p>The <code class="highlighter-rouge">miflora</code> sensor platform allows one to monitor to plants. The <a href="https://www.aliexpress.com/item/Newest-Original-Xiaomi-Flora-Monitor-Digital-Plants-Flowers-Soil-Water-Light-Tester-Sensor-Monitor-for-Aquarium/32685750372.html">Mi Flora plant sensor</a> is a small Bluetooth Low Energy device that monitors not only the moisture, but also light, temperature and conductivity. As only a single BLE device can be polled at the same time, the library implements locking to make sure this is the case.</p>
|
||||
<p>Start a scan to determine the MAC addresses of the sensor:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo hcitool lescan
|
||||
LE Scan ...
|
||||
F8:04:33:AF:AB:A2 <span class="o">[</span>TV] UE48JU6580
|
||||
C4:D3:8C:12:4C:57 Flower mate
|
||||
<span class="o">[</span>...]
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Check for <code class="highlighter-rouge">Flower care</code> or <code class="highlighter-rouge">Flower mate</code> entries, those are your sensor.</p>
|
||||
<p>To use your Mi Flora plant sensor in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">sensor</span><span class="pi">:</span>
|
||||
|
@ -77,7 +86,7 @@
|
|||
</code></pre>
|
||||
</div>
|
||||
<ul>
|
||||
<li><strong>mac</strong> (<em>Required</em>): The MAC address of your sensor. You can find this be running <code class="highlighter-rouge">hcitool lescan</code> from command line.</li>
|
||||
<li><strong>mac</strong> (<em>Required</em>): The MAC address of your sensor.</li>
|
||||
<li><strong>monitored_conditions</strong> array (<em>Optional</em>): The paramaters that should be monitored (defaults to monitoring all parameters).
|
||||
<ul>
|
||||
<li><strong>moisture</strong>: Moisture in the soil.</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue