/sysav.sensor

Custom component for Home-assistant that fetches garbage collection dates from Sysav

Primary LanguagePython

sensor.sysav

Simple home-assistant sensor for sysav (garbage pickup times)

License

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 sysav.
  4. Download all the files from the custom_components/sysav/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant

You can try and see what data needs to be entered on https://www.sysav.se/Privat/min-sophamtning/

If you get some results you are satsified with this is the data you need to enter on streetname and streetnumber.

Then add resources after what Kärltyp you want to add a sensor for.

If you are using havs then go to HACS settings and add as a Custom repository.

Yaml

Full example.

  sensor:
    - platform: sysav
      streetname: Trädgårdsvägen       (required)
      streetnumber: 2                  (required)
      city: Bjärred                    (required)
      resources:
       - "Kärl 1"
       - "Kärl 2"
       - "Trädgårdsavfall"

Version:

v1.2.0:

  • Added support for Sysavs new endpoint and added city to the request as a required part in the configuration

v1.2.1:

  • Added support for more types of resources Kävlinge kommun uses Matavfall and Restavfall instead of Kärl 1 and Kärl 2

v1.3:

  • Update the url for the Sysav API

v1.4:

  • One again updated the url, sysav seems to like the automatically generated url from their cloud services provider. Pro tip, please use a domain.