Hello everyone
I’ve successfully installed “Scrape,” which is used to search websites, and I can retrieve the desired value. Unfortunately, I can only do this with one value; as soon as I add a second line below, it no longer works (see code below, excerpt from configuration.yaml). No matter which website I use, or which value I use, it always says “unavailable.” Does anyone know what I’m doing wrong? Or is scrape only able to search one website and one item?
Thanks in advance & regards,
Stefan
scrape:
- resource: https://www.hydrodaten.admin.ch/de/seen-und-fluesse/stationen-und-daten/2043
sensor:
- name: "Pegelstand Berlingen"
unit_of_measurement: 'm'
device_class: "distance"
state_class: "measurement"
select: "#content > div:nth-child(4) > div.col-xs-12.col-md-8 > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)"
- resource: https://www.hydrodaten.admin.ch/de/seen-und-fluesse/messstationen-temperatur
sensor:
- name: "Wassertemperatur-Bodensee"
unit_of_measurement: '°C'
device_class: "temperature"
state_class: "measurement"
select: "#hydro_map_detail > div.map.hydro-map > div.map-navigator.hydro-map-navigator > div > div > div > div:nth-child(2) > span.property-value"