mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Polling data procedure: remove YAML example (#29925)
This commit is contained in:
parent
3208eadebd
commit
11b6657adf
@ -11,22 +11,4 @@ If you want to define a specific interval at which your device is being polled f
|
|||||||
- Define any trigger and condition you like.
|
- Define any trigger and condition you like.
|
||||||
- Under action, select **Call service** and use the [`homeassistant.update_entity` service](/integrations/homeassistant/#service-homeassistantupdate_entity).
|
- Under action, select **Call service** and use the [`homeassistant.update_entity` service](/integrations/homeassistant/#service-homeassistantupdate_entity).
|
||||||

|

|
||||||
- Example in YAML.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
automation:
|
|
||||||
- alias: "Only update weather information every 20 minutes when I'm home"
|
|
||||||
trigger:
|
|
||||||
- platform: time_pattern
|
|
||||||
minutes: "/20"
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: device_tracker.cynthia
|
|
||||||
state: home
|
|
||||||
action:
|
|
||||||
- service: homeassistant.update_entity
|
|
||||||
target:
|
|
||||||
entity_id: weather.home
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Save your new automation to poll for data.
|
4. Save your new automation to poll for data.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user