Scrape: value from a dynamic table

I am a beginner with scrape…is there a way to get the actual value of a table into the sensor value?

grafik

Code (but I doesn’t work)

 - platform: scrape
    name: pegelstand
    resource: https://hydro.ooe.gv.at/#/overview/Wasserstand/station/3720/Fraham?mode=map&selected=Wasserstand
    select: ".body > div:nth-child(1) > div:nth-child(2)" 

You can get a plain json to use with a rest sensor with:

https://hydro.ooe.gv.at/daten/internet/stations/OG/3720/S/week.json

ok, thanks. But how can I get the actual/latest value with the rest sensor?

value_tempate: '{{ value_json[0]["data"][value_json[0]["rows"]|int -1][1] }}'
1 Like

@koying could you please write the value template value (value_json…) for the value ‘#L1_C’ which is a sensor collecting values from an ultrasonic?
Thank you in advance!