# Possibility to get source of triggered event on Button (like in the timeline)?

**URL:** <https://community.homey.app/t/possibility-to-get-source-of-triggered-event-on-button-like-in-the-timeline/91263>\
**Category:** Questions & Help\
**Created:** [October 8, 2023, 8:54am UTC](https://community.homey.app/t/possibility-to-get-source-of-triggered-event-on-button-like-in-the-timeline/91263 "2023-10-08T08:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mareike\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mareike_b/32/80103_2.png) [@Mareike\_B](https://community.homey.app/u/Mareike_B)\
**Post date:** [October 8, 2023, 8:54am UTC](https://community.homey.app/t/possibility-to-get-source-of-triggered-event-on-button-like-in-the-timeline/91263/1 "2023-10-08T08:54:40Z")

</div>

Hi everyone,

is it possible to the get source of a triggered event on a button? In the timeline of the button I can see if “knx” triggered the event or if it was triggered by a user from the web?

I need this in a flow because knx does not support binary sensors. My workaround at the moment is, that I create a button with the group address and then map it to a virtual sensor button. This works pretty well and fast. The only problem I have is when someone presses this button via the web ui. Then the window is shown as open even if the knx didn’t send the signal.

I now want to do something like this in a flow:

Button Window 1 pressed AND source of pressed button is knx → set helper sensor to on.

Does anybody have an idea how to make this happen or where the data is saved so that I can use homeyscript for it? That would be really really helpful.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 10, 2023, 12:15am UTC](https://community.homey.app/t/possibility-to-get-source-of-triggered-event-on-button-like-in-the-timeline/91263/2 "2023-10-10T00:15:07Z")

</div>

Here’s an example for a light:  
The neat app [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) does the trick here

 ![Screenshot from 2023-10-10 02-21-06](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f666d34eba23b30e396713334e10336ee7a77f45.png)

You can get the event source on a button with this flow, and create a flow + an [advanced virtual device](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) for every individual event.

Impression of output:  
 ![Screenshot from 2023-10-10 02-08-11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d89d7d2e02ca62c291c886161692f17c0bd396c1.png)

![Screenshot from 2023-10-10 02-03-21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f657ca33fdea539403fcfcd3c22252ef6ec050d5.png)

![Screenshot from 2023-10-10 02-01-16](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/3986f3b705bd77565edf42ec4213955a94041c50.png)

![Screenshot from 2023-10-10 01-59-25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2a8863d044aa2ec986c489b7b4f2687f0b3c1335.png)

You can save the data to excel or the likes, when you log it to Simple Log f.i., instead of to the timeline. There’s also a Google Sheets app

---

<div class="post-metadata">

**Author:** ![Mareike\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mareike_b/32/80103_2.png) [@Mareike\_B](https://community.homey.app/u/Mareike_B)\
**Post date:** [October 10, 2023, 9:55am UTC](https://community.homey.app/t/possibility-to-get-source-of-triggered-event-on-button-like-in-the-timeline/91263/3 "2023-10-10T09:55:13Z")

</div>

Thank you. That totally worked for me 😀.
