Please help with understanding Scrape sensor
try get petrol price data
- name: gas_provider
resource: "https://www.motorist.co.th/en/petrol-prices"
scan_interval: 3600
sensor:
- unique_id: gas_provider
name: "Gas prices"
value_template: 0.0
unit_of_measurement: "THB/L"
icon: mdi:gas-station
select: "body > main > div > div.container.pb-5.fuel_comparison > div:nth-child(1) > div > div > div > div.th-fuel-table > table > tbody > tr:nth-child(2)"