Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - name: "SHF next hour price"
- unique_id: shf_next_hr_price
- unit_of_measurement: "c/kWh"
- state: >
- {% set next_hr = state_attr("sensor.shf_electricity_price", "data")[states("sensor.shf_idx")|int+now().hour +1] %}
- {{ (next_hr["PriceWithTax"] | float * 100 + 0.38 ) | float | round(3) }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement