Site updated at 2017-07-16 03:28:11 UTC
This commit is contained in:
parent
39adc6a9cd
commit
477f499ed2
26 changed files with 57 additions and 42 deletions
|
@ -88,12 +88,27 @@
|
|||
</div>
|
||||
<p>Configuration variables:</p>
|
||||
<ul>
|
||||
<li><strong>sensor</strong> (<em>Required</em>): The sensor type, supported devices are DHT11, DHT22, and AM2302</li>
|
||||
<li><strong>sensor</strong> (<em>Required</em>): The sensor type, supported devices are DHT11, DHT22, and AM2302.</li>
|
||||
<li><strong>pin</strong> (<em>Required</em>): The pin the sensor is connected to.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name of the sensor</li>
|
||||
<li><strong>monitored_conditions</strong> array (<em>Required</em>): Conditions to monitor. Available conditions are only <em>temperature</em> and <em>humidity</em>.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name of the sensor.</li>
|
||||
<li><strong>monitored_conditions</strong> array (<em>Required</em>): Conditions to monitor. Available conditions are only <em>temperature</em> and <em>humidity</em>.</li>
|
||||
<li><strong>temperature_offset</strong> (<em>Optional</em>): Add or subtract a value from the temperature.</li>
|
||||
<li><strong>humidity_offset</strong> (<em>Optional</em>): Add or subtract a value from the humidity.</li>
|
||||
</ul>
|
||||
<p>The name of the pin to which the sensor is connected has different names on different platforms. ‘P8_11’ for Beaglebone, ‘23’ for Raspberry Pi.</p>
|
||||
<h3><a class="title-link" name="example" href="#example"></a> Example</h3>
|
||||
<p>An example for a Raspberry Pi 3 with a DHT22 sensor connected to GPIO4 (pin 7):</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">sensor</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">dht</span>
|
||||
<span class="s">sensor</span><span class="pi">:</span> <span class="s">DHT22</span>
|
||||
<span class="s">pin</span><span class="pi">:</span> <span class="s">4</span>
|
||||
<span class="s">temperature_offset</span><span class="pi">:</span> <span class="s">2.1</span>
|
||||
<span class="s">humidity_offset</span><span class="pi">:</span> <span class="s">-3.2</span>
|
||||
<span class="s">monitored_conditions</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">temperature</span>
|
||||
<span class="pi">-</span> <span class="s">humidity</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue