I’m trying to extract a value from a webpage that contains weather information. I can scrape the value, but I’m having trouble removing the °C symbol. I’ve tried several methods, but the °C symbol remains. Here’s the code I have so far:
- resource: https://people.zeelandnet.nl/whozee/aktuell.htm
scan_interval: 3600
sensor:
- unique_id: Temp_buiten
name: Outside Temperature
select: 'tr > td:nth-child(3)'
value_template: '{{ value.split("°C")[0] }}'
I’d appreciate any help in figuring out how to remove the °C symbol from the extracted value.