From cd79d3dade17ed33f80e8c0e3d50311023d31a6d Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 10 Jul 2025 07:08:39 +0200 Subject: [PATCH] Add configuration subentries to Scrape (#39939) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/scrape.markdown | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/_integrations/scrape.markdown b/source/_integrations/scrape.markdown index fd53b078ccb..068341e29b0 100644 --- a/source/_integrations/scrape.markdown +++ b/source/_integrations/scrape.markdown @@ -18,12 +18,23 @@ related: title: Configuration file --- -The `scrape` sensor {% term integration %} scrapes information from websites. The sensor loads an HTML page, and allows you to search and extract specific values. As this is not a fully featured web scraper like [scrapy](https://scrapy.org/), it will work with simple web pages and it can be time-consuming to get the right section. +The **Scrape** sensor {% term integration %} scrapes information from websites. The sensor loads an HTML page, and allows you to search and extract specific values. As this is not a fully featured web scraper like [scrapy](https://scrapy.org/), it will work with simple web pages and it can be time-consuming to get the right section. -Both UI and YAML setup is supported while YAML provides additional configuration possibilities. +Both UI and [YAML setup](#yaml-configuration) is supported while YAML provides additional configuration possibilities. {% include integrations/config_flow.md %} +{% note %} + +Scrape uses configuration subentries for configuring the sensors. + +1. Setup the resource configuration once per resource you want to scrape information from. +2. Create one or multiple configuration subentries per sensor you want to create by scraping the website. + +{% endnote %} + +## YAML Configuration + To enable this {% term integration %} using YAML, add the following lines to your {% term "`configuration.yaml`" %} file. {% include integrations/restart_ha_after_config_inclusion.md %}