⚡ Smart Powerplug Auto-Shutdown Based on Watt Usage and Time

:sparkles: 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!

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

GitHub Link Click Here

** Version: 1.2 **

:gear: Features

  • :white_check_mark: Grace period before monitoring starts (configurable)
  • :white_check_mark: Grace period before shutdown (same value as above)
  • :white_check_mark: Smart handling if the device is already idle when turned on
  • :white_check_mark: Notification support (choose any notify. service dynamically)
  • :white_check_mark: Fully dynamic — you can enable/disable watt-check or time-check individually
  • :white_check_mark: No coding needed, fully blueprint-driven
  • :white_check_mark: Supports “Add to Home Assistant” button

:wrench: 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.

:rocket: How to Use

  1. Import using this button:

  2. Fill in:

  • The plug switch
  • The power sensor entity
  • Watt threshold and/or max runtime
  • (Optional) Notification service and message
  1. Enjoy automatic shutdowns!

:fire: 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.

:speech_balloon: Feedback

I’d love your feedback, ideas, and pull requests!
Feel free to fork, improve or suggest new features :rocket:

1 Like