TL;DR
When a viewer redeems the fog reward, a real fog machine in my room fires. MBC sends the request to an ESP32 that closes a relay across the machine's remote button, shows the redemption on air and runs a fog lighting scene. A separate smart outlet powers the machine on when MBC starts and off when it shuts down.
The Short Interview
- QWhat happens when someone redeems fog?
- A
MBC receives the redemption and handles each output separately: CG-87 shows the reward on air, the lights switch to the fog scene, and an HTTP request goes to the ESP32, which fires the machine. Twitch's built-in reward cooldown limits how often it can be redeemed, so no custom queue was needed.
- QWhy are there two pieces of hardware?
- A
Powering the machine and firing it are different jobs. A Govee smart outlet handles power: it turns on as part of MBC's one-touch startup and off during shutdown. The ESP32 handles the actual trigger. Keeping them separate means each has its own state and its own way of failing.
- QWas it straightforward?
- A
Not even close. It cost me an ESP32 and a fog machine before a multimeter told me what I was actually dealing with.
Problems & Solutions
- 01
It was never a low-voltage button
ProblemMy first attempts switched the fog machine's wired remote button with transistors. They kept failing, and one short circuit destroyed an ESP32 and the fog machine itself.
FixWhen I finally measured the button terminals with a multimeter, they were carrying 120 V AC mains, not a low-voltage signal as I'd assumed. That explained every failure. I switched to a relay, which keeps the microcontroller electrically isolated from the mains circuit.
LessonMeasure before you assume. An appliance's wired remote may be connected straight to mains, and when you're unsure, isolate with a relay instead of a transistor.
- 02
A dead end with new parts
ProblemI also tried driving the machine over RF with a transmitter.
FixThe transmitter turned out to be faulty even though it was brand new, so I dropped that route and went with the wired relay.
- 03
The outlet that wouldn't answer
ProblemThe smart outlet integration first addressed the device by a local IP or MAC address, which the Govee API doesn't accept as an identifier.
FixI switched to the device ID the Govee API reports. After that, power-on at startup and power-off at shutdown both worked.
- 04
Power-off lost on exit
ProblemA fire-and-forget power-off request could be lost if Node exited before the request was sent.
FixMBC v3.85.1 waits for the outlet to confirm OFF before finishing cleanup, guards against duplicate shutdown requests and puts a time limit on the OBS disconnect.
LessonCleaning up physical hardware has to be awaited. Exiting quickly isn't the same as exiting cleanly.
Architecture
Three separate concerns, each with its own owner: firing the machine, powering it, and showing the moment on air.
Inputs
Channel point redemption
Rate-limited by Twitch cooldown
MBC startup / shutdown
One-touch lifecycle
MBC Runtime
Fog adapter
HTTP POST, 5-second timeout
Power adapter
Outlet on and off, awaited
Presentation
CG-87 card, MBC_FOG scene
Room
ESP32 + relay
Closes the remote button circuit
Smart outlet
Machine power
Broadcast & lights
On air and in the room
Success Means Different Things
A physical effect has to be judged in layers. Each layer can succeed while the next one fails.
- Power
- The outlet accepting ON doesn't mean the machine has warmed up and is ready.
- Trigger
- The ESP32 accepting the request doesn't prove fog came out.
- Timeout
- A timed-out request has an unknown outcome, so it's never blindly resent. Repeating a physical action is worse than skipping one.
- Presentation
- A reward card on screen doesn't mean the hardware fired.
Build Log
Aug 2026
DoneFog joins the MBC reward ecosystem, and reward redemptions get normalized events and CG-87 presentation.
Oct 8
DoneHTTP trigger integration in place. The outlet identity is fixed, and startup ON and shutdown OFF are confirmed. v3.85.1 hardens shutdown.
Oct 17
DoneEvent families get named Govee lighting scenes, including MBC_FOG.
Oct 29–30
DoneFog power becomes part of MBC 4.0's one-touch master controller. Field tests confirm clean shutdown with the outlet powered OFF.
Nov 2026
DonePhysical fog output confirmed working in production use on MBC 4.0.0.
Where It Stands
Confirmed
- Physical fog output on MBC 4.0.0
- Outlet ON at startup, OFF at shutdown
- Clean 4.0.0 shutdown
Still to document
- A logged end-to-end run of a real redemption
- Fog-specific duplicate-redemption handling
Honest limits
- If the process is force-killed or the network drops, power-off isn't guaranteed.
- The smart outlet isn't an emergency stop. The machine's own controls stay in reach.