Hi Samuel, the problem is that the page is parsed without dates using the hass scraper (or any other scraper). When you look at the page, it looks like:
However, when the page is scraped and parsed (https://try.jsoup.org/), it looks like this f.e. (only the waste type, without date):
<p id="greybin"></p></div>
Normally this should work in hass, but in this case the sensor stays empty, because the scraper receives no data:
- platform: scrape
name: Greybin
resource: "https://www.braintree.gov.uk/info/200198/recycling_information_and_advice/1158/route_4_collection_dates"
select: 'p[id="greybin"]'
However, this has something todo with a script not being parsed by the scraper. The dates are there, maybe you can do something with that:
<script>
//Set the date as today
var x = new Date();
//
//
//
//PLEASE NOTE: All dates must be entered in date order.
//PLEASE NOTE: Dates must follow the format yyyy, m, d, 23.
//PLEASE NOTE: Dates start counting from 0. January = 0, February = 1 --> December = 11.
//PLEASE NOTE: Dates must end in ", 23" in order to display if the collection is same day.
//Set Grey Bin Collection Dates
var greybin = [new Date(2019,9,10,23),
new Date(2019,9,24,23),
new Date(2019,10,7,23),
new Date(2019,10,21,23),
new Date(2019,11,5,23),
new Date(2019,11,19,23),
new Date(2020,0,3,23),
new Date(2020,0,16,23),
new Date(2020,0,30,23),
new Date(2020,1,13,23),
new Date(2020,1,27,23),
new Date(2020,2,12,23),
new Date(2020,2,26,23),
new Date(2020,3,9,23),
new Date(2020,3,23,23),
new Date(2020,4,7,23),
new Date(2020,4,21,23),
new Date(2020,5,4,23),
new Date(2020,5,18,23),
new Date(2020,6,2,23),
new Date(2020,6,16,23),
new Date(2020,6,30,23),
new Date(2020,7,13,23),
new Date(2020,7,27,23),
new Date(2020,8,10,23),
new Date(2020,8,24,23),
];
//Set Green Bin Collection Dates
var greenbin = [new Date(2019,9,3,23),
new Date(2019,9,17,23),
new Date(2019,9,30,23),
new Date(2019,10,14,23),
new Date(2019,10,28,23),
new Date(2020,2,5,23),
new Date(2020,2,19,23),
new Date(2020,3,2,23),
new Date(2020,3,17,23),
new Date(2020,3,30,23),
new Date(2020,4,14,23),
new Date(2020,4,29,23),
new Date(2020,5,11,23),
new Date(2020,5,25,23),
new Date(2020,6,9,23),
new Date(2020,6,23,23),
new Date(2020,7,6,23),
new Date(2020,7,20,23),
new Date(2020,8,4,23),
new Date(2020,8,17,23),
];
//Set Clear Sack Collection Dates
var clearsack = [new Date(2019,9,3,23),
new Date(2019,9,17,23),
new Date(2019,9,30,23),
new Date(2019,10,14,23),
new Date(2019,10,28,23),
new Date(2019,11,12,23),
new Date(2019,11,27,23),
new Date(2020,0,9,23),
new Date(2020,0,23,23),
new Date(2020,1,6,23),
new Date(2020,1,20,23),
new Date(2020,2,5,23),
new Date(2020,2,19,23),
new Date(2020,3,2,23),
new Date(2020,3,17,23),
new Date(2020,3,30,23),
new Date(2020,4,14,23),
new Date(2020,4,29,23),
new Date(2020,5,11,23),
new Date(2020,5,25,23),
new Date(2020,6,9,23),
new Date(2020,6,23,23),
new Date(2020,7,6,23),
new Date(2020,7,20,23),
new Date(2020,8,4,23),
new Date(2020,8,17,23),
];
//Set Food Bin Collection Dates
var foodbin = [new Date(2019,9,3,23),
new Date(2019,9,10,23),
new Date(2019,9,17,23),
new Date(2019,9,24,23),
new Date(2019,9,30,23),
new Date(2019,10,7,23),
new Date(2019,10,14,23),
new Date(2019,10,21,23),
new Date(2019,10,28,23),
new Date(2019,11,5,23),
new Date(2019,11,12,23),
new Date(2019,11,19,23),
new Date(2019,11,27,23),
new Date(2020,0,3,23),
new Date(2020,0,9,23),
new Date(2020,0,16,23),
new Date(2020,0,23,23),
new Date(2020,0,30,23),
new Date(2020,1,6,23),
new Date(2020,1,13,23),
new Date(2020,1,20,23),
new Date(2020,1,27,23),
new Date(2020,2,5,23),
new Date(2020,2,12,23),
new Date(2020,2,19,23),
new Date(2020,2,26,23),
new Date(2020,3,2,23),
new Date(2020,3,9,23),
new Date(2020,3,17,23),
new Date(2020,3,23,23),
new Date(2020,3,30,23),
new Date(2020,4,7,23),
new Date(2020,4,14,23),
new Date(2020,4,21,23),
new Date(2020,4,29,23),
new Date(2020,5,4,23),
new Date(2020,5,11,23),
new Date(2020,5,18,23),
new Date(2020,5,25,23),
new Date(2020,6,2,23),
new Date(2020,6,9,23),
new Date(2020,6,16,23),
new Date(2020,6,23,23),
new Date(2020,6,30,23),
new Date(2020,7,6,23),
new Date(2020,7,13,23),
new Date(2020,7,20,23),
new Date(2020,7,27,23),
new Date(2020,8,4,23),
new Date(2020,8,10,23),
new Date(2020,8,17,23),
new Date(2020,8,24,23),
];
//
//
//
//Set variables for Grey Bin Calculation
var i = 0;
var greybintext = "";
//Set variables for Green Bin Calculation
var j = 0;
var greenbintext= "";
//Set variables for Clear Sack Calculation
var k = 0;
var clearsacktext ="";
//Set variables for Food Bin Calculation
var l = 0;
var foodbintext ="";
//Set date display options
var dateoptions = {weekday:'long', year:'numeric', month:'long', day:'2-digit'};
//Grey Bin Calculation
while (greybin[i]) {
if (greybin[i]>=x){
greybintext += greybin[i].toLocaleDateString('en-GB', dateoptions);
break;
}
i++;
}
//Green Bin Calculation
while (greenbin[j]) {
if (greenbin[j]>=x){
greenbintext += greenbin[j].toLocaleDateString('en-GB', dateoptions);
break;
}
j++;
}
//Clear Sack Bin Calculation
while (clearsack[k]) {
if (clearsack[k]>=x){
clearsacktext += clearsack[k].toLocaleDateString('en-GB', dateoptions);
break;
}
k++;
}
//Food Bin Calculation
while (foodbin[l]) {
if (foodbin[l]>=x){
foodbintext += foodbin[l].toLocaleDateString('en-GB', dateoptions);
break;
}
l++;
}
//Print Results to ID's
document.getElementById("greybin").innerHTML = greybintext;
document.getElementById("greenbin").innerHTML = greenbintext;
document.getElementById("clearsack").innerHTML = clearsacktext;
document.getElementById("foodbin").innerHTML = foodbintext;
</script>
Maybe a good start, but you’ll have to look into this further yourself . Good luck!