mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-23 02:26:51 +00:00

* Update define_custom_polling.md * Update source/_includes/common-tasks/define_custom_polling.md Co-authored-by: Franck Nijhof <git@frenck.dev> * Update source/_includes/common-tasks/define_custom_polling.md Co-authored-by: Franck Nijhof <git@frenck.dev> * tweaks * Move intro from reuse topic to common tasks - the rational does not need to be shown in every integration where the tasks is reused - slight rephrase of the intro section * Reduce redundancy * Tweak * Rephrase --------- Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Co-authored-by: c0ffeeca7 <k0ffeeka7@gmail.com>
17 lines
1008 B
Markdown
17 lines
1008 B
Markdown
|
|
|
|
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.
|
|
|
|
To add the automation:
|
|
|
|
1. Go to {% my integrations title="**Settings** > **Devices & Services**" %}, and select your integration.
|
|
2. On the integration entry, select the three dots.
|
|
- Then, select **System options** and toggle the button to disable polling.
|
|

|
|
3. To define your custom polling interval, create an automation.
|
|
- Go to {% my automations title="**Settings** > **Automations & Scenes**" %} and create a new automation.
|
|
- Define any trigger and condition you like.
|
|
- Under action, select **Call service** and use the [`homeassistant.update_entity` service](/integrations/homeassistant/#service-homeassistantupdate_entity).
|
|

|
|
4. Save your new automation to poll for data.
|