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