# Determine why a particular device is turning off

**URL:** <https://community.homey.app/t/determine-why-a-particular-device-is-turning-off/3955>\
**Category:** Questions & Help\
**Created:** [November 12, 2018, 6:55am UTC](https://community.homey.app/t/determine-why-a-particular-device-is-turning-off/3955 "2018-11-12T06:55:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bratn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bratn/32/16640_2.png) [@Bratn](https://community.homey.app/u/Bratn)\
**Post date:** [November 12, 2018, 6:55am UTC](https://community.homey.app/t/determine-why-a-particular-device-is-turning-off/3955/1 "2018-11-12T06:55:42Z")

</div>

I’ve been labbing a lot with my new Homey and it’s been working very good most of the time. At one point, however, I encountered an issue with one of my Nexa remote swicthes. For some reason Homey lost its capability to toggle it. I solved it by removing and re-installing it making it wanna play nice again.

But now this switch is acting strange for another reason. 22.30 every evening it turns off but I am unable to detect which flow is the origin of this action. I got 4 flows involving this particular device and none of them is configured to turn the device off at this time of the day.

How do I trace the origin of this action? Is there a log file available? My suspicion is this is caused by some bug in Homey where a previously removed flow hasn’t been fully deleted or similar, but I’d like a way to be sure.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [November 12, 2018, 11:53am UTC](https://community.homey.app/t/determine-why-a-particular-device-is-turning-off/3955/2 "2018-11-12T11:53:11Z")

</div>

Add Logging to all flows with fe [PaperTrails](https://apps.athom.com/app/nu.dijker.papertrails)  
Wait one night and you know the flow 😉
