Skip to content

Commit

Permalink
add unique id in 2024.11 tibber sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFes authored Dec 19, 2024
1 parent 0fd06fd commit 6b65e8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion documentation/1-source_sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ template:
end: "{{ (today_at() + timedelta(days=2)).strftime('%Y-%m-%d %H:%M:%S') }}"
response_variable: prices
sensor:
- name: tibber_forecast
- unique_id: 4283313c-8ccc-460f-8d4f-92b804cdc711
name: tibber_forecast
state: "{{ prices.prices.values() | first | selectattr('start_time', '<=', now().isoformat()) | map(attribute='price') | list | last }}"
attributes:
prices: >
Expand Down

0 comments on commit 6b65e8f

Please sign in to comment.