About
This blueprint automatically monitors a smart power plug (with energy metering) and turns it off when:
- Power usage drops below a set threshold (example: device is finished charging)
- OR a maximum runtime is exceeded
- OR both (whichever happens first)
Designed for devices like chargers, coffee machines, fans, etc.
Prevents unnecessary energy usage and improves safety!
** Version: 1.2 **
Features
Grace period before monitoring starts (configurable)
Grace period before shutdown (same value as above)
Smart handling if the device is already idle when turned on
Notification support (choose any
notify.
service dynamically)Fully dynamic — you can enable/disable watt-check or time-check individually
No coding needed, fully blueprint-driven
Supports “Add to Home Assistant” button
Requirements
- A smart plug that supports power monitoring (wattage sensor).
- You can use different watt sensor than the switch
- Plug must be controlled via
switch
entity.
How to Use
-
Import using this button:
-
Fill in:
- The plug switch
- The power sensor entity
- Watt threshold and/or max runtime
- (Optional) Notification service and message
- Enjoy automatic shutdowns!
Extra notes
- If the device is already consuming too little power immediately after turning on, it will shut down after grace period.
- Supports fully optional notification when shutdown happens.
- You need one method (watt or time) needs to be active, but not both disabled.
Feedback
I’d love your feedback, ideas, and pull requests!
Feel free to fork, improve or suggest new features