Simple home-assistant sensor for sysav (garbage pickup times)
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 calledsysav
. - Download all the files from the
custom_components/sysav/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- 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.
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.