Custom polling: rename service to action (#33778)

This commit is contained in:
c0ffeeca7 2024-07-16 12:04:51 +02:00 committed by GitHub
parent 3234f35f39
commit 47c337ef12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -4,13 +4,14 @@ If you want to define a specific interval at which your device is being polled f
To add the automation: To add the automation:
1. Go to {% my integrations title="**Settings** > **Devices & Services**" %}, and select your integration. 1. Go to {% my integrations title="**Settings** > **Devices & services**" %}, and select your integration.
2. On the integration entry, select the {% icon "mdi:dots-vertical" %}. 2. On the integration entry, select the {% icon "mdi:dots-vertical" %}.
- Then, select **System options** and toggle the button to disable polling. - Then, select **System options** and toggle the button to disable polling.
![Disable polling for updates](/images/screenshots/custom_polling_01.png) ![Disable polling for updates](/images/screenshots/custom_polling_01.png)
3. To define your custom polling interval, create an automation. 3. To define your custom polling interval, create an automation.
- Go to {% my automations title="**Settings** > **Automations & Scenes**" %} and create a new automation. - Go to {% my automations title="**Settings** > **Automations & scenes**" %} and create a new automation.
- 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). - Select **Add action**, then, select **Other actions**.
- Select **Perform action**, and from the list, select the [`homeassistant.update_entity` action](/integrations/homeassistant/#service-homeassistantupdate_entity).
![Update entity](/images/screenshots/custom_polling_02.png) ![Update entity](/images/screenshots/custom_polling_02.png)
4. Save your new automation to poll for data. 4. Save your new automation to poll for data.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 35 KiB