This component will set up the following sensors
- schwarze Restmülltonne
- blaue Papiertonne
- gelbe Wertstofftonne/-sack
- grüne Biotonne
- Weihnachtsbäume
- Laubsäcke
The state of these sensors will be the next collection date.
- 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 calledstadtreinigung_hamburg
. - Download all the files from the
custom_components/stadtreinigung_hamburg/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Stadtreinigung Hamburg"
Below are some use cases for this sensor
The binary_sensor
will be on if the collection is tomorrow:
binary_sensor:
- platform: template
sensors:
srh_morgen_sesamstrasse_blau:
friendly_name: "blaue Papiertonne (morgen)"
value_template: >-
{% set collection = as_timestamp(states.sensor.stadtreinigung_hamburg_sesamstrasse_blaue_papiertonne.state)|timestamp_custom("%Y-%m-%d") %}
{% set tomorrow = (as_timestamp(now()) + 86400)|timestamp_custom("%Y-%m-%d") %}
{{ collection == tomorrow }}
Do you have some other examples? Make a PR and add it here.
If you want to contribute to this, please read the Contribution guidelines