Update energy example in Scrape (#26239)

This commit is contained in:
G Johansson 2023-02-14 08:10:56 +01:00 committed by GitHub
parent d8780286f6
commit 287ffe24c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,10 +253,10 @@ This example tries to retrieve the price for electricity.
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
scrape: scrape:
- resource: https://elen.nu/timpriser-pa-el-for-elomrade-se3-stockholm/ - resource: https://elen.nu/dagens-spotpris/se3-stockholm/
sensor: sensor:
- name: Electricity price - name: Electricity price
select: ".text-lg:is(span)" select: ".text-lg.font-bold"
index: 1 index: 1
value_template: '{{ value | replace (",", ".") | float }}' value_template: '{{ value | replace (",", ".") | float }}'
unit_of_measurement: "öre/kWh" unit_of_measurement: "öre/kWh"