# Flow start if something turn on a device

**URL:** https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388
**Category:** Flows
**Created:** [July 22, 2022, 11:09am UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388 "2022-07-22T11:09:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_de_jong/32/34144_2.png) [@Kevin\_de\_Jong](https://community.homey.app/u/Kevin_de_Jong)
#### Post date: [July 22, 2022, 11:09am UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/1 "2022-07-22T11:09:55Z")

</div>

Hi,

I have some issues with a SONOFF device that is turn it self on or of (most time on) directly after is has been turned off by a flow endcard.

Is it possible to create a flow like:

If: afzuiger WC (SONOFF ZIGBEE DEVICE) is turn on by SONOFF zigbee.  
Then turn off.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/67e1e182c0c6f39135f1b15923bf8e4edbbaec7b.jpeg)

---

<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: [July 22, 2022, 12:09pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/2 "2022-07-22T12:09:27Z")

</div>

Yes, look at Device Capability, is has a trigger (when) or beter for you, an Action (Then) card to retrieve the last user who pressed on/off.

> **[Device Capabilities](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/)**
>
> Verbeter de capabilities van apparaten

---

<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: [July 22, 2022, 12:18pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/3 "2022-07-22T12:18:14Z")

</div>

Here an example how to use it:

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

You just need the Card “Retrieve the value of [device] for [capability] for 0 minutes ago”.  
For you that would mean, Retrieve the value of [afzuiger WC] for [onoff] for 0 minutes ago.

The Retrieve card also has a token with the value, which you can check for true or false in this case.

But i guess reading your question again, i think you would just need the Turned on trigger and the Retrieve card.

---

<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: [July 22, 2022, 12:24pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/4 "2022-07-22T12:24:17Z")

</div>

So, actually you would need this:

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

(Check if you need the token Client or User, but it should be Client for Apps)

---

<div class="post-metadata">

### Author: ![Kevin\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_de_jong/32/34144_2.png) [@Kevin\_de\_Jong](https://community.homey.app/u/Kevin_de_Jong)
#### Post date: [July 22, 2022, 2:09pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/5 "2022-07-22T14:09:35Z")

</div>

Hi Arie,

Thanks a lot for your answer! Implementate your flow, we will see!

---

<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: [July 22, 2022, 2:31pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/6 "2022-07-22T14:31:41Z")

</div>

Maybe send a push with user and client, and please let me know if it indeed is client or user 😉

---

<div class="post-metadata">

### Author: ![Kevin\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_de_jong/32/34144_2.png) [@Kevin\_de\_Jong](https://community.homey.app/u/Kevin_de_Jong)
#### Post date: [July 23, 2022, 11:59am UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/7 "2022-07-23T11:59:49Z")

</div>

It is the cliënt. It is working!

---

<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: [July 23, 2022, 3:04pm UTC](https://community.homey.app/t/flow-start-if-something-turn-on-a-device/66388/8 "2022-07-23T15:04:52Z")

</div>

Great and thanks!
