From 11b6657adf8a6c89de5817d3c2df2c4589b2e579 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Mon, 20 Nov 2023 08:36:24 +0100 Subject: [PATCH] Polling data procedure: remove YAML example (#29925) --- .../common-tasks/define_custom_polling.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/_includes/common-tasks/define_custom_polling.md b/source/_includes/common-tasks/define_custom_polling.md index 2dc20dc9944..bfa61648392 100644 --- a/source/_includes/common-tasks/define_custom_polling.md +++ b/source/_includes/common-tasks/define_custom_polling.md @@ -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.