mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-07 17:36:50 +00:00
Fix energy price example (#19750)
This commit is contained in:
parent
b9e3ca938f
commit
48f923a9c8
@ -173,8 +173,9 @@ sensor:
|
||||
- platform: scrape
|
||||
resource: https://elen.nu/timpriser-pa-el-for-elomrade-se3-stockholm/
|
||||
name: Electricity price
|
||||
select: ".elspot-content"
|
||||
value_template: '{{ ((value.split(" ")[0]) | replace (",", ".")) }}'
|
||||
select: ".text-lg:is(span)"
|
||||
index: 1
|
||||
value_template: '{{ value | replace (",", ".") | float }}'
|
||||
unit_of_measurement: "öre/kWh"
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user