Simple sensor for avfallsor (garbage pickup)
Install using hacs or manual install
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledavfallsor
. - Download all the files from the
custom_components/avfallsor/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
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
- Lat and lon that you entered when you setup home assistant.
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
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "avfallsor"
See the lovelace_example
folder for config example