Site updated at 2016-02-13 08:04:22 UTC

This commit is contained in:
Travis CI 2016-02-13 08:04:22 +00:00
parent 8a5bfbdfe2
commit 946c08f0ef
91 changed files with 1382 additions and 337 deletions

View file

@ -113,9 +113,7 @@
<hr class="divider">
<h3><a class="title-link" name="rainy-day-light" href="#rainy-day-light"></a> Rainy Day Light</h3>
<p>This requires a <a href="components/sensor.forecast/">forecast.io</a> sensor with the condition <code>weather_precip</code> that tells if its raining or not.</p>
<p>This requires a <a href="components/sensor.forecast/">forecast.io</a> sensor with the condition <code>weather_precip</code> that tells if its raining or not.</p>
<p>Turn on a light in the living room when it starts raining, someone is home, and its afternoon or later.</p>
@ -184,20 +182,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
Automation for rainy days
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -208,6 +203,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -7,7 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Automation examples using the sun - Home Assistant</title>
<title>Examples using the sun - Home Assistant</title>
<meta name="author" content="Paulus Schoutsen">
<meta name="description" content="Automation examples that use the sun.">
@ -15,7 +15,7 @@
<link rel="canonical" href="https://home-assistant.io/cookbook/automation_sun/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Automation examples using the sun">
<meta property="og:title" content="Examples using the sun">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/cookbook/automation_sun/">
<meta property="og:type" content="article">
@ -25,7 +25,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Automation examples using the sun">
<meta name="twitter:title" content="Examples using the sun">
<meta name="twitter:description" content="Automation examples that use the sun.">
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
@ -107,7 +107,7 @@
<header>
<h1 class="title indent">
Automation Examples Using the Sun
Examples Using the Sun
</h1>
</header>
<hr class="divider">
@ -237,20 +237,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
Automation examples using the sun
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
Examples using the sun
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -261,6 +258,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -165,20 +165,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -189,6 +186,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
Using time interval and input boolean
</li>

View file

@ -7,7 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Automation: use_trigger_values - Home Assistant</title>
<title>Example using use_trigger_values - Home Assistant</title>
<meta name="author" content="Paulus Schoutsen">
<meta name="description" content="Basic example how to use use_trigger_values in automation">
@ -15,7 +15,7 @@
<link rel="canonical" href="https://home-assistant.io/cookbook/basic_example_use_trigger_values/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Automation: use_trigger_values">
<meta property="og:title" content="Example using use_trigger_values">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/cookbook/basic_example_use_trigger_values/">
<meta property="og:type" content="article">
@ -25,7 +25,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Automation: use_trigger_values">
<meta name="twitter:title" content="Example using use_trigger_values">
<meta name="twitter:description" content="Basic example how to use use_trigger_values in automation">
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
@ -107,15 +107,13 @@
<header>
<h1 class="title indent">
Automation: Use_trigger_values
Example Using Use_trigger_values
</h1>
</header>
<hr class="divider">
<h3><a class="title-link" name="basic-example-for-use_trigger_values" href="#basic-example-for-use_trigger_values"></a> Basic example for use_trigger_values</h3>
<p>Turn on lights during daytime when its dark enough &lt; 200 lux.</p>
<p>Turn on lights during daytime when its dark enough &lt; 200 lux.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">automation</span>:
@ -166,20 +164,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
Automation: use_trigger_values
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
Example using use_trigger_values
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -190,6 +185,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -132,13 +132,16 @@
<a href='/cookbook'>Back to the cookbook</a>
</div>
<div class='section'>
<h1 class="title delta">Full configuration.yaml Examples</h1>
<h1 class="title delta">Example configuration.yaml</h1>
<ul class='divided'>
<li>
Configuration.yaml by Carlo Costanzo
</li>
<li>
<a href='/cookbook/configuration_yaml_by_happyleavesaoc/'>Configuration.yaml by happyleavesaoc</a>
<a href='https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant'>Configuration.yaml by happyleavesaoc <i class="icon-external-link"></i></a>
</li>
<li>
<a href='/cookbook/customize_polling_interval/'>Customize polling interval for any component</a>
</li>
</ul>
</div>

View file

@ -132,14 +132,17 @@
<a href='/cookbook'>Back to the cookbook</a>
</div>
<div class='section'>
<h1 class="title delta">Full configuration.yaml Examples</h1>
<h1 class="title delta">Example configuration.yaml</h1>
<ul class='divided'>
<li>
<a href='/cookbook/configuration_yaml_by_carlo_costanzo/'>Configuration.yaml by Carlo Costanzo</a>
<a href='https://gist.github.com/CCOSTAN/9934de973a293b809868'>Configuration.yaml by Carlo Costanzo <i class="icon-external-link"></i></a>
</li>
<li>
Configuration.yaml by happyleavesaoc
</li>
<li>
<a href='/cookbook/customize_polling_interval/'>Customize polling interval for any component</a>
</li>
</ul>
</div>
</section>

View file

@ -0,0 +1,195 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Customize polling interval for any component - Home Assistant</title>
<meta name="author" content="Paulus Schoutsen">
<meta name="description" content="Shows how to customize polling interval for any component via configuration.yaml.">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/cookbook/customize_polling_interval/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Customize polling interval for any component">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/cookbook/customize_polling_interval/">
<meta property="og:type" content="article">
<meta property="og:description" content="Shows how to customize polling interval for any component via configuration.yaml.">
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Customize polling interval for any component">
<meta name="twitter:description" content="Shows how to customize polling interval for any component via configuration.yaml.">
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
</head>
<body >
<header>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
<a href="/" class="site-title">
<img width='40' src='/demo/favicon-192x192.png'>
<span>Home Assistant</span>
</a>
</div>
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li>
<a>Getting started <i class="icon icon-caret-down"></i></a>
<ul>
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
<li><a href='/getting-started/configuration/'>Configuration basics</a></li>
<li><a href='/getting-started/devices/'>Adding devices</a></li>
<li><a href='/getting-started/presence-detection/'>Presence detection</a></li>
<li><a href='/getting-started/automation/'>Automation</a></li>
<li><a href='/getting-started/templating/'>Templating</a></li>
</ul>
</li>
<li><a href='/components/'>Components</a></li>
<li><a href='/cookbook'>Examples</a></li>
<li>
<a>Developers <i class="icon icon-caret-down"></i></a>
<ul>
<li><a href="/developers/">Setup Development</a></li>
<li><a href="/developers/architecture/">Architecture</a></li>
<li><a href="/developers/frontend/">Frontend development</a></li>
<li><a href="/developers/creating_components/">
Creating components
</a></li>
<li><a href="/developers/add_new_platform/">
Adding platform support
</a></li>
<li><a href="/developers/api/">API</a></li>
<li><a href="/developers/credits/">Credits</a></li>
</ul>
</li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/help/">Need help?</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="page">
<header>
<h1 class="title indent">
Customize Polling Interval for Any Component
</h1>
</header>
<hr class="divider">
<p>Platforms that require polling will be polled in an interval specified by the main component. For example a light will check every 30 seconds for a changed state. It is possible to overwrite this scan interval for any platform that is being polled by specifying a <code>scan_interval</code> config key. In the example below we setup the Philips Hue lights but tell Home Assistant to poll the devices every 10 seconds instead of the default 30 seconds.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="comment"># Example configuration.yaml entry to poll Hue lights every 10 seconds.</span>
<span class="key">light</span>:
<span class="key">platform</span>: <span class="string"><span class="content">hue</span></span>
<span class="key">scan_interval</span>: <span class="string"><span class="content">10</span></span>
</pre></div>
</div>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="aside-module grid__item one-whole lap-one-half">
<div class='edit-github'><a href='https://github.com/balloob/home-assistant.io/tree/master/source/_cookbook/customize_polling_interval.markdown'>Edit this page on GitHub</a></div>
<div class='section'>
<a href='/cookbook'>Back to the cookbook</a>
</div>
<div class='section'>
<h1 class="title delta">Example configuration.yaml</h1>
<ul class='divided'>
<li>
<a href='https://gist.github.com/CCOSTAN/9934de973a293b809868'>Configuration.yaml by Carlo Costanzo <i class="icon-external-link"></i></a>
</li>
<li>
<a href='https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant'>Configuration.yaml by happyleavesaoc <i class="icon-external-link"></i></a>
</li>
<li>
Customize polling interval for any component
</li>
</ul>
</div>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<div class="copyright">
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
<a rel="me" href='https://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
<div class="credit">
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
</div>
</div>
</div>
</div>
</div>
</footer>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<script>
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>

View file

@ -204,20 +204,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
Dim lights when playing media
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -228,6 +225,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -122,13 +122,13 @@
<p><a href="/cookbook/automation_for_rainy_days/">Automation for rainy days</a></p>
</li>
<li>
<p><a href="/cookbook/automation_sun/">Automation examples using the sun</a></p>
<p><a href="/cookbook/automation_sun/">Examples using the sun</a></p>
</li>
<li>
<p><a href="/cookbook/basic_example_use_trigger_values/">Automation: use_trigger_values</a></p>
<p><a href="/cookbook/basic_example_use_trigger_values/">Example using use_trigger_values</a></p>
</li>
<li>
<p><a href="/cookbook/turn_on_light_for_10_minutes_when_motion_detected/">Motion detected light</a></p>
<p><a href="/cookbook/turn_on_light_for_10_minutes_when_motion_detected/">Turn on lights for 10 minutes after motion detected</a></p>
</li>
<li>
<p><a href="/cookbook/dim_lights_when_playing_media/">Dim lights when playing media</a></p>
@ -161,14 +161,17 @@
</li>
</ul>
<h3><a class="title-link" name="full-configurationyaml-examples" href="#full-configurationyaml-examples"></a> Full configuration.yaml Examples</h3>
<h3><a class="title-link" name="example-configurationyaml" href="#example-configurationyaml"></a> Example configuration.yaml</h3>
<ul>
<li>
<p><a href="https://gist.github.com/CCOSTAN/9934de973a293b809868">Configuration.yaml by Carlo Costanzo</a></p>
<p><a href="https://gist.github.com/CCOSTAN/9934de973a293b809868">Configuration.yaml by Carlo Costanzo <i class="icon-external-link"></i></a></p>
</li>
<li>
<p><a href="https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant">Configuration.yaml by happyleavesaoc</a></p>
<p><a href="https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant">Configuration.yaml by happyleavesaoc <i class="icon-external-link"></i></a></p>
</li>
<li>
<p><a href="/cookbook/customize_polling_interval/">Customize polling interval for any component</a></p>
</li>
</ul>

View file

@ -221,20 +221,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
Restart Home Assistant if Wemo Switch is not detected
@ -245,6 +242,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -113,10 +113,9 @@
<hr class="divider">
<h4><a class="title-link" name="send-a-reminder" href="#send-a-reminder"></a> Send a reminder</h4>
<p>Always forget to eat lunch? Let Home Assistant send you a reminder.</p>
<p>Always forget to eat lunch? Let Home Assistant send you a reminder.</p>
<p>Add a <a href="/components/notify/">notify platform</a> of your choice</p>
<p>Add a <a href="/components/notify/">notify platform</a> of your choice.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">notify</span>:
@ -167,20 +166,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -191,6 +187,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -113,9 +113,7 @@
<hr class="divider">
<h3><a class="title-link" name="battery-level" href="#battery-level"></a> Battery level</h3>
<p>The <a href="/components/device_tracker.icloud/">iCloud</a> is gathering various details about your device including the battery level. To display it in the Frontend use a <a href="/components/sensor.template/">template sensor</a>.</p>
<p>The <a href="/components/device_tracker.icloud/">iCloud</a> is gathering various details about your device including the battery level. To display it in the Frontend use a <a href="/components/sensor.template/">template sensor</a>.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre> - <span class="string"><span class="content">platform: template</span></span>
@ -166,20 +164,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Motion detected light</a>
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -190,6 +185,9 @@
<li>
Track your battery level
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>

View file

@ -7,7 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Motion detected light - Home Assistant</title>
<title>Turn on lights for 10 minutes after motion detected - Home Assistant</title>
<meta name="author" content="Paulus Schoutsen">
<meta name="description" content="Turn on lights for 10 minutes when motion detected.">
@ -15,7 +15,7 @@
<link rel="canonical" href="https://home-assistant.io/cookbook/turn_on_light_for_10_minutes_when_motion_detected/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Motion detected light">
<meta property="og:title" content="Turn on lights for 10 minutes after motion detected">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/cookbook/turn_on_light_for_10_minutes_when_motion_detected/">
<meta property="og:type" content="article">
@ -25,7 +25,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Motion detected light">
<meta name="twitter:title" content="Turn on lights for 10 minutes after motion detected">
<meta name="twitter:description" content="Turn on lights for 10 minutes when motion detected.">
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
@ -107,7 +107,7 @@
<header>
<h1 class="title indent">
Motion Detected Light
Turn on Lights for 10 Minutes After Motion Detected
</h1>
</header>
<hr class="divider">
@ -115,11 +115,11 @@
<h4><a class="title-link" name="turn-on-lights-with-a-resettable-off-timer" href="#turn-on-lights-with-a-resettable-off-timer"></a> Turn on lights with a resettable off timer</h4>
<p>This recipe will turn on a light when there is motion and turn off the light when ten minutes has passed without any motion events .</p>
<p>This recipe will turn on a light when there is motion and turn off the light when ten minutes has passed without any motion events.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">automation</span>:
<span class="key">alias</span>: <span class="string"><span class="content">Turn on kitchen lights when there is movement </span></span>
<span class="key">alias</span>: <span class="string"><span class="content">Turn on kitchen lights when there is movement</span></span>
<span class="key">trigger</span>:
- <span class="string"><span class="content">platform: state</span></span>
<span class="key">entity_id</span>: <span class="string"><span class="content">sensor.motion_sensor</span></span>
@ -132,14 +132,14 @@
<span class="key">timed_lamp</span>:
<span class="key">alias</span>: <span class="string"><span class="delimiter">&quot;</span><span class="content">Turn on lamp and set timer</span><span class="delimiter">&quot;</span></span>
<span class="key">sequence</span>:
<span class="comment"># Cancel ev. old timers </span>
<span class="comment"># Cancel ev. old timers</span>
- <span class="string"><span class="content">execute_service: script.turn_off</span></span>
<span class="key">service_data</span>:
<span class="key">service_data</span>:
<span class="key">entity_id</span>: <span class="string"><span class="content">script.timer_off</span></span>
- <span class="string"><span class="content">execute_service: light.turn_on</span></span>
<span class="key">service_data</span>:
<span class="key">entity_id</span>: <span class="string"><span class="content">light.kitchen</span></span>
<span class="comment"># Set new timer </span>
<span class="comment"># Set new timer</span>
- <span class="string"><span class="content">execute_service: script.turn_on</span></span>
<span class="key">service_data</span>:
<span class="key">entity_id</span>: <span class="string"><span class="content">script.timer_off</span></span>
@ -150,7 +150,7 @@
- <span class="string"><span class="content">delay:</span><span class="content">
minutes: 10</span></span>
- <span class="string"><span class="content">execute_service: light.turn_off</span></span>
<span class="key">service_data</span>:
<span class="key">service_data</span>:
<span class="key">entity_id</span>: <span class="string"><span class="content">light.kitchen</span></span>
</pre></div>
</div>
@ -175,20 +175,17 @@
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_sun/'>Automation examples using the sun</a>
</li>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/basic_example_use_trigger_values/'>Automation: use_trigger_values</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
Motion detected light
<a href='/cookbook/basic_example_use_trigger_values/'>Example using use_trigger_values</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
@ -199,6 +196,9 @@
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
Turn on lights for 10 minutes after motion detected
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>