Belgium: Elia current price in Home Assistant

Thank you very much.

Here’s my upgraded (last) version:

- platform: rest
  scan_interval: 60
  resource: https://opendata.elia.be/api/explore/v2.1/catalog/datasets/ods161/records?order_by=datetime%20DESC&limit=1
  name: "Elia current price"
  value_template: "{{ 'ok' }}"
  json_attributes_path: "$.results[0]"  # Adjusted to access the first record
  json_attributes:
    - ace
    - systemimbalance
    - marginalincrementalprice
    - marginaldecrementalprice
    - imbalanceprice
    
- platform: template
  sensors:
    elia_current_price_imbalance:
      friendly_name: Elia imbalance price
      icon_template: "mdi:currency-eur"
      unit_of_measurement: "EUR"
      device_class: monetary
      state_class: measurement
      value_template: "{{ states.sensor.elia_current_price.attributes.imbalanceprice }}"
    elia_current_price_marginalincrementalprice:
      friendly_name: Elia marginal incremental price
      icon_template: "mdi:currency-eur"
      unit_of_measurement: "EUR"
      device_class: monetary
      state_class: measurement
      value_template: "{{ states.sensor.elia_current_price.attributes.marginalincrementalprice }}"
    elia_current_price_marginaldecrementalprice:
      friendly_name: Elia marginal decremental price
      icon_template: "mdi:currency-eur"
      unit_of_measurement: "EUR"
      device_class: monetary
      state_class: measurement
      value_template: "{{ states.sensor.elia_current_price.attributes.marginaldecrementalprice }}"