<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.comakingspace.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=InlineComments+bot</id>
	<title>CoMakingSpace Wiki - User Contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.comakingspace.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=InlineComments+bot"/>
	<link rel="alternate" type="text/html" href="https://wiki.comakingspace.de/Special:Contributions/InlineComments_bot"/>
	<updated>2026-12-01T04:17:23Z</updated>
	<subtitle>User Contributions</subtitle>
	<generator>MediaWiki 1.43.12</generator>
	<entry>
		<id>https://wiki.comakingspace.de/index.php?title=Project:Trash_Tracker&amp;diff=22264</id>
		<title>Project:Trash Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.comakingspace.de/index.php?title=Project:Trash_Tracker&amp;diff=22264"/>
		<updated>2026-11-14T18:46:25Z</updated>

		<summary type="html">&lt;p&gt;InlineComments bot: Automatically closing a discussion after the text it was linked to was removed by NitramLegov.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ProjectInfoBox&lt;br /&gt;
|project title=Trash Tracker&lt;br /&gt;
|image=Plastic-trash-with-tracker.jpeg&lt;br /&gt;
|status=Done&lt;br /&gt;
|date=23.03.2025&lt;br /&gt;
|initiator=[[Erik]]&lt;br /&gt;
|materials=Generic BLE beacon (we use Tile Trackers), one for each garbage bin; &lt;br /&gt;
one ESP32&lt;br /&gt;
|tools=Computer needed to flash the ESP32&lt;br /&gt;
|software=[[Espresense]], [[HomeAssistant]]&lt;br /&gt;
|cost=67.77€ for 3x Tile Mate (2022)&lt;br /&gt;
}}You probably know about our [[Trash]] situation in the space. In order to keep our space clean, it is necessary to bring the trash out so it can be collected.&lt;br /&gt;
&lt;br /&gt;
However, this key step is often missed, because  during Friday [[Making Hours]], no one thinks about Thursday the next week and even if someone does, it is hard to know which Trash must be brought out.&lt;br /&gt;
&lt;br /&gt;
In order to motivate and remind ourselves, we recently introduced a sign ([[Project:Müllampel]]) which blinks at a specific time. The Trash Tracker helps us make the sign smarter and let it only blink while needed, as well as give us the possibility to communicate on [[Slack]] and in the [[Telegram Group]] that the Trash is still inside.&lt;br /&gt;
&lt;br /&gt;
=== Concept ===&lt;br /&gt;
The concept is that each garbage bin has a specific BLE beacon and therefore MAC address which is frequently broadcasted by each tracker. The broadcasted signal can then be detected by any Bluetooth enabled device. In our case, we simply use an ESP32 with a software called [https://espresense.com/ Espresense]. Espresence simply collects statistics about the broadcasted signals and tries to determine a distance for each signal. The statistics are then pushed to an [[MQTT]] broker and collected in your [[Home Assistant|HomeAssistant]] instance. There, with the help of the [https://www.home-assistant.io/integrations/mqtt_room MQTT room presence] integration, we can automate other things based on the state of each garbage bin (for example, toggle the [[Project:Müllampel]] or send reminders via Slack).&lt;br /&gt;
[[File:ESPresense-Webinterface.png|alt=A screenshot of the web interface of a ESPresense instance running on an ESP32. Three Tile trackers with their distance and RSSI are displayed.|none|thumb|700x700px|ESPresense running on an ESP32 tracking 3 Tile BLE beacons]]&lt;br /&gt;
[[File:trash location.jpg|thumb|the way from our backdoor to the trash can pickup/storage spot]]What makes this project quite straightforward and helps with one of the biggest problems in Bluetooth distance measurement is the fact that our pickup spot is quite far away from the [[Workshop]]. This simplifies distance measurement, because we only need to look if there is a signal at all and not how strong it is. Simply put: If we see the broadcasted signal from one tracker, it is in the Workshop or close by. If we do not detect a signal, the trash is either at the pickup spot or has been stolen.&lt;br /&gt;
&lt;br /&gt;
=== Home Assistant integration ===&lt;br /&gt;
[[File:Trashtracker-homeassistant-sensor-view.png|right|frameless]]&lt;br /&gt;
As already said, with the help of MQTT room presence add-on, we can use Home Assistant to further integrate the tracking into our setup.&lt;br /&gt;
[[File:Trashtracker-homeassistant-list-sensors.png|right|frameless|400x400px]]&lt;br /&gt;
For that we need to integrate the data from MQTT as a sensor. Unfortunately, the MQTT room integration can only be configured via YAML in the &amp;lt;code&amp;gt;configuration.yaml&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
  # tracker for the trash&lt;br /&gt;
  # each garbage bin has one unique tracker&lt;br /&gt;
sensor:&lt;br /&gt;
  - platform: mqtt_room&lt;br /&gt;
    unique_id: sensor.trash_rest&lt;br /&gt;
    device_id: &amp;quot;tile:d24a9fe7fc86&amp;quot;&lt;br /&gt;
    name: &#039;TrashTracker Restmuell&#039;&lt;br /&gt;
    state_topic: &#039;espresense/devices/tile:d24a9fe7fc86&#039;&lt;br /&gt;
    timeout: 10&lt;br /&gt;
    away_timeout: 120&lt;br /&gt;
  - platform: mqtt_room&lt;br /&gt;
    unique_id: sensor.trash_plastik&lt;br /&gt;
    device_id: &amp;quot;tile:d1ebaa8a68da&amp;quot;&lt;br /&gt;
    name: &#039;TrashTracker Plastikmuell&#039;&lt;br /&gt;
    state_topic: &#039;espresense/devices/tile:d1ebaa8a68da&#039;&lt;br /&gt;
    timeout: 10&lt;br /&gt;
    away_timeout: 120&lt;br /&gt;
  - platform: mqtt_room&lt;br /&gt;
    unique_id: sensor.trash_papier&lt;br /&gt;
    device_id: &amp;quot;tile:c7a6a7f007d2&amp;quot;&lt;br /&gt;
    name: &#039;TrashTracker Papiermuell&#039;&lt;br /&gt;
    state_topic: &#039;espresense/devices/tile:c7a6a7f007d2&#039;&lt;br /&gt;
    timeout: 10&lt;br /&gt;
    away_timeout: 120&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;[[File:Trash-tracker-homeassistant-overview.png|alt=Screenshot showing the web interface of Home Assistant displaying three entities for each garbage bin stating either &amp;quot;Home&amp;quot; or &amp;quot;Away&amp;quot;|thumb|Screenshot of the &amp;quot;sensors&amp;quot; for the garbage bins in Home Assistant]]To further ease the use of the sensors in Home Assistant, we can then create a Template for each sensor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Trashtracker-template-binary-sensor.png|frameless|449x449px]][[File:Trashtracker-home-assistant-state-change-view.png|alt=Screenshot showing a state change for the paper trash tracker in Home Assistant|thumb|Screenshot showing a state change for the paper trash tracker in Home Assistant]]With the following expression:&lt;br /&gt;
&lt;br /&gt;
[[File:Trashtracker-template-homeassistant-expression.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
These templates can then be used in automations if their state changes.&lt;br /&gt;
[[Category:Recycling]]&lt;/div&gt;</summary>
		<author><name>InlineComments bot</name></author>
	</entry>
</feed>