mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 06:46:58 +00:00
Update energy example in Scrape (#26239)
This commit is contained in:
parent
d8780286f6
commit
287ffe24c5
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user