Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polling data procedure: remove YAML example #29925

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions source/_includes/common-tasks/define_custom_polling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Under action, select **Call service** and use the [`homeassistant.update_entity` service](/integrations/homeassistant/#service-homeassistantupdate_entity).
![Update entity](/images/screenshots/custom_polling_02.png)
- 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.