Site updated at 2017-01-28 23:51:21 UTC

This commit is contained in:
Travis CI 2017-01-28 23:51:21 +00:00
parent c266a3ed25
commit 017e728923
553 changed files with 10016 additions and 2343 deletions

View file

@ -93,7 +93,7 @@
<p>The <code class="highlighter-rouge">ffmpeg</code> platform allows you to use any video or audio feed with <a href="http://www.ffmpeg.org/">FFmpeg</a> for various sensors in Home Assistant. Available are: <strong>noise</strong>, <strong>motion</strong>.</p>
<p class="note">
If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sensor will be unavailable. To restart it, use the service <em>binary_sensor.ffmpeg_restart</em>.
If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sensor will be unavailable. To controll the ffmpeg process of sensor, use the service <em>binary_sensor.ffmpeg_start</em>, <em>binary_sensor.ffmpeg_stop</em>, <em>binary_sensor.ffmpeg_restart</em>.
</p>
<h3><a class="title-link" name="noise" href="#noise"></a> Noise</h3>
@ -113,6 +113,7 @@ If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sens
<li><strong>input</strong> (<em>Required</em>): An FFmpeg-compatible input file, stream, or feed.</li>
<li><strong>tool</strong> (<em>Required</em>): <code class="highlighter-rouge">noise</code>.</li>
<li><strong>name</strong> (<em>Optional</em>): Override the name of your camera.</li>
<li><strong>initial_state</strong> (<em>Optional</em>): Default true. Start ffmpeg with home-assistant.</li>
<li><strong>peak</strong> (<em>Optional</em>): Default -30. The threshold of detecting noise, in dB. 0 is very loud and -100 is low.</li>
<li><strong>duration</strong> (<em>Optional</em>): Default 1 second. How long the noise needs to be over the peak to trigger the state.</li>
<li><strong>reset</strong> (<em>Optional</em>): Default 20 seconds. The time to reset the state after no new noise is over the peak.</li>
@ -145,15 +146,16 @@ If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sens
<ul>
<li><strong>input</strong> (<em>Required</em>): An FFmpeg-compatible input file, stream, or feed.</li>
<li><strong>tool</strong> (<em>Required</em>): <code class="highlighter-rouge">motion</code>.</li>
<li><strong>name</strong> (<em>Optional</em>): Override the name of your camera.</li>
<li><strong>changes</strong> (<em>Optional</em>): Default 10%. How much needs to change between two frames to detect it as motion (a lower value is more sensitive).</li>
<li><strong>reset</strong> (<em>Optional</em>): Default 20 seconds. The time to reset the state after no new motion is detected.</li>
<li><strong>repeat</strong> (<em>Optional</em>): Default 0 repeats (deactivate). How many events need to be detected in <em>repeat_time</em> in order to trigger a motion.</li>
<li><strong>repeat_time</strong> (<em>Optional</em>): Default 0 seconds (deactivate). The span of time <em>repeat</em> events need to occur in before triggering a motion.</li>
<li><strong>extra_arguments</strong> (<em>Optional</em>): Extra options to pass to FFmpeg, e.g. video denoise filtering.</li>
<li><strong>name</strong> (<em>Optional</em>): Override the name of your camera for the frontend.</li>
<li><strong>initial_state</strong> (<em>Optional</em>): Start <code class="highlighter-rouge">ffmpeg</code> with Home Assistant. Defaults to <code class="highlighter-rouge">true</code>.</li>
<li><strong>changes</strong> (<em>Optional</em>): How much needs to change between two frames to detect it as motion (a lower value is more sensitive). Defaults to 10%.</li>
<li><strong>reset</strong> (<em>Optional</em>): The time to reset the state after no new motion is detected. Defaults to 20 seconds.</li>
<li><strong>repeat</strong> (<em>Optional</em>): How many events need to be detected in <em>repeat_time</em> in order to trigger a motion. Defaults to 0 repeats (deactivated).</li>
<li><strong>repeat_time</strong> (<em>Optional</em>): The span of time <em>repeat</em> events need to occur in before triggering a motion. Defaults to 0 seconds (deactivated).</li>
<li><strong>extra_arguments</strong> (<em>Optional</em>): Extra options to pass to <code class="highlighter-rouge">ffmpeg</code>, e.g. video denoise filtering.</li>
</ul>
<p>To experiment with values (changes/100 is the scene value in FFmpeg):</p>
<p>To experiment with values (changes/100 is the scene value in <code class="highlighter-rouge">ffmpeg</code>):</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ffmpeg -i YOUR_INPUT -an -filter:v <span class="k">select</span><span class="o">=</span>gt<span class="o">(</span>scene<span class="se">\,</span>0.1<span class="o">)</span> -f framemd5 -
</code></pre>
@ -164,9 +166,13 @@ If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sens
<h4><a class="title-link" name="tipps" href="#tipps"></a> Tipps</h4>
<ul>
<li>Use motion only in a customer area with <a href="https://ffmpeg.org/ffmpeg-filters.html#crop">crop filter</a>: <code class="highlighter-rouge">extra_arguments: -filter:v "crop=100:100:12:34"</code></li>
<li>Use motion only in a customer area with <a href="https://ffmpeg.org/ffmpeg-filters.html#crop">crop filter</a>:</li>
</ul>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">extra_arguments</span><span class="pi">:</span> <span class="s">-filter:v "crop=100:100:12:34"</span>
</code></pre>
</div>
</article>
@ -210,6 +216,9 @@ If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sens
<li>
<a href='/components/binary_sensor.apcupsd/'>APCUPSd Binary Sensor</a>
</li>
<li>
<a href='/components/binary_sensor.bbb_gpio/'>BeagleBone Black GPIO Binary Sensor</a>
</li>
<li>
<a href='/components/binary_sensor.bloomsky/'>BloomSky Binary Sensor</a>
</li>
@ -246,6 +255,9 @@ If the <code class="highlighter-rouge">ffmpeg</code> process is broken, the sens
<li>
<a href='/components/binary_sensor.isy994/'>ISY994 Binary Sensor</a>
</li>
<li>
<a href='/components/binary_sensor.iss/'>International Space Station</a>
</li>
<li>
<a href='/components/binary_sensor.knx/'>KNX Binary Sensor</a>
</li>