Forsøkte dette i går, men fikk fortsatt ikke verdier ut. Ser ut til at den har kommet seg i dag morges, så fungerte tydeligvis uansett.
Men endte med å benytte dette
rest:
scan_interval: 86400
resource: https://raw.githubusercontent.com/martinju/stromstotte/master/data/current_estimated_compensation.json
sensor:
- name: "Mean price"
json_attributes_path: "$.16"
value_template: "{{ value_json.16.mean_price | round (2)}}"
unit_of_measurement: "kr"
json_attributes:
- "estimation_date"
- "computation_year"
- "computation_month"
- name: "Quantile 0.025"
json_attributes_path: "$.19"
value_template: "{{ value_json.19.mean_price | round (2)}}"
unit_of_measurement: "kr"
json_attributes:
- "estimation_date"
- "computation_year"
- "computation_month"
- name: "Quantile 0.975"
json_attributes_path: "$.26"
value_template: "{{ value_json.26.mean_price | round (2)}}"
unit_of_measurement: "kr"
json_attributes:
- "estimation_date"
- "computation_year"
- "computation_month"