Simple sensor for avfallsor (garbage pickup)
Install using hacs or manual install
configuration.yaml
).custom_components
directory (folder) there, you need to create it.custom_components
directory (folder) create a new folder called avfallsor
.custom_components/avfallsor/
directory (folder) in this repository.Key | Type | Required | Default | Description |
---|---|---|---|---|
address |
string |
False |
"" |
Address for garbage pickup |
street_id |
string |
False |
"" |
Go to https://avfallsor.no/henting-av-avfall/finn-hentedag/ enter the address and the hour number, select your adresse in the dropdown. After that you will be redirected to a url that look like: https://avfallsor.no/henting-av-avfall/finn-hentedag/c7b62b91-1f99-41a7-927d-5c3dc91805ca/ grab the hash at the end. |
The sensor tries to find the your address (to find the pickup dates for your address) in this order:
street_id
address
So minimal yaml example could be.
sensor:
- platform: avfallsor
Full example.
sensor:
- platform: avfallsor
address: "Kongeveien 1, Kristiansand"
street_id: c7b62b91-1f99-41a7-927d-5c3dc91805ca
See the lovelace_example
folder for config example