# Problems with my harmoney hub

**URL:** <https://community.homey.app/t/problems-with-my-harmoney-hub/24551>\
**Category:** Flows\
**Created:** [January 16, 2020, 6:46pm UTC](https://community.homey.app/t/problems-with-my-harmoney-hub/24551 "2020-01-16T18:46:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [January 16, 2020, 6:46pm UTC](https://community.homey.app/t/problems-with-my-harmoney-hub/24551/1 "2020-01-16T18:46:30Z")

</div>

I’m using the Harmony Hub plugin to control my lights when I start an activity. This works like a charm. However, when I stop the activity nothing happens. Could someone please help me out with what might be wrong?  
My activities:

 ![2020-01-16 19.42.40](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/9141b7ad2f050f92cf7b64e42d11b5a858b079a4.jpeg)

My trigger:

 ![2020-01-16 19.42.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/451ab9f7fff6be8e03000f29a86ed00b25b5848c.jpeg)

My condition:

 ![2020-01-16 19.42.33](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/dbe8b6ed95ac2909de859d8f01f4e48a1197e319.jpeg)

The same setup (only “activity starting”) works fine…

---

<div class="post-metadata">

**Author:** ![Joost\_Schevers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joost_schevers/32/16498_2.png) [@Joost\_Schevers](https://community.homey.app/u/Joost_Schevers)\
**Post date:** [January 17, 2020, 10:11am UTC](https://community.homey.app/t/problems-with-my-harmoney-hub/24551/2 "2020-01-17T10:11:26Z")

</div>

In my case, I’m storing Harmony state in logic variables.  
So when an activity is started I update the logic variable.  
When an activity is stopped I set that logic variable to “None”.

I notice that when I poweroff my system, the logic variable indicates “PowerOff” as activity.  
So it might be that what’s happening is not that Harmony triggers “Activity stopped” for your current activity but instead Harmony triggers “Activity started” for activity “PowerOff”.

Hope this helps.  
Anyway: I suggest adding a flow for “Activity started” which just adds a notification with the value of the activity tag and another one flow “Activity stopped” with the same thing.

This way, you can check your notification timeline to see what’s happening.  
Good luck!

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [January 17, 2020, 10:58am UTC](https://community.homey.app/t/problems-with-my-harmoney-hub/24551/3 "2020-01-17T10:58:09Z")

</div>

Thanks.

Turns out there is one “activity starting” and one “activity stopping” in my system. One of these is the stopping of my “Watch PC”. I have no idea how come it didn’t work yesterday, because now my flow works fine. But it’s really interesting to see the “PowerOff” activity starting too 🙂
