I’ve been trying now tonight do make a scraper work for prices from amazon.se but I’m getting some serious hazzle with the value template.
So far it looks something like this:
sensor:
- platform: scrape
resource: https://www.amazon.se/-/en/dp/B07VXKF1L4
name: "Amazon 12TB"
select: "#price_inside_buybox"
value_template: '{{ ((value.split(" ")[0]) | replace(" :","") | replace(",",".") | replace("kr","")) }}'
unit_of_measurement: "kr"
# scan_interval: 3600
And that looks correct at first glance:
But when I check the graph it seems to be only showing the first 2 and ignoring the rest?