Use Case: Automatically Turn Off a Coffee Machine After One Hour
What this setup does
Prevents the coffee machine from staying on indefinitely by using the built-in Auto Off timer.
Best for
-
Coffee machines
-
Irons
-
Portable heaters
-
Curling irons
Before You Begin
-
Shelly 1PM Gen4 installed
-
Device connected to Wi-Fi
Step 1: Configure Auto Off
Open:
Output → Timer
Enable:
Auto OFF
Set:
3600 seconds
Whenever the relay turns on, a one-hour countdown starts.
Step 2: Verify Power Consumption
Open:
Home
Monitor:
-
Active Power
-
Voltage
This helps confirm normal operation.
Optional: Trigger an External Service
Open:
Output → Actions
Create:
Event
Switch turned OFF
Action
Send an HTTP request to:
-
Home Assistant
-
Node-RED
-
IFTTT
-
Pushover
-
Another Shelly device
Example:
http://192.168.1.50/rpc/Switch.Set?id=0&on=true
This request turns on another Shelly device when the event occurs.
Common Problems
Device switches off too quickly
Open:
Switch → Timer
Verify the Auto OFF value is in seconds.
Wall switch behavior feels incorrect
Open:
Input/Output Settings
Select the proper Input Mode:
-
Toggle switch
-
Momentary switch
-
Edge switch
according to your wiring.