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?