How can I disable logbook from a specific automation?

I have an automation defined as:

alias: RTL433 MQTT message_type Demuxer
description: Split rtl_433/# signals into msg topics, if message_type exists
trigger:
  - platform: mqtt
    topic: rtl_433/+/+
condition:
  - condition: template
    value_template: "{{ trigger.payload_json.message_type != null }}"
action:
  - service: mqtt.publish
    data:
      payload: "{{trigger.payload}}"
      topic: >-
        rtl_433/{{trigger.payload_json.model or "UnknownModel"}}/{{trigger.payload_json.id or "UnknownId"}}/msg{{trigger.payload_json.message_type}}
mode: parallel
max: 50

This gets triggered a lot, and generates a lot of Logbook noise:

Is there a way to disable the logbook entries for this specific automation?

Yes: https://www.home-assistant.io/integrations/logbook/#exclude

logbook:
  exclude:
    entities:
      - automation.rtl433_mqtt_message_type_demuxer
1 Like

It also gets recorded in the database.

I suggest excluding it from recorder. Logger relies on Recorder so by suppressing it in Recorder it will also be eliminated from Logger.

recorder:
  exclude:
    entities:
      - automation.rtl433_mqtt_message_type_demuxer

However, if want to see the automation’s History then don’t exclude it from Recorder but only from Logger like tom_l recommended.


FWIW, in my case, I exclude the entire automation domain in Recorder.

An automation’s last_triggered attribute tells me the last time it executed. If I want to see farther back in time, I can check the automation’s traces (stores last 5 traces by default). Speaking of which, you may also wish to consider reducing the number of stored traces, for that specific automation, from 5 to something less.

3 Likes