mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Polling interval: add definition (#35353)
* Polling interval: add definition * Re-add intro * Update source/common-tasks/general.markdown
This commit is contained in:
parent
1b0ec92210
commit
a7d770bd88
@ -9,11 +9,17 @@ This section provides tasks that do not depend on a specific Home Assistant inst
|
||||
|
||||
## Defining a custom polling interval
|
||||
|
||||
Creating an automation for polling gives you more flexibility on when to poll.
|
||||
If you want to define a specific interval at which your device is being polled for data, you can disable the default polling interval and create your own polling automation.
|
||||
|
||||
Why use an automation instead of changing the integration's configuration for polling?
|
||||
## What is data polling?
|
||||
|
||||
1. Not all integrations have a configurable polling interval. The homassistant.update_entity service on the other hand works with most of the integrations, no code changes required.
|
||||
Data polling is the process of querying a device or service at regular intervals to check for updates or retrieve data. By defining a custom polling interval, you can control how frequently your system checks for new data, which can help optimize performance and reduce unnecessary network traffic.
|
||||
|
||||
## Why use an automation instead of changing the integration's polling configuration?
|
||||
|
||||
Creating an automation for polling gives you more flexibility on when to poll:
|
||||
|
||||
1. Not all integrations have a configurable polling interval. The homeassistant.update_entity service, on the other hand, works with most of the integrations; no code changes are required.
|
||||
2. An automation allows you to poll whenever you want. For example, if you have a rate-limited solar panel provider with a maximum number of requests per day, you may want to lower/stop the polling at night but poll more frequently during the day.
|
||||
|
||||
{% include common-tasks/define_custom_polling.md %}
|
Loading…
x
Reference in New Issue
Block a user