# Plug: randomly shutting off automation

**URL:** <https://forums.wyze.com/t/plug-randomly-shutting-off-automation/312204>\
**Category:** Power & Lighting\
**Tags:** plug, automations\
**Created:** [October 6, 2024, 2:36pm UTC](https://forums.wyze.com/t/plug-randomly-shutting-off-automation/312204 "2024-10-06T14:36:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Seapup](https://sea2.discourse-cdn.com/wyze/user_avatar/forums.wyze.com/seapup/32/118966_2.png) [@Seapup](https://forums.wyze.com/u/Seapup)\
**Post date:** [October 13, 2024, 1:45pm UTC](https://forums.wyze.com/t/plug-randomly-shutting-off-automation/312204/4 "2024-10-13T13:45:24Z")

</div>

> [@savasalinas](#):
>
> Now it does turn on the plug but it keeps randomly going off and on, no consistency at all, sometimes tuns on for 15 segs, goes off, turns on for a minute, etc.

The “turn on for X time” action is currently broken on the server resulting in unpredictable behavior. Wyze is aware of this issue and working on a fix. In the meantime, if you’re looking for a temporary solution, please read the following:

> [@Cam V3 Automation To Turn ON Garage Lights](https://forums.wyze.com/t/cam-v3-automation-to-turn-on-garage-lights/311746/11):
>
> I just tested your automations and you are correct. There is a bug where the “turn on for X time” value is completely unpredictable and unreliable. Sometimes turn off occurs when motion is no longer detected, sometimes it’s just a random time less than the specified time, and sometimes it actually turns off at the specified time. Rather than debug this issue for Wyze (I don’t have time today), just do what most of us do by default… don’t specify “turn on for X time”. Just use “Turn on” and cre…

> [@Regression - Turn On For x Minutes](https://forums.wyze.com/t/regression-turn-on-for-x-minutes/312598/2):
>
> Wyze must have broken the “turn on for X” action on the server. Until Wyze fixes this, separate turn on and turn off actions. Change your current action from “Turn on for X” to “Turn on”. Create a 2nd Automation Device Trigger to cover turning off. Set trigger to your bulb (or bulb group) with “has been on for X minutes” and action to “Turn off”.

---

_[View the full topic](https://forums.wyze.com/t/plug-randomly-shutting-off-automation/312204)._
