# Help with scene

**URL:** <https://community.gladysassistant.com/t/aide-pour-scene/6352>\
**Category:** Random\
**Created:** [May 26, 2021, 6:04pm UTC](https://community.gladysassistant.com/t/aide-pour-scene/6352 "2021-05-26T18:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_MAILLOT](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alexandre_maillot/32/6068_2.png) [@Alexandre\_MAILLOT](https://community.gladysassistant.com/u/Alexandre_MAILLOT)\
**Post date:** [May 26, 2021, 6:04pm UTC](https://community.gladysassistant.com/t/aide-pour-scene/6352/1 "2021-05-26T18:04:26Z")

</div>

Hello,  
I want to create a scene that allows, if there is no one at home but the motion detector is triggered, to trigger an alarm.  
My issue is how I can do the trigger. I can’t do if the house is empty and the sensor state changes then trigger alarm.  
I tried by doing if the motion sensor state changes then I check everyone’s status (not optimal at all). I can’t use «&nbsp;house empty&nbsp;» because it’s only usable in actions. Sorry if I’m not clear ^^

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 27, 2021, 2:12am UTC](https://community.gladysassistant.com/t/aide-pour-scene/6352/2 "2021-05-27T02:12:28Z")

</div>

Hello!

What you want to do is a trigger «&nbsp;When there is movement&nbsp;» with a condition «&nbsp;The house is empty&nbsp;».

So currently this is not possible, we lack the condition «&nbsp;if the house is empty/not empty&nbsp;» in the actions ^^

But this is a planned development:

> [@Utiliser la présence dans les scènes](https://community.gladysassistant.com/t/utiliser-la-presence-dans-les-scenes/6246/16?u=pierre-gilles):
>
> @lmilcent Je me demande si on voudrait pas une version “condition” de ces triggers pour faire des scènes “Si mouvement ET que la maison est vide, alors”

As a last resort, you can cheat in the meantime by using a fake MQTT device that will store 0 or 1 if the house is empty or not, and then use this device in the scenes with a «&nbsp;get last state&nbsp;» block + «&nbsp;continue only if&nbsp;» 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 11, 2021, 9:58am UTC](https://community.gladysassistant.com/t/aide-pour-scene/6352/3 "2021-06-11T09:58:10Z")

</div>

@Alexandre_MAILLOT I have some good news for you 🙂

> [@Utiliser la présence dans les scènes](https://community.gladysassistant.com/t/utiliser-la-presence-dans-les-scenes/6246/19?u=pierre-gilles):
>
> Hop hop, je viens de finir de développer 2 nouvelles box “si la maison est vide”, et “si la maison n’est pas vide”, qui sont 2 conditions dans les actions: C’est sur master, le build dev est parti et ça partira dans la prochaine release Gladys ! slight_smile

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 14, 2021, 8:19am UTC](https://community.gladysassistant.com/t/aide-pour-scene/6352/4 "2021-06-14T08:19:41Z")

</div>

I confirm that the empty house/not empty house conditions are now live in Gladys v4.4 🙂

> [@Gladys Assistant v4.4 est disponible avec la détection d'entrée/sortie de zones!](https://community.gladysassistant.com/t/gladys-assistant-v4-4-est-disponible-avec-la-detection-dentree-sortie-de-zones/6388):
>
> Salut à tous ! Gladys Assistant v4.4 est disponible, et ajoute plusieurs fonctionnalités assez demandées sur le forum slight_smile Liste complète des fonctionnalités sur le blog: Merci à ceux qui ont contribués à cette release slight_smile
