Trying to get sensors for multiple values on multiple sites working- I want to track property value over time from different websites. This is what I have so far
multiscrape:
- resource: https://www.redfin.com/DC/Washington/3210-Volta-Pl-NW-20007/home/9927952
scan_interval: 3600
sensor:
- unique_id: redfin_value
name: "Redfin value"
select: "#content > div.aboveBelowTheRail > div.alongTheRail > div:nth-child(1) > div > div.sectionContainer > div > div.flex-1 > div > div > div > div > div > div:nth-child(1) > div > span"
value_template: '{{ states("sensor.redfin_value") | regex_findall_index("\$([0-9\,]+)") | replace(",","") | int }}'
- resource: https://www.realtor.com/realestateandhomes-detail/M2433020829
scan_interval: 3600
sensor:
- unique_id: quantarium_value
name: Quantarium value
select: "#__next > div > div.main-container > div.rui__sc-16jloov-0.bUZHsz.rui__sc-19d2399-0.JCPvs.styles__PageContainer-sc-1r1adsz-0.kdsIYE > div.rui__sc-1snhh16-0.gCVPHh.styles__ColumnContainer-sc-1r1adsz-3.ccmmUO > div.rui__y13a2g-0.bfsgSP.styles__MainContentContainer-sc-1r1adsz-4.hVmzNx > div:nth-child(10) > div > div.styles__LegendContainer-sc-19h9le1-3.QlzSi > table > tbody > tr:nth-child(1) > td.styles__TdRight-sc-19h9le1-10.byKDYu > strong"
value_template: '{{ states("sensor.quantarium_value") | regex_findall_index("\$([0-9\,]+)") | replace(",","") | int }}'
- unique_id: collateral_value
name: Collateral value
select: "#__next > div > div.main-container > div.rui__sc-16jloov-0.bUZHsz.rui__sc-19d2399-0.JCPvs.styles__PageContainer-sc-1r1adsz-0.kdsIYE > div.rui__sc-1snhh16-0.gCVPHh.styles__ColumnContainer-sc-1r1adsz-3.ccmmUO > div.rui__y13a2g-0.bfsgSP.styles__MainContentContainer-sc-1r1adsz-4.hVmzNx > div:nth-child(10) > div > div.styles__LegendContainer-sc-19h9le1-3.QlzSi > table > tbody > tr:nth-child(2) > td.styles__TdRight-sc-19h9le1-10.byKDYu > strong"
value_template: '{{ states("sensor.collateral_value") | regex_findall_index("\$([0-9\,]+)") | replace(",","") | int }}'
- unique_id: corelogic_value
name: CoreLogic value
select: "#__next > div > div.main-container > div.rui__sc-16jloov-0.bUZHsz.rui__sc-19d2399-0.JCPvs.styles__PageContainer-sc-1r1adsz-0.kdsIYE > div.rui__sc-1snhh16-0.gCVPHh.styles__ColumnContainer-sc-1r1adsz-3.ccmmUO > div.rui__y13a2g-0.bfsgSP.styles__MainContentContainer-sc-1r1adsz-4.hVmzNx > div:nth-child(10) > div > div.styles__LegendContainer-sc-19h9le1-3.QlzSi > table > tbody > tr:nth-child(3) > td.styles__TdRight-sc-19h9le1-10.byKDYu > strong"
value_template: '{{ states("sensor.corelogic_value") | regex_findall_index("\$([0-9\,]+)") | replace(",","") | int }}'
- resource: https://www.zillow.com/homes/1600-Pennsylvania-Ave-NW-Washington,-DC-20500_rb/84074482_zpid/
scan_interval: 3600
sensor:
- unique_id: zillow_value
name: Zillow value
select: "#home-details-content > div > div > div.layout-wrapper > div.layout-container > div.data-column-container > div.summary-container > div > div.Spacer-c11n-8-62-5__sc-17suqs2-0.lpajcI > span > span:nth-child(3) > span > span"
value_template: '{{ states("sensor.zillow_value") | regex_findall_index("\$([0-9\,]+)") | replace(",","") | int }}'
and I get
Logger: custom_components.multiscrape.sensor
Source: custom_components/multiscrape/sensor.py:144
Integration: Multiscrape scraping component (documentation, issues)
First occurred: 3:51:46 PM (5 occurrences)
Last logged: 3:51:46 PM
Sensor Redfin value was unable to extract data from HTML
Sensor Quantarium value was unable to extract data from HTML
Sensor Collateral value was unable to extract data from HTML
Sensor CoreLogic value was unable to extract data from HTML
Sensor Zillow value was unable to extract data from HTML
(Obviously I used different addresses, but from these sites and the format is identical for what I am looking for.)
I want to grab these 5 values, and graph them over time. Not sure if the problem is trying to grab from multiple sites, or is my formatting wrong, or???
Any assistance would be AWESOME!!!