A Bedside Button Can Shut Off The Iron Overnight
One planned press would cut power to overnight risks, and a 7 a.m. timer would bring back daytime devices.

Foxy's Lab · Your smart home doesn't need more automations. It needs buttonsHe tinkers with smart home gear and says he may have left his iron on overnight on more than one occasion. His plan is a wireless button by the bed that starts a shutdown routine before sleep.
The design has two halves. A press would turn off the devices that should stay off overnight, and a separate time trigger around 7 a.m. would turn the daytime devices back on again.
Start with two short lists. Put the iron and its utility socket on the overnight-off list, and put the things that need to run again in the morning on the restore list.
For the hardware, he uses Home Assistant, a home control hub, with Zigbee, a low power wireless radio protocol for smart devices. Pairing means adding a Zigbee device in Home Assistant, then putting the button in pairing mode by pressing and holding the top until its light flashes.
Next, build the shutdown routine in Node-RED, a visual tool for wiring device actions together. Set the bedside press as the trigger, then add an action that turns off each overnight-off device.
At first the button press events did not show up where expected alongside battery and temperature. He listed all events, copied the event data into a filter for the button, and set a press to toggle the utility socket.
The morning half is meant to run by time, not by another press. The intent is that one sleepy press would not leave the house off all day, because the 7 a.m. automation brings back what should be on.
The first step in his method is to connect the iron through its utility switch to a plug, then wire that plug to the shutdown automation. That plug becomes the first device the planned nighttime button turns off.
Questions people ask
What kind of button should I buy?
A small Zigbee button works well because it is cheap, battery powered, and can sit on a nightstand without wiring. Look for one supported by your smart-home system, and check that single presses register reliably before you mount it.
Do I need Home Assistant and Node-RED for this?
You need some hub that can hear the button and control the plugs, such as Home Assistant with Zigbee. A visual automation tool like Node-RED makes the shutdown and morning routines easier to manage, but any routine builder with button and time triggers can work.
What if I forget to press the button?
The morning timer restores devices regardless, because it runs by time rather than by another press. For safety-critical items, keep their own auto-off timers as backup.

