The Diet Coke Button
Recreating the alleged “Diet Coke” button on Trump’s Oval Office desk
One of the changes noticed in the Oval Office when Biden took office was the absence of the “Diet Coke” button. Supposedly visitors would think it would start nuclear war, but in reality it would just summon a butler to bring a Diet Coke. Probably the insides were trivial and just contained the guts off a wireless doorbell, but there is something magical about a big red button embedded in an ornate wooden box with the presidential seal and which appeals to the inner child in all of us. I want to make my own. No one will get me a Diet Coke, including (and especially) my spouse, so it will connect to Smartthings/Home Assistant over Z-Wave and make things happen that don’t involve Coke or any other beverages.
I decided to go with a NodeMCU implementation with the ESPHome firmware given that it’s easy to work with and I’m familiar with it. The downside is that the button requires a power cord, limiting placement and authenticity as the original is wireless. The schematic and ESPHome YAML configuration are included in project files.
ESPHome Configuration File
Save this is diet_coke_button.yaml or whatever you prefer
esphome: name: diet_coke_button platform: ESP8266 board: nodemcuv2 wifi: ssid: "Stop stealing my internet" password: "password123" # Enable logging logger: # Enable Home Assistant API api: password: "password456" ota: password: "password456" binary_sensor: - platform: gpio id: sw1 pin: D1 name: Pushbutton filters: - delayed_on: 10ms