Here’s something I’d like to share with you. As you might know homeassistant supports a geizhals sensor to monitor prices of single products on geizhals.de. Geizahls (german for cheapskate, miser or scrooge) is a well known service in german speaking countries allowing you to create lists of hardware components and finding lowest vendor prices.
This year I’ve purchased a new desktop computer and created this list of components: https://geizhals.de/?cat=WL-794546
I’ve set up a scrape sensor in homeassistant to fetch the current price and display it on the frontend. That way I could set up an automation to trigger an alarm when a certain price was available.
The sensor looks like this:
And here is the sensor’s code. All you need to do is to replace the URL:
- platform: scrape
resource: https://geizhals.de/?cat=WL-794546
name: Aktueller PC Preis
select: ".productlist__footer-cell span"
value_template: '{{ value.split(" ")[1] }}'
unit_of_measurement: "€"