# Ways to trigger automations on Homey Pro and Homekit at the same time

**URL:** <https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [August 17, 2022, 8:20pm UTC](https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528 "2022-08-17T20:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thermo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thermo/32/57684_2.png) [@Thermo](https://community.homey.app/u/Thermo)\
**Post date:** [August 17, 2022, 8:20pm UTC](https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528/1 "2022-08-17T20:20:43Z")

</div>

Hi all,

I hope someone can point to a clever way of setting this up: I would like to have a “movie theatre” button that:

- Closes windows (Velux Integra)
- Closes down drapes (Velux Integra as well)
- Set the right light on Hue lamps and lightstrips (Homey Pro)
- Turn on an LG television (Homey Pro)
- Play an opening tune on Sonos (Homey Pro)
- …triggered from a click of a button on Aqara (Homey Pro)

The thing is that Velux is only running Homekit via it’s own gateway, which works well - so I don’t wish to change to Somfy or something else. All the other stuff, I can do via Homey easily.

I was thinking that the button could trigger automations on both Homey Pro and Homekit - but the button doesn’t like to have two hubs, so that idea failed. Also, setting the button up via HomeyKit or the experimental access doesn’t fly either.

Is there a way to trigger a flow/automation across? Perhaps a trigger I haven’t thought of?

Any ideas are warmly welcome - or an app for Velux’ latest gateway 🙂

Thanks in advance

---

<div class="post-metadata">

**Author:** ![8bt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/8bt/32/58819_2.png) [@8bt](https://community.homey.app/u/8bt)\
**Post date:** [August 17, 2022, 8:39pm UTC](https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528/2 "2022-08-17T20:39:41Z")

</div>

I think there is a way with webhooks + homekit. Just found this topic on Reddit (homekit + ifttt, just replace the ifttt with homey 😉):

> **[r/HomeKit - Can I use webhooks to add anything in IFTTT to HomeKit?](https://www.reddit.com/r/HomeKit/comments/evfnrb/can_i_use_webhooks_to_add_anything_in_ifttt_to/)**
>
> 5 votes and 7 comments so far on Reddit

---

<div class="post-metadata">

**Author:** ![Sjoerd1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sjoerd1/32/33892_2.png) [@Sjoerd1](https://community.homey.app/u/Sjoerd1)\
**Post date:** [August 17, 2022, 9:35pm UTC](https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528/3 "2022-08-17T21:35:59Z")

</div>

You can use the app Homeykit. Make a virtual switch on Homey and add this switch to homekit trough Homeykit.

Now you can make a flow when button pressed: virtual switch on. And in homekit you can say ‘When virtual switch is on… do this’ (same for off)

---

<div class="post-metadata">

**Author:** ![Thermo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thermo/32/57684_2.png) [@Thermo](https://community.homey.app/u/Thermo)\
**Post date:** [August 18, 2022, 7:16pm UTC](https://community.homey.app/t/ways-to-trigger-automations-on-homey-pro-and-homekit-at-the-same-time/67528/4 "2022-08-18T19:16:12Z")

</div>

Well, thank you very much 8bt and Sjoerd1 - I actually did get it working just now.

I tried out the experimentals from Homey directly (Homekit and Virtual), but that did not work very well.

So, by using the Virtual Devices and HomeyKit apps, I got it flying by setting up a virtual mode and then add that virtual device in Homekit.

When I press the Aqara button it first ignites the lighting, the Sonos sound plays and turns on the TV. From there Homekit picks it up, closes windows and drapes - voila: movie theatre mode completed.

Perhaps I should get a popcorn machine…
