For Wakefield (UK) Bin Collections (copied mostly from previous posts)
In node red I used the following flow sending it via mqtt to the mosquitto broker in Home Assistant:-
Replace the URL in the http request with a valid URL:
[{"id":"b3b9112.7186e7","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"48ddbf6c.583e58","type":"inject","z":"b3b9112.7186e7","name":"","topic":"","payload":"","payloadType":"date","repeat":"21600","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":40,"wires":[["4425f225.f6690c"]]},{"id":"c2f5a643.386ba","type":"debug","z":"b3b9112.7186e7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":450,"y":120,"wires":[]},{"id":"4425f225.f6690c","type":"http request","z":"b3b9112.7186e7","name":"","method":"GET","ret":"txt","url":"https://www.wakefield.gov.uk/site/Where-I-Live-Results?uprn=1234567","tls":"","x":170,"y":120,"wires":[["c2f5a643.386ba","671d937b.284aec","5c77a43b.21cc9c"]]},{"id":"671d937b.284aec","type":"html","z":"b3b9112.7186e7","name":"","property":"payload","outproperty":"payload","tag":"table[class=\"mb10 wilWasteContent gardenFutureData\"]","ret":"html","as":"single","x":490,"y":80,"wires":[["13fcb302.8626e5"]]},{"id":"13fcb302.8626e5","type":"debug","z":"b3b9112.7186e7","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":830,"y":80,"wires":[]},{"id":"5c77a43b.21cc9c","type":"html","z":"b3b9112.7186e7","name":"","property":"payload","outproperty":"payload","tag":"div[class=\"mb10 ind-waste-wrapper\"]","ret":"html","as":"single","x":410,"y":240,"wires":[["c9ec1ce5.516198","4f09f215.41d8fc","6ef6538e.bb042c","f3b60799.89885"]]},{"id":"c9ec1ce5.516198","type":"debug","z":"b3b9112.7186e7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":650,"y":420,"wires":[]},{"id":"4f09f215.41d8fc","type":"html","z":"b3b9112.7186e7","name":"","property":"payload[2]","outproperty":"payload","tag":"div","ret":"html","as":"single","x":650,"y":360,"wires":[["b70c77b8.826be","73e044.a322bfbc"]]},{"id":"b70c77b8.826be","type":"debug","z":"b3b9112.7186e7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[6]","x":800,"y":400,"wires":[]},{"id":"6ef6538e.bb042c","type":"html","z":"b3b9112.7186e7","name":"","property":"payload[1]","outproperty":"payload","tag":"div","ret":"html","as":"single","x":650,"y":260,"wires":[["9c45239f.285f18","4cfeb625.c0efc"]]},{"id":"9c45239f.285f18","type":"debug","z":"b3b9112.7186e7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[6]","x":820,"y":260,"wires":[]},{"id":"f3b60799.89885","type":"html","z":"b3b9112.7186e7","name":"","property":"payload[0]","outproperty":"payload","tag":"div","ret":"html","as":"single","x":650,"y":220,"wires":[["a63a00a1.759e1","f95e2b63.b5eb9"]]},{"id":"a63a00a1.759e1","type":"debug","z":"b3b9112.7186e7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[6]","x":820,"y":160,"wires":[]},{"id":"e695a1c5.9861","type":"mqtt out","z":"b3b9112.7186e7","name":"","topic":"home/outside/recycling","qos":"2","retain":"true","broker":"6ef3cbf0.00da34","x":970,"y":300,"wires":[]},{"id":"6ee6ef90.bfeac","type":"mqtt out","z":"b3b9112.7186e7","name":"","topic":"home/outside/garden","qos":"2","retain":"true","broker":"6ef3cbf0.00da34","x":940,"y":360,"wires":[]},{"id":"a27dec0b.c5ee8","type":"mqtt out","z":"b3b9112.7186e7","name":"","topic":"home/outside/waste","qos":"2","retain":"true","broker":"6ef3cbf0.00da34","x":960,"y":200,"wires":[]},{"id":"f95e2b63.b5eb9","type":"function","z":"b3b9112.7186e7","name":"","func":"msg.payload = msg.payload[6];\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":200,"wires":[["a27dec0b.c5ee8"]]},{"id":"4cfeb625.c0efc","type":"function","z":"b3b9112.7186e7","name":"","func":"msg.payload = msg.payload[6];\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":300,"wires":[["e695a1c5.9861"]]},{"id":"73e044.a322bfbc","type":"function","z":"b3b9112.7186e7","name":"","func":"msg.payload = msg.payload[6];\nreturn msg;","outputs":1,"noerr":0,"x":770,"y":360,"wires":[["6ee6ef90.bfeac"]]},{"id":"6ef3cbf0.00da34","type":"mqtt-broker","z":"","name":"Hassio","broker":"192.168.0.100","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Then in home assistant in the sensor.yaml file I added the following:
- platform: mqtt
state_topic: 'home/outside/waste'
name: 'Waste'
- platform: mqtt
state_topic: 'home/outside/garden'
name: 'Garden'
- platform: mqtt
state_topic: 'home/outside/recycling'
name: 'Recycling'