You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.scrape.markdown
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Configuration variables:
30
30
31
31
- **resource** (*Required*): The URL to the website that contains the value.
32
32
- **select** (*Required*): Defines the HTML tag to search for. Check Beautifulsoup's [CSS selectors](https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors) for details.
33
+
- **attribute** (*optional*): Get value of an attribute on the selected tag.
33
34
- **name** (*Optional*): Name of the sensor.
34
35
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
35
36
@@ -67,11 +68,11 @@ sensor:
67
68
68
69
### {% linkable_title Get a value out of a tag %}
69
70
70
-
The German [Federal Office for Radiation protection (Bundesamt für Strahlenschutz)](http://www.bfs.de/) is publishing various details about optical radiation including an UV index. This example is getting the index for a region in Germany.
71
+
The German [Federal Office for Radiation protection (Bundesamt für Strahlenschutz)](http://www.bfs.de/) is publishing various details about optical radiation including an UV index. This example is getting the index for a region in Germany.
If you make heavy use of the [IFTTT](/components/ifttt/) web service for your automations and are curious about the [status of IFTTT](http://status.ifttt.com/) then you can display the current state of IFTTT in your frontend.
85
86
86
87
```yaml
87
-
sensor:
88
88
# Example configuration.yaml entry
89
+
sensor:
89
90
- platform: scrape
90
91
resource: http://status.ifttt.com/
91
92
name: IFTTT status
92
93
select: '.component-status'
93
94
```
94
95
96
+
### {% linkable_title Get the latest podcast episode file URL %}
97
+
98
+
If you want to get the file URL for the latest episode of your [favourite podcast](https://hasspodcast.io/), so you can pass it on to a compatible media player.
0 commit comments