Scraped values not usable in Energy dashboard

Hello. I’m trying to integrate two scraped values into my energy dashboard.
This is the code:

- resource: https://hem.nl/modelcontract/
  scan_interval: 28800 # every 8 hours
  sensor:
    - unique_id: electricity_price_normal_hem
      name: Electricity price normal HEM
      select: "#tablepress-2 > tbody > tr.row-4.even > td.column-4"
      unit_of_measurement: "€"
      value_template: '{{ value.split("€")[1]}}'
    - unique_id: electricity_price_low_hem
      name: Electricity price low HEM
      select: "#tablepress-2 > tbody > tr.row-5.odd > td.column-4"
      unit_of_measurement: "€"
      value_template: '{{ value.split("€")[1] }}'

This will give us two sensors with the values in euros.
I’d like to use these values in the energy dashboard but i get these errors. Something to do with unit conversion?
I did try value_template: '{{ value.split("€")[1] |float}}' but that didn’t help.

Any help/tips are more than welcome.

Try this
value_template: "{{ value.split('€')[1]|replace(',','.')}}"

Thanks for the tip. In the end I got it all working with this code:

- resource: https://hem.nl/modelcontract/
  scan_interval: 28800 # every 8 hours
  sensor:
    - unique_id: electricity_price_normal_hem
      name: Electricity price normal HEM
      select: "#tablepress-2 > tbody > tr.row-4.even > td.column-4"
      unit_of_measurement: 'EUR/kWh'
      value_template: "{{ value.split('€')[1]|replace(',','.')}}"
    - unique_id: electricity_price_low_hem
      name: Electricity price low HEM
      select: "#tablepress-2 > tbody > tr.row-5.odd > td.column-4"
      unit_of_measurement: 'EUR/kWh'
      value_template: "{{ value.split('€')[1]|replace(',','.')}}"