# Device turn itself on\_off

**URL:** <https://community.homey.app/t/device-turn-itself-on-off/71974>\
**Category:** Devices\
**Created:** [November 10, 2022, 6:59am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974 "2022-11-10T06:59:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 10, 2022, 6:59am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/1 "2022-11-10T06:59:10Z")

</div>

Hi,

If this has been solved before, please point me in the right direction.

Shelly has once turned the output off (slått av) by itself, when it should have been on.  
The state of it was on and should have been on until my flow set’s it to off.

This could be a problem for me and I need to understand why this happened.

You can see the rest of the time it is acting as it should and does what the flow says.

Why is this happening and is there a way to be informed if a device takes it’s own decisions?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/89d9c6344be4837931260321ffddc57b6c935ec4.png)

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 10, 2022, 3:36pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/2 "2022-11-10T15:36:13Z")

</div>

in the shelly phone app app what device do you have set up? What kind of switch? momentary or something else

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 10, 2022, 5:49pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/3 "2022-11-10T17:49:35Z")

</div>

The device is Shelly 1.

Button type: toggle switch

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 10, 2022, 7:19pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/4 "2022-11-10T19:19:28Z")

</div>

What is it controlling/attached to?  
I have 3 shelly 1 attached to roller door motors, they are set to turn off after 0.5 seconds, Button type Detached switch. Power on Default is set to Off. There is a lot in Shelly to be got right and it sounds like you may not have yours set to the appropriate button type

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 10, 2022, 7:23pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/5 "2022-11-10T19:23:11Z")

</div>

To “solve” it, you can counter it’s action by using the Device Capabilities App → Recieve Insights from 0 minutes ago.  
It will show you the user/client/app that switches it on/off.  
If that is the app itself, switch it back.

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 11, 2022, 5:21am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/6 "2022-11-11T05:21:29Z")

</div>

It is attached to a control circuit for a charger. The flow has a time limit so the output is only active during those hours. What button type do you think I should use?

Power on default is set to: Switch.

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 11, 2022, 6:20am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/7 "2022-11-11T06:20:07Z")

</div>

I have this, but never used it.

Are you attaching this to a flow to get that information?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3f1afc92132d9d83018b6e4a2f580ccac0cdba83.png)

Or do you use this one?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/8207eb0ef945beeceb73295e46e6d1074645a197.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/259141377c6459851e384af08c28cb025196a8a1.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e0757aa6fb73b7f8f938a85e654260d4a86f278.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 11, 2022, 6:52am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/8 "2022-11-11T06:52:53Z")

</div>

> [@Tirrazo](#):
>
> Are you attaching this to a flow to get that information?

Im not sure i understand wat you mean by that.  
But here is an example:  
You can read this flow through the Templates in the DC App Settings → Templates.  
(Press refresh to show, i just created the Template).

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/38):
>
> Counter auto On/Off from Shelly Here is a flow that counters the automatic switching On/Off by Shelly (or other devices). Apps used: [Device Capabilities](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities)Other things people need to do to get it working correct? After the flow is created, also select the correct device in the Recieve Insights cards (2x). TEF: [tef:FLOWS:"H4sIAAAAAAACA9WVy27bMBBFf8UgsjRTvsSHtuk+iy6DwODTESqLjiwXNQz/e0eS7UQBgghpuujKFGY8PHPnjnREAZVHRJm1VDOJeZEEFgpOliiFmZcuRG6lUaTPa1CJfjzFuj4s7ptv9ykt7vK+6WK…

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 11, 2022, 6:54am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/9 "2022-11-11T06:54:46Z")

</div>

> [@Tirrazo](#):
>
> image1370×262 30 KB

Well, you can use the Watch trigger (with the tokens already there from the insights) or use the insights.  
I personally would use the normal device trigger card and then recieve the insights.

Not sure why i still prefer that, the watch works correct. But i like as least in the way as possible i guess.

But take a look at the example.

I think you need the token Client, but not sure with Shelly, it could be User sometimes.

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 11, 2022, 7:05am UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/10 "2022-11-11T07:05:26Z")

</div>

Thank you, will study this! 🙂

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 11, 2022, 9:48pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/11 "2022-11-11T21:48:39Z")

</div>

I have my Shelly 1 set as follows to activate roller door motors, the Shellys are wired in parallel

 ![Screenshot_20221111-212532](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/3/f3f68240f94053bcbacaeb485f48792bd5c0cfb4.jpeg)  
 ![Screenshot_20221111-212526](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b68cc03658f9dedac1dc16f1e837787bfb9bf03.jpeg)  
 ![Screenshot_20221111-212457.jpeg](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/578bf8f64a809792d7eb8278d6bf727cc206f53d.png)

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [November 12, 2022, 12:38pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/12 "2022-11-12T12:38:58Z")

</div>

Thank you,

I will see if this works better for me 🙂

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 12, 2022, 5:02pm UTC](https://community.homey.app/t/device-turn-itself-on-off/71974/13 "2022-11-12T17:02:53Z")

</div>

Might also be worth hour while going to Shelly facebook support pages, although I really don’t like that they use facebook as a support forum and ask there. They were able to help me figure out why my garage door was opening randomly
