# How to control lights with Aeotec Trisensor app

**URL:** <https://community.homey.app/t/how-to-control-lights-with-aeotec-trisensor-app/58518>\
**Category:** Apps\
**Created:** [January 16, 2022, 11:03am UTC](https://community.homey.app/t/how-to-control-lights-with-aeotec-trisensor-app/58518 "2022-01-16T11:03:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 16, 2022, 11:12am UTC](https://community.homey.app/t/how-to-control-lights-with-aeotec-trisensor-app/58518/2 "2022-01-16T11:12:36Z")

</div>

The second flow is the right one. The trigger must be “Motion is detected / Motion alarm turned on”.  
For luminance values you need to use the Homey build in logic cards in the And… section.

And…  
– Logic → is less than → tap the tag → tap the local tag “Brightness” → fill a value in → checkmark

Please have a look at this tutorial:

> [@Getting Started - Logic variables](https://community.homey.app/t/getting-started-logic-variables/20132):
>
> Hi everyone, in this tutorial I will tell you about logic variables and you will learn: how to create a variable the different kind of variables and; their properties and limitations some uses cases of the different types First, let’s take a look at what Athom gave us to work with, shall we? In your app, go to the ‘more’ tab and hit ‘logic’. I already have some variables in my app, so my screen looks like this: You’ll notice I made a blue mark on the printscreen, highligh…

---

_[View the full topic](https://community.homey.app/t/how-to-control-lights-with-aeotec-trisensor-app/58518)._
