mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +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
|
||||
# Example configuration.yaml entry
|
||||
scrape:
|
||||
- resource: https://elen.nu/timpriser-pa-el-for-elomrade-se3-stockholm/
|
||||
- resource: https://elen.nu/dagens-spotpris/se3-stockholm/
|
||||
sensor:
|
||||
- name: Electricity price
|
||||
select: ".text-lg:is(span)"
|
||||
select: ".text-lg.font-bold"
|
||||
index: 1
|
||||
value_template: '{{ value | replace (",", ".") | float }}'
|
||||
unit_of_measurement: "öre/kWh"
|
||||
|
Loading…
x
Reference in New Issue
Block a user