# Help me understand why a sensor not show under "AND"

**URL:** <https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988>\
**Category:** Questions & Help\
**Created:** [January 12, 2023, 4:04pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988 "2023-01-12T16:04:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paxman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paxman/32/128050_2.png) [@Paxman](https://community.homey.app/u/Paxman)\
**Post date:** [January 12, 2023, 4:04pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988/1 "2023-01-12T16:04:29Z")

</div>

Hi all!

I’m still struggling to get my head around the programming of flows. The main confusion for me is why some devices sometimes doesn’t show up under the different “WHEN”, “AND” and “THEN” cards.

This time I wanted to do an automation for the general lights in the house. I have a flow where a light sensor triggers the lights. However this flow sometimes misses (I have to investigate further as to why) so I thought I’d do a backup flow that uses the sunset event also.

Where I live there are some weird light bouncing during sunset, so I wanted to use both the sun event and the light sensor in the flow so that the lights doesn’t turn on if the light level is over the sensors limit when the sun sets.

So I started my flow with “WHEN” Sun event app: “Event Sunset starts with offset +30”. Then I wanted to use “AND” “Light sensor level is under X” and “THEN” Turn on lights.

But the Light sensor doesn’t show up under the “AND” list of devices.

I know I’m missing some basic knowhow here…and I have tried to research it…but I still don’t get it. Most tutorials I have read/seen presume that the user already have some knowledge and brushes over the basics without explanation.

In my defense I do suffer from cognitive difficulties due to a rare medical condition and English is not my native language…so please be kind to me. 🙂

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 12, 2023, 4:20pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988/2 "2023-01-12T16:20:41Z")

</div>

Your light sensor might have variables available for the use with AND cards, try a Logic card to compare for the light sensor value:

 ![Screenshot 2023-01-12 at 18.19.40](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7a52752e815802ee6430e9c2b37d9d4164469a0d.png)

In this sample Luminance for the sensor device gives you the last know value reported by the light sensor.

---

<div class="post-metadata">

**Author:** ![Paxman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paxman/32/128050_2.png) [@Paxman](https://community.homey.app/u/Paxman)\
**Post date:** [January 12, 2023, 4:43pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988/3 "2023-01-12T16:43:07Z")

</div>

Thank you [OH2TH](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-unde-and/74988/2)! That worked perfect! 👍

Variables is one of the things I’ve not been able to fully understand. I do use them, and as long as everything works, it’s fine…but as soon as something don’t I’m all but lost. 🙄

---

<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:** [January 12, 2023, 6:30pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988/4 "2023-01-12T18:30:58Z")

</div>

> **[Using Homey Logic in Flows](https://support.homey.app/hc/en-us/articles/4410240765586-Using-Homey-Logic-in-Flows)**
>
> You’ve probably seen Homey Logic. Once you get the hang of it, it's a great tool for any smart home. By creating your own Variables and using these in your Flows as Tags, you can often accomplish c...

---

<div class="post-metadata">

**Author:** ![Paxman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paxman/32/128050_2.png) [@Paxman](https://community.homey.app/u/Paxman)\
**Post date:** [January 12, 2023, 8:38pm UTC](https://community.homey.app/t/help-me-understand-why-a-sensor-not-show-under-and/74988/5 "2023-01-12T20:38:52Z")

</div>

Thank you Peter. I have seen that page and watched the video…but I still haven’t gotten the hang of variables fully. It’s probably me…not the instructions. 😕
