|
1 | 1 | --- |
2 | 2 | title: How to minimize activity spam |
3 | | -description: How to minimize the activity spam on your Apollo mmWave sensors |
| 3 | +description: How to keep Apollo mmWave sensors from flooding the Activity log and the Home Assistant database |
4 | 4 | --- |
5 | 5 | # Minimize activity spam |
6 | 6 |
|
7 | | -Apollo mmWave sensors report frequently by design, which can cause internal radar entities like target direction, target count, and zone occupancy to flood your Home Assistant Activity log. Adding a `logbook.exclude` block to your `configuration.yaml` tells Home Assistant to stop recording those entities. |
| 7 | +Apollo mmWave sensors report frequently by design, which can cause internal radar entities like target direction, target count, and zone occupancy to flood your Home Assistant Activity log. Adding a `logbook.exclude` block to your `configuration.yaml` hides those entities from **Activity**. It does not stop Home Assistant from saving their history. On an MTR-1 or R PRO-1, also [stop recording the LD2450 target positions](#stop-recording-ld2450-target-positions). |
8 | 8 |
|
9 | 9 | !!! info "Home Assistant Activity Documentation" |
10 | 10 |
|
@@ -61,3 +61,63 @@ Apollo mmWave sensors report frequently by design, which can cause internal rada |
61 | 61 | [](https://my.home-assistant.io/redirect/system_dashboard/) |
62 | 62 |
|
63 | 63 | 4\. Open **Activity** in Home Assistant to confirm the noisy entities no longer appear. |
| 64 | + |
| 65 | +## Stop recording LD2450 target positions |
| 66 | + |
| 67 | +The MTR-1 and the R PRO-1 have an LD2450 radar that tracks up to three people. For each one it reports X, Y, angle, distance, speed and direction several times a second, and the Home Assistant recorder saves every change to its database. In our testing, one R PRO-1 saved about 460,000 changes in a single day from Target 1 alone, while it tracked an object that never moved. |
| 68 | + |
| 69 | +The `logbook.exclude` block above only hides entities from Activity. A `recorder.exclude` block stops the saving. The Apollo mmWave zone map, the drawn zone presence sensors and the Apollo mmWave dashboard read the live values, so they keep working. From then on, the history graphs of these sensors get no new readings. Readings saved before stay until you delete them in step 5 or Home Assistant's regular cleanup removes them. |
| 70 | + |
| 71 | +!!! info "Home Assistant Recorder Documentation" |
| 72 | + |
| 73 | + For more details on excluding entities, see the [Home Assistant Recorder integration docs](https://www.home-assistant.io/integrations/recorder/). |
| 74 | + |
| 75 | +1\. Open your Home Assistant `configuration.yaml` file. |
| 76 | + |
| 77 | +2\. Copy this snippet and paste it into `configuration.yaml`. The same snippet works for the MTR-1 and the R PRO-1. |
| 78 | + |
| 79 | +```yaml |
| 80 | +recorder: |
| 81 | + exclude: |
| 82 | + entity_globs: |
| 83 | + # LD2450 Target 1 to 3: X, Y, angle, distance, speed, direction |
| 84 | + - sensor.*_target_?_* |
| 85 | +``` |
| 86 | +
|
| 87 | +!!! warning "If you already have a `recorder:` section" |
| 88 | + |
| 89 | + Do not add a second `recorder:` key. Merge the `exclude.entity_globs` entry into your existing section. |
| 90 | + |
| 91 | +3\. Check what the pattern matches before you restart. Go to **Developer tools → States** (**Settings → Tools → States** in Home Assistant 2026.8 and newer) and filter for `_target_`. The pattern matches sensors whose ID has `_target_`, then one character, then `_`, such as `sensor.office_r_pro_1_ld2450_target_1_x`. It skips target counts, presence and the LD2410 sensors of the MSR-1 and MSR-2. If it also matches a sensor from another device that you want to keep, list the Apollo sensors by name under `entities:` instead of `entity_globs:`. |
| 92 | + |
| 93 | +[](https://my.home-assistant.io/redirect/tools_states/) |
| 94 | + |
| 95 | +4\. Save `configuration.yaml` and restart Home Assistant (**Settings → System → Restart**). |
| 96 | + |
| 97 | +[](https://my.home-assistant.io/redirect/system_dashboard/) |
| 98 | + |
| 99 | +5\. Optional: Home Assistant keeps the history it already saved until its regular cleanup, after 10 days by default. To delete it now, go to **Developer tools → Actions** (**Settings → Tools → Actions** in Home Assistant 2026.8 and newer), switch to YAML mode and perform this action: |
| 100 | + |
| 101 | +```yaml |
| 102 | +action: recorder.purge_entities |
| 103 | +data: |
| 104 | + entity_globs: |
| 105 | + - sensor.*_target_?_* |
| 106 | + keep_days: 0 |
| 107 | +``` |
| 108 | + |
| 109 | +!!! warning "If you listed the sensors by name in step 3" |
| 110 | + |
| 111 | + The action above deletes the saved history of every sensor the pattern matches, including sensors you chose to keep. Purge the same list you put under `entities:` instead: |
| 112 | + |
| 113 | + ```yaml |
| 114 | + action: recorder.purge_entities |
| 115 | + target: |
| 116 | + entity_id: |
| 117 | + - sensor.office_r_pro_1_ld2450_target_1_x |
| 118 | + - sensor.office_r_pro_1_ld2450_target_1_y |
| 119 | + data: |
| 120 | + keep_days: 0 |
| 121 | + ``` |
| 122 | + |
| 123 | +[](https://my.home-assistant.io/redirect/tools_actions/) |
0 commit comments