# Scene trigger: How to have 2 conditions

**URL:** <https://community.gladysassistant.com/t/declenchement-de-scene-comment-faire-pour-avoir-2-conditions/9780>\
**Category:** Configuration\
**Created:** [October 12, 2025, 5:54pm UTC](https://community.gladysassistant.com/t/declenchement-de-scene-comment-faire-pour-avoir-2-conditions/9780 "2025-10-12T17:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bong101](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bong101/32/9808_2.png) [@bong101](https://community.gladysassistant.com/u/bong101)\
**Post date:** [October 12, 2025, 5:54pm UTC](https://community.gladysassistant.com/t/declenchement-de-scene-comment-faire-pour-avoir-2-conditions/9780/1 "2025-10-12T17:54:21Z")

</div>

Hello

I would like to turn on my water heater if I am at home AND if it is 10:05 PM (off-peak hours)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/4/6/4620d75a5c246091b6d91c0f8df1f551d587d761.png)

Not an OR but an AND

Is there a good way to do this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 12, 2025, 7:16pm UTC](https://community.gladysassistant.com/t/declenchement-de-scene-comment-faire-pour-avoir-2-conditions/9780/2 "2025-10-12T19:16:32Z")

</div>

Good evening

So personally I would keep the time-based condition and then I would add an if statement for the other condition at the beginning of my scene scripting.

---

<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:** [October 13, 2025, 7:26am UTC](https://community.gladysassistant.com/t/declenchement-de-scene-comment-faire-pour-avoir-2-conditions/9780/3 "2025-10-13T07:26:06Z")

</div>

Hi @bong101 🙂

I think you’re confusing «&nbsp;Trigger&nbsp;» and «&nbsp;Condition&nbsp;»!

In your case, I recommend doing this:

 ![Screenshot 2025-10-13 at 09.22.54](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/e/fed3538a81975a71afa038f61dfd21b8aa15db14.png)

Keep the scheduled trigger at 12:00 (your trigger), and then add a condition «&nbsp;If the house is not empty&nbsp;».

The scene will stop if you’re not at home; however, if you are at home, it will continue in the following action block.

The condition «&nbsp;If the house is not empty&nbsp;» checks that at least one user of the house is present. This assumes that you manage presence in Gladys, either via your phone, via OwnTracks and zones, via Wi‑Fi scanning, or via Bluetooth scanning… (endless possibilities!)
