Updates for 0.13
This commit is contained in:
parent
784f4836d5
commit
944c7a40e4
20 changed files with 132 additions and 26 deletions
|
@ -10,8 +10,6 @@ footer: true
|
|||
ha_category: Automation Examples
|
||||
---
|
||||
|
||||
### {% linkable_title Rainy Day Light %}
|
||||
|
||||
This requires a [forecast.io](components/sensor.forecast/) sensor with the condition `weather_precip` that tells if it's raining or not.
|
||||
|
||||
Turn on a light in the living room when it starts raining, someone is home, and it's afternoon or later.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Automation examples using the sun"
|
||||
title: "Examples using the sun"
|
||||
description: "Automation examples that use the sun."
|
||||
date: 2015-10-08 19:05
|
||||
sidebar: true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Automation: use_trigger_values"
|
||||
title: "Example using use_trigger_values"
|
||||
description: "Basic example how to use use_trigger_values in automation"
|
||||
date: 2015-10-08 19:05
|
||||
sidebar: true
|
||||
|
@ -10,8 +10,6 @@ footer: true
|
|||
ha_category: Automation Examples
|
||||
---
|
||||
|
||||
### {% linkable_title Basic example for use_trigger_values %}
|
||||
|
||||
Turn on lights during daytime when it's dark enough < 200 lux.
|
||||
|
||||
```yaml
|
||||
|
|
|
@ -7,7 +7,7 @@ sidebar: true
|
|||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
ha_category: Full configuration.yaml Examples
|
||||
ha_category: Example configuration.yaml
|
||||
ha_external_link: https://gist.github.com/CCOSTAN/9934de973a293b809868
|
||||
---
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ sidebar: true
|
|||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
ha_category: Full configuration.yaml Examples
|
||||
ha_category: Example configuration.yaml
|
||||
ha_external_link: https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant
|
||||
---
|
||||
|
||||
|
|
20
source/_cookbook/customize_polling_interval.markdown
Normal file
20
source/_cookbook/customize_polling_interval.markdown
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Customize polling interval for any component"
|
||||
description: "Shows how to customize polling interval for any component via configuration.yaml."
|
||||
date: 2016-02-12 23:17 -0800
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
ha_category: Example configuration.yaml
|
||||
---
|
||||
|
||||
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 `scan_interval` 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.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry to poll Hue lights every 10 seconds.
|
||||
light:
|
||||
platform: hue
|
||||
scan_interval: 10
|
||||
```
|
|
@ -10,10 +10,9 @@ footer: true
|
|||
ha_category: Automation Examples
|
||||
---
|
||||
|
||||
#### {% linkable_title Send a reminder %}
|
||||
Always forget to eat lunch? Let Home Assistant send you a reminder.
|
||||
|
||||
Add a [notify platform](/components/notify/) of your choice
|
||||
Add a [notify platform](/components/notify/) of your choice.
|
||||
|
||||
```yaml
|
||||
notify:
|
||||
|
|
|
@ -10,8 +10,6 @@ footer: true
|
|||
ha_category: Automation Examples
|
||||
---
|
||||
|
||||
### {% linkable_title Battery level %}
|
||||
|
||||
The [iCloud](/components/device_tracker.icloud/) is gathering various details about your device including the battery level. To display it in the Frontend use a [template sensor](/components/sensor.template/).
|
||||
|
||||
```yaml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Motion detected light"
|
||||
title: "Turn on lights for 10 minutes after motion detected"
|
||||
description: "Turn on lights for 10 minutes when motion detected."
|
||||
date: 2015-10-08 19:05
|
||||
sidebar: true
|
||||
|
@ -12,11 +12,11 @@ ha_category: Automation Examples
|
|||
|
||||
#### {% linkable_title Turn on lights with a resettable off timer %}
|
||||
|
||||
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 .
|
||||
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.
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
alias: Turn on kitchen lights when there is movement
|
||||
alias: Turn on kitchen lights when there is movement
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.motion_sensor
|
||||
|
@ -29,14 +29,14 @@ script:
|
|||
timed_lamp:
|
||||
alias: "Turn on lamp and set timer"
|
||||
sequence:
|
||||
# Cancel ev. old timers
|
||||
# Cancel ev. old timers
|
||||
- execute_service: script.turn_off
|
||||
service_data:
|
||||
service_data:
|
||||
entity_id: script.timer_off
|
||||
- execute_service: light.turn_on
|
||||
service_data:
|
||||
entity_id: light.kitchen
|
||||
# Set new timer
|
||||
# Set new timer
|
||||
- execute_service: script.turn_on
|
||||
service_data:
|
||||
entity_id: script.timer_off
|
||||
|
@ -47,6 +47,6 @@ script:
|
|||
- delay:
|
||||
minutes: 10
|
||||
- execute_service: light.turn_off
|
||||
service_data:
|
||||
service_data:
|
||||
entity_id: light.kitchen
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue