How do I silent an specific sensor debug log in ESPHome?

I am using The C1101 custom component to detect transmissions from an RF Doorbell and other devices, and while trying to capture the raw codes I get spammed with a lot of logs like this ones:

[21:01:01][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:01][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:01][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -92.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -91.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -93.00000  with 0 decimals of accuracy
[21:01:02][D][sensor:094]: 'transciver': Sending state -91.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -92.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -91.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:03][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:04][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:05][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:05][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:05][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[21:01:05][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[21:01:06][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy

I need the log level to be DEBUG, is there a way to disable those logs without affecting other ones?

I also would like to get the WiFi Information when I connect to the remote logs.

My YAML file looks like this:

 esphome:
  name: tester-board
  friendly_name: tester-board
  includes:
    - cc1101.h
  libraries:
    - SPI
    - "SmartRC-CC1101-Driver-Lib"

esp32:
  board: esp32dev
  framework:
    type: arduino


# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "my-key"

ota:
  password: "my-pass"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Tester-Board Fallback Hotspot"
    password: "some-pass"

captive_portal:
  
sensor:
  - platform: custom
    lambda: |-
      // https://github.com/dbuezas/esphome-cc1101/blob/8aec9d77fc511ea1f3f2a715251b0109555591dd/cc1101.yaml
      auto my_sensor = new CC1101(
        18, // SCK -> Green
        19, // MISO -> Yellow
        23, // MOSI -> Blue
        5, // CSN (CKN) -> Orange
        14, // GDO0 -> White 
        200, // bandwidth_in_khz
        433.92 // freq_in_mhz
      );
      App.register_component(my_sensor);
      return {my_sensor};
    sensors:
      id: transciver
      internal: true
remote_transmitter:
  - pin: GPIO14 # This is GDO0
    carrier_duty_percent: 100%

remote_receiver:
  - pin: GPIO14 # This is GDO0
    dump:
      - raw
binary_sensor:
  - platform: remote_receiver
    name: Timbre
    raw:
      code: [415,-300,370,-300,375,-300,378,-300,378,-300,379,-300,405] // TODO

The mixed logs look like this

[16:28:51][C][captive_portal:088]: Captive Portal:
[16:28:51][C][mdns:112]: mDNS:
[16:28:51][C][mdns:113]:   Hostname: tester-board
[16:28:51][C][ota:093]: Over-The-Air Updates:
[16:28:51][C][ota:094]:   Address: tester-board.local:3232
[16:28:51][C][ota:097]:   Using Password.
[16:28:51][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:51][C][api:138]: API Server:
[16:28:51][C][api:139]:   Address: tester-board.local:6053
[16:28:51][C][api:141]:   Using noise encryption: YES
[16:28:51][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:51][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:51][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:51][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:51][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -87.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -86.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -85.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -87.00000  with 0 decimals of accuracy
[16:28:52][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:52][D][remote.raw:028]: Received Raw: 695, -958, 669, -976, 679, -974, 683, -1027, 322, -394, 98, -617, 327, -401, 75, -610, 326, -427, 297, -399, 280, -402, 298, -381, 328, -400, 100, -616, 103, -631, 99, -617, 74, -616, 75, -647, 348, -347, 329, -380, 101, -634, 330, -381, 
[16:28:52][D][remote.raw:028]:   76, -633, 129, -634, 273, -396, 77, -660, 75, -623, 76, -636, 75, -618, 123, -617, 77, -602, 296, -400, 101, -627, 75, -606, 280, -398, 73, -641, 76, -623, 320, -395, 103, -635, 322, -398, 77, -610, 322, -397, 102, -613, 75, -698, 674, -999, 681, 
[16:28:52][D][remote.raw:028]:   -1004, 673, -956, 697, -1020, 305, -406, 75, -619, 307, -407, 75, -579, 304, -426, 295, -374, 304, -373, 321, -382, 302, -425, 101, -613, 76, -628, 126, -614, 77, -606, 101, -635, 305, -403, 296, -398, 78, -632, 322, -397, 77, -659, 101, -623, 273, 
[16:28:53][D][remote.raw:028]:   -404, 100, -625, 101, -631, 77, -605, 101, -639, 102, -607, 76, -640, 331, -406, 75, -591, 104, -632, 322, -398, 77, -612, 76, -642, 332, -383, 76, -676, 298, -396, 76, -632, 272, -377, 74, -650, 101, -703, 645, -985, 673, -986, 651, -1000, 707, -1056, 
[16:28:53][D][remote.raw:028]:   274, -424, 76, -612, 299, -371, 76, -633, 272, -401, 302, -401, 322, -399, 305, -406, 307, -408, 52, -605, 102, -611, 75, -622, 77, -636, 100, -625, 274, -381, 324, -372, 102, -636, 299, -399, 76, -662, 101, -627, 271, -402, 76, -654, 100, -630, 77, 
[16:28:53][D][remote.raw:028]:   -607, 75, -640, 103, -610, 76, -639, 332, -406, 76, -629, 77, -607, 322, -422, 76, -612, 100, -631, 281, -432, 75, -647, 298, -425, 77, -603, 319, -396, 103, -610, 101, -689, 699, -987, 650, -970, 680, -975, 705, -1034, 276, -399, 77, -633, 347, -401, 
[16:28:53][D][remote.raw:028]:   76, -686, 306, -407, 296, -398, 328, -406, 300, -400, 302, -406, 101, -627, 76, -639, 101, -631, 75, -615, 77, -631, 321, -396, 305, -405, 75, -639, 321, -401, 76, -652, 75, -641, 305, -381, 100, -615, 103, -620, 75, -623, 101, -619, 102, -631, 75, 
[16:28:53][D][remote.raw:028]:   -641, 305, -407, 76, -618, 78, -636, 322, -398, 99, -617, 75, -624, 346, -372, 77, -657, 322, -422, 74, -614, 303, -428, 76, -608, 76, -676, 672, -971, 707, -1003, 698, -970, 651, -1049, 305, -384, 100, -595, 305, -432, 100, -623, 281, -410, 302, -425, 
[16:28:53][D][remote.raw:041]:   275, -404, 274, -396, 321, -395, 75, -643, 99, -616, 77, -630
[16:28:54][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:54][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:55][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:55][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -96.00000  with 0 decimals of accuracy
[16:28:56][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:57][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:57][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
[16:28:57][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:58][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:58][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:58][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:58][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:59][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:59][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:28:59][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:28:59][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:29:00][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:29:00][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:29:00][D][sensor:094]: 'transciver': Sending state -99.00000  with 0 decimals of accuracy
[16:29:01][D][sensor:094]: 'transciver': Sending state -98.00000  with 0 decimals of accuracy
[16:29:01][D][sensor:094]: 'transciver': Sending state -97.00000  with 0 decimals of accuracy
1 Like

The example there is per components. I do not want to remove all “sensors” but filter the “sensors logs” that belong to transciver

How about if you put a large throttle filter (or similar ) on the sensor while capturing?

I can’t recall if that will filter the value from the logs though…