How to stop publishing component updates temporarily?

I’ve got a cheap Tuya IR blaster that I flashed with ESPHome, and after fighting with it a little I’ve got it working just fine now. The blaster has a little blue LED on it that I’ve got set up with the status_led component, which means you can likewise control it within Home Assistant programmatically. I want to set it up so that when it’s transmitting an IR code, the light will blink briefly beforehand, stay on or blink rapidly for the duration of the transmission (I suspect staying on is probably more practical), then afterwards it blinks once more and returns to its previous state.

I can do the “staying on” variant just fine using global variables, but there’s a problem: every time the LED turns on or off, it publishes a state update to Home Assistant, which leads to the activity log getting spammed a bunch. Is there a way to temporarily suppress the state updates during that period, then after it’s returned to its previous state it resumes publishing them like normal?

So you look at your logs while the system is working normally?

Good luck with that.

I don’t know of a way to do it temporarily, but if you really don’t care about the LED light state stuff, you could exclude it from the logs and recorder by adding something like the below to configuration.yaml.

logbook:
  exclude:
    entities:
      - light.led_status
      
recorder:
  exclude:
    entities:
      - light.led_status

Typically no. I see this more as an optimization if anything; right now it’s in a “good enough” state, but I want to see if I can get it to an “even better” state.

I suppose that’s an option… something to keep in mind.

Alternative to Netflix, no monthly fees… :wink:

I love looking at my logs. My wife thinks I am nuts. Is there somewhere I can get help?