Skip to content

custom-components/sensor.avfallsor

Repository files navigation

sensor.avfallsor

Simple sensor for avfallsor (garbage pickup)

GitHub Release GitHub Activity License hacs Discord Community Forum

Installation

Install using hacs or manual install

Manual install

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called avfallsor.
  4. Download all the files from the custom_components/avfallsor/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant

Configuration options

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:

  1. street_id
  2. address
  3. Lat and lon that you entered when you setup home assistant.

Yaml

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

Integrations

  • In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "avfallsor"

See the lovelace_example folder for config example