# Heimdall alarm

**URL:** <https://community.homey.app/t/heimdall-alarm/19242>\
**Category:** Questions & Help\
**Created:** [October 14, 2019, 12:16am UTC](https://community.homey.app/t/heimdall-alarm/19242 "2019-10-14T00:16:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pilou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pilou/32/13385_2.png) [@Pilou](https://community.homey.app/u/Pilou)\
**Post date:** [October 14, 2019, 12:16am UTC](https://community.homey.app/t/heimdall-alarm/19242/1 "2019-10-14T00:16:47Z")

</div>

Good evening everybody!

I want to simulate a precense when whe are not at home. I want to switch some lights on/off during “x” time when the PIR sensor is armed (not activated!!!)  
I tried every “flow” option from Heimdall but I can’t resolve the issue with the items who are proposed in the list.  
Has anyone have an idea how I can do it?

Thxxx!

---

<div class="post-metadata">

**Author:** ![Igy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igy/32/22144_2.png) [@Igy](https://community.homey.app/u/Igy)\
**Post date:** [October 14, 2019, 1:48pm UTC](https://community.homey.app/t/heimdall-alarm/19242/2 "2019-10-14T13:48:30Z")

</div>

Just use Heimdall in “and” condition within specific flow that should trigger light simulation. There is option “Heimdall surveilliance mode is Armed” to be used as a condition.  
So example flow should be “Every random minute and Heimdall surveilliance mode is Armed and its a nightime then, turn on the light, turn off the light with delay of random value.” Some tweaks can be made, or just look here on forum for presence simulation flows that can be reused and triggered.

---

<div class="post-metadata">

**Author:** ![Pilou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pilou/32/13385_2.png) [@Pilou](https://community.homey.app/u/Pilou)\
**Post date:** [October 16, 2019, 10:31pm UTC](https://community.homey.app/t/heimdall-alarm/19242/3 "2019-10-16T22:31:38Z")

</div>

Thx a lot for the information. I only saw your message at this moment… I had a lot of work…  
It’s another point of vieuw but your way is working better then mine. I diddn’t had the Heimdall option before but when you put it in the “and” condition it appears…  
Thnaks again!

---

<div class="post-metadata">

**Author:** ![Pilou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pilou/32/13385_2.png) [@Pilou](https://community.homey.app/u/Pilou)\
**Post date:** [October 21, 2019, 9:24am UTC](https://community.homey.app/t/heimdall-alarm/19242/4 "2019-10-21T09:24:17Z")

</div>

Hi Igy,

How is it possible that “the surveilliance mode is armed” is only visible in the after the AND fonction?  
What I wanted to do

WHEN “surveilliance is armed” THEN  
shutdown all lights  
start flow présence

WHEN Alarme active THEN  
stop flow présence  
put on all lights

WHEN Alarme desactivated THEN  
stop flow présence  
shutdown all lights  
put on 1 light (to have light when we come home)

It should be easy but I don’t understand the logique from Homey. I did the same with fibaro, it was much less complicated…

Thanks

---

<div class="post-metadata">

**Author:** ![Igy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igy/32/22144_2.png) [@Igy](https://community.homey.app/u/Igy)\
**Post date:** [October 21, 2019, 10:05am UTC](https://community.homey.app/t/heimdall-alarm/19242/5 "2019-10-21T10:05:03Z")

</div>

You can do it as well. There is option to use Heimdall in When condition. E.g. “Surveillance mode changed” and “Surveillance mode is armed” then …

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 21, 2019, 10:41am UTC](https://community.homey.app/t/heimdall-alarm/19242/6 "2019-10-21T10:41:04Z")

</div>

Rest of the Heimdall questions can be asked in the Heimdall topic please.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 21, 2019, 10:41am UTC](https://community.homey.app/t/heimdall-alarm/19242/7 "2019-10-21T10:41:10Z")

</div>

Closed on October 21, 2019, 10:41am UTC


