Smart Plugs¶
Control your printers with Tasmota-based smart plugs for power monitoring, automation, and energy tracking.

Overview¶
Smart plug integration enables:
- Power control - Turn printers on/off remotely
- Energy monitoring - Track power consumption
- Auto power-on - Start printer before scheduled prints
- Auto power-off - Shut down after cooldown
- Automation - Hands-free print scheduling
Requirements¶
Supported Plugs¶
Bambuddy supports Tasmota-flashed smart plugs:
| Feature | Required? |
|---|---|
| Tasmota firmware | Yes |
| Power monitoring | Recommended |
| HTTP API access | Yes |
Popular Options¶
- Sonoff S31 - Compact, power monitoring
- Gosund SP111 - Affordable, power monitoring
- Athom Plugs - Pre-flashed with Tasmota
- Shelly Plug S - High quality, Tasmota compatible
Pre-flashed Plugs
Buy plugs pre-flashed with Tasmota to avoid the flashing process. Athom and some others sell them ready to use.
Adding a Smart Plug¶
Automatic Discovery¶
The easiest way to add plugs is with automatic discovery:
- Go to Settings > Smart Plugs
- Click Add Smart Plug
- Click Discover Tasmota Devices
- Wait for the network scan to complete
- Click on a discovered device to select it
- Fill in remaining details and Save
Network Auto-Detection
Bambuddy automatically detects your local network and scans all 254 addresses. Works with password-protected devices too!
Manual Entry¶
If discovery doesn't find your plug:
- Go to Settings > Smart Plugs
- Click Add Smart Plug
- Enter configuration:
| Field | Description |
|---|---|
| Name | Friendly name |
| IP Address | Plug's network IP |
| Printer | Associated printer |
- Click Save
- Click Test to verify connection
Switchbar Quick Access¶
Add frequently-used plugs to the sidebar for quick access:

- In Settings > Smart Plugs, expand a plug's settings
- Enable Show in Switchbar
- A plug icon appears in the sidebar footer
- Hover to see status and control all switchbar plugs
The switchbar shows:
- Current power state (ON/OFF)
- Power consumption (if available)
- Quick on/off toggle buttons
Multiple Plugs
Add multiple plugs to the switchbar for one-click access to your entire printer farm.
Finding Plug IP Address¶
From Tasmota Interface¶
- Access your plug's web interface
- Go to Information
- Note the IP Address
From Router¶
- Log into your router
- Find connected devices
- Locate the plug by name or MAC
Static IP (Recommended)¶
Assign a static IP to prevent changes:
- Go to plug web interface
- Configuration > Configure WiFi
- Enter static IP settings
Create a DHCP reservation for the plug's MAC address.
Power Control¶
Manual Control¶
Toggle power from Bambuddy:
- Go to printer card
- Click the power icon
- Select On or Off
Or from Settings > Smart Plugs:
- Click the power toggle for any plug
Power Status¶
| Icon | Status |
|---|---|
| On | |
| Off | |
| Unreachable |
Automation¶
Auto Power On¶
Automatically turn on printer before prints:
- Enable Auto Power On for the plug
- When a queued print is ready:
- Bambuddy turns on the plug
- Waits for printer to boot
- Starts the print
Auto Power Off¶
Automatically turn off after prints:
- Enable Auto Power Off for the plug
- Set Cooldown Temperature (e.g., 40°C)
- Set Cooldown Time (e.g., 5 minutes)
- After print completes:
- Wait for bed to cool below threshold
- Wait additional cooldown time
- Turn off the plug
Safety Checks¶
Auto power-off includes safety checks:
- Only triggers after successful prints
- Waits for cooldown
- Checks for queued prints
- Verifies printer is idle
Energy Monitoring¶
Track power consumption:
Real-time Data¶
| Metric | Description |
|---|---|
| Power (W) | Current draw |
| Voltage (V) | Line voltage |
| Current (A) | Amperage |
| Energy (kWh) | Cumulative |
Per-Print Tracking¶
Enable energy tracking to record:
- Energy per print
- Electricity costs
- Efficiency comparisons
Power Dashboard¶
View power statistics:
- Current power draw
- Energy over time
- Cost calculations
- Peak usage
Tasmota Commands¶
Bambuddy uses these Tasmota HTTP commands:
| Action | Command |
|---|---|
| Turn On | http://{ip}/cm?cmnd=Power%20On |
| Turn Off | http://{ip}/cm?cmnd=Power%20Off |
| Status | http://{ip}/cm?cmnd=Status%200 |
| Energy | http://{ip}/cm?cmnd=Status%208 |
Testing Manually¶
# Turn on
curl "http://192.168.1.100/cm?cmnd=Power%20On"
# Get status
curl "http://192.168.1.100/cm?cmnd=Status%200"
Safety Considerations¶
Don't Cut Power Mid-Print¶
Auto power-off is safe because:
- Only triggers after print completion
- Waits for cooldown
- Checks printer state
Never manually power off during printing!
Surge Protection¶
Consider adding surge protection:
- Protects printer electronics
- Protects smart plug
- Especially important for unstable power
Fire Safety¶
Smart plugs have current limits:
- Most handle 10-15A
- 3D printers typically draw 3-8A
- Check your plug's rating
Troubleshooting¶
Plug Not Responding¶
- Check plug is powered
- Verify IP address is correct
- Ensure plug is on same network
- Check if Tasmota web interface loads
- Verify no firewall blocking
Auto Power-Off Not Working¶
- Check feature is enabled
- Verify cooldown settings
- Ensure print completed successfully
- Check for queued prints (won't power off if more queued)
Power Data Incorrect¶
- Not all plugs have power monitoring
- Calibrate in Tasmota: Configuration > Configure Other
- Check plug specifications
Tips¶
Start Simple
Start with manual power control before enabling automation.
Test Cooldown
Monitor a few prints to find the right cooldown temperature for your printer.
Label Plugs
If you have multiple plugs, label them physically to match Bambuddy names.
Dedicated Circuit
If possible, put printers on a dedicated circuit to avoid tripping breakers.
Energy Baseline
Track energy for a week to establish your typical consumption baseline.