# Heimdall - Let Homey watch over your home

**URL:** <https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134>\
**Category:** Apps\
**Tags:** app, official, security, homey-pro:mini:shs, heimdall\
**Created:** [August 22, 2018, 1:41pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134 "2018-08-22T13:41:20Z")\
**Posts on this page:** 20\
**Page:** 16

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 25, 2019, 12:37pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/306 "2019-01-25T12:37:58Z")

</div>

Thanks @jc82517

Are you using the **Set Surveillance Mode** action card from the **Surveillance Mode Switch**?  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/94436ad3f15446039eaa25f8220bf149b826d425.jpeg)  
When that card is used a **Arming Delay** will be stopped when setting it to **Disarmed**.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 25, 2019, 12:43pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/307 "2019-01-25T12:43:39Z")

</div>

Hello @J_Pouwels,

The **Alarm Off Button** is to disable the **Alarm State** not to (partially) Arm the system, you need to use the **Surveillance Mode Switch** for that as per [instructions](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134#heading--instructions) in the opening post.

---

<div class="post-metadata">

**Author:** ![J\_Pouwels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/j_pouwels/32/10507_2.png) [@J\_Pouwels](https://community.homey.app/u/J_Pouwels)\
**Post date:** [January 26, 2019, 12:52pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/308 "2019-01-26T12:52:09Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e2cf233ea83ef7d735b176f6e9487cf6f6151a7a.png)

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 26, 2019, 2:59pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/309 "2019-01-26T14:59:19Z")

</div>

That’s fixed in 2.0.4 which awaits approval by Athom.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 28, 2019, 6:32pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/310 "2019-01-28T18:32:24Z")

</div>

New version published

> ## Version 2.0.4
> 
> - Prevent creation of default flow cards for **Surveillance Mode Switch**
> - Added examples to flowcard tags
> - Code cleanup

Homey V2 automatically created flow cards based on only a capability, This resulted in creation of trigger-, condition- and action cards on the **Surveillance Mode** device which were unwanted. This version prevents these cards from being created but also removes cards that were created before so please check your flows for missing cards!

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [January 28, 2019, 6:48pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/311 "2019-01-28T18:48:12Z")

</div>

Couple of questions;

1. The device has not reported in 24 hours, is there a way to keep it from spamming the logs?

2. I cannot find the clear logs button anymore?

3. Why am i seeing these two events and what is the difference? It happens when i leave the geofence;

> \*\*11:25:56.186 \*\*
> 
> **Armed**
> 
> **_Flowcard_**
> 
> **Surveillance mode is armed.**

And then 5 minutes later;

> \*\*11:29:15.223 \*\*
> 
> **Armed**
> 
> **_Surveillance Mode Switch_**
> 
> **Surveillance mode is armed.**

Same on entering, I see two events. Dont think ive seen this behavior in 1.5

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 28, 2019, 8:21pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/312 "2019-01-28T20:21:20Z")

</div>

Hi @Hannes85,

Devices that have not communicated in the last 24 hours will always be reported to the **History View** on the **Dashboard** , the only way to keep them from creating a line would be to make them communicate.

The **Clear History** button is currently hidden, when starting the rewrite for Homey 2.0 I hide that button and also the **Download** button. Now that most technical issues are solved I will look into improving the UI/UX and bringing it back. In the mean time, you don’t have to worry about the **History** filling up your Homey however, Heimdall will make sure it doesn’t grow to larger than 2000 lines.

I can’t really tell why you see 2 events when leaving the geofence. The first is from a flow card so I suppose it’s a flow you made that is triggered by someone leaving, the second appears to be from using the **Surveillance Mode** switch.  
Do you have an **Arming Delay** configured?  
Can you send a Diagnostic Report and inform me when this happens again?

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [January 28, 2019, 8:54pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/313 "2019-01-28T20:54:32Z")

</div>

Thanks danee for the detailed reply, this truly helps in Understanding.

Ive sent you the diagnostics per Pm. I have no delayed arming. Maybe the homeykit app does something quirky? Because I have a surveillance mode switch there? Not that I touched it but a refresh (on opening HomeKit on the phone) in homekit could be the only thing causing this i think…

Keep up the amazing work!

---

<div class="post-metadata">

**Author:** ![nattelip](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nattelip/32/10013_2.png) [@nattelip](https://community.homey.app/u/nattelip)\
**Post date:** [January 30, 2019, 6:43pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/314 "2019-01-30T18:43:05Z")

</div>

i cant clear the log 2.0.4 of heimdall on my android phone in v2 , i dont see the clear buttun which was available on homey v1 settings ? in the nox player idont see the log at all

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [January 30, 2019, 6:55pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/315 "2019-01-30T18:55:24Z")

</div>

You only have to Look Up two posts to get your answer…

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 30, 2019, 7:14pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/316 "2019-01-30T19:14:31Z")

</div>

New version published

> ## Version 2.0.5
> 
> - Improved settings user interface
> - Code cleanup

Made a start with improving the settings user interface, made it a bit cleaner and more consistent in style. Also removed some old V1 code.

---

<div class="post-metadata">

**Author:** ![SpaceCosmos](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@SpaceCosmos](https://community.homey.app/u/SpaceCosmos)\
**Post date:** [January 30, 2019, 7:35pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/317 "2019-01-30T19:35:34Z")

</div>

It still doesn’t work with the Aqara Motion Sensor. Got a new batch today and it detects motion, Heimdall gives the proper message that the motion sensor _triggered Alarm_. And _Alarm is activated_ in the log. But no push notification to phone and/or no sound of siren (Neo Coolcam). But if **_any_** other motion sensor (Aeotec MultiSensor or Aqara Window/Door Sensor) is triggered, the push works and the siren starts making sound.

It’s extremely weird. I’ve made a Diagnostic Report and I will send the code to you via PM.

---

<div class="post-metadata">

**Author:** ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)\
**Post date:** [January 30, 2019, 8:18pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/318 "2019-01-30T20:18:29Z")

</div>

Settings is looking a lot better! 🙂  
Page width is consistent everywhere now, but I still have to ‘pinch’ the screen a little to zoom out because a part is missing on the right otherwise

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 30, 2019, 8:25pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/319 "2019-01-30T20:25:19Z")

</div>

Hi @SpaceCosmos,

I’m looking into the log, but it doesn’t seem to make sense.  
At enumerating the devices it does find the Aqara devices, but it seems there are no **Surveillance Modes** selected for the Aqara Motion Sensor.

```auto
2019-01-30 20:13:14 [log] [Heimdall] Found contact sensor: Aqara Window/Door Sensor
2019-01-30 20:13:14 [log] [Heimdall] Attached Eventlistener to: Aqara Window/Door Sensor: contact, Fully Monitored, Partially Monitored
2019-01-30 20:13:14 [log] [Heimdall] Found motion sensor: Aqara Motion Sensor
2019-01-30 20:13:14 [log] [Heimdall] Attached Eventlistener to: Aqara Motion Sensor: motion

```

A bit further the Aqara Motion sensor is triggered and it still shows no selected **Surveillance Modes** to be included in.

```auto
2019-01-30 20:17:56 [log] [Heimdall] stateChange: Aqara Motion Sensor
2019-01-30 20:17:56 [log] [Heimdall] sourceDeviceFull: false
2019-01-30 20:17:56 [log] [Heimdall] sourceDevicePartial: false
2019-01-30 20:17:56 [log] [Heimdall] sourceDeviceLog: false

```

A bit later after the **Surveillance Mode** is set to armed the sensor is triggered again and it does a full correct routine but now it does show selected **Surveillance Modes**. This doen’t make sense to me, unless you changed settings on that sensor in the mean time.

```auto
2019-01-30 20:20:27 [log] [Heimdall] stateChange: Aqara Motion Sensor
2019-01-30 20:20:27 [log] [Heimdall] sourceDeviceFull: true
2019-01-30 20:20:27 [log] [Heimdall] sourceDevicePartial: true
2019-01-30 20:20:27 [log] [Heimdall] sourceDeviceLog: false
2019-01-30 20:20:27 [log] [Heimdall] Full||Partial||Log: Yes
2019-01-30 20:20:27 [log] [Heimdall] sensorStateReadable: Motion detected
2019-01-30 20:20:27 [log] [Heimdall] Alarm is triggered: Yes
2019-01-30 20:20:27 [log] [Heimdall] Trigger is delayed: No
2019-01-30 20:20:27 [log] [Heimdall] logArmedOnly: false, Surveillance Mode: armed
2019-01-30 20:20:27 [log] [Heimdall] logTrueOnly: false, Sensorstate: true
2019-01-30 20:20:27 [log] [Heimdall] Say: The alarm is activated
2019-01-30 20:20:28 [log] [Heimdall] sModeDevice alarm_heimdall: activated

```

The triggering of the flow card does not write a logline when succesfull but would if it would fail so I have to assume the card is triggered.

I have some additional questions:  
Did you change settings on the sensor after stopping and starting _ **Heimdall** _?  
Does the Aqara Motion sensor show up correctly in the developer tools?  
Did the Aqara Motion sensor add in 1 try or did you have troubles adding it?  
Have you rebooted your Homey (by unplugging the power) after adding the sensor?  
Was a line written to the **History** on the **Dashboard** tab in the apps settings?  
Can you post a screenshot of your alarm flow?  
Do you know how to install an app using the CLI?

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 30, 2019, 8:27pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/320 "2019-01-30T20:27:03Z")

</div>

Thanks @Fire69

Can you post a screenshot of a page where this happens (before adjusting the zoom)?  
What kind of phone are you using and do you know its resolution?

---

<div class="post-metadata">

**Author:** ![GvanDongen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gvandongen/32/5255_2.png) [@GvanDongen](https://community.homey.app/u/GvanDongen)\
**Post date:** [January 30, 2019, 8:31pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/321 "2019-01-30T20:31:54Z")

</div>

Is it possible ta ad a button or change the original button that i can see in witch static it is? Maybe in colors? That will be fine than I never have to open the app to see his status.

---

<div class="post-metadata">

**Author:** ![SpaceCosmos](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@SpaceCosmos](https://community.homey.app/u/SpaceCosmos)\
**Post date:** [January 30, 2019, 8:44pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/322 "2019-01-30T20:44:46Z")

</div>

Hello again,

Sorry, I _could_ be mixing up as when I added the device and when I generated the _Diagnostic Report_. But I made a new one now and sent it to you via PM, together with screenshots of the Flow triggering push and sound of siren and the Dashboard.

**As for your additional questions, I’ll try to answer them in short here:**  
Did you change settings on the sensor after stopping and starting _ **Heimdall** _ ?  
– I _might_ have?  
Does the Aqara Motion sensor show up correctly in the developer tools?  
– Yes.  
Did the Aqara Motion sensor add in 1 try or did you have troubles adding it?  
– Yes. Paired and worked at once.  
Have you rebooted your Homey (by unplugging the power) after adding the sensor?  
– No, not with this new sensor, but have with the previous one.  
Was a line written to the **History** on the **Dashboard** tab in the apps settings?  
– Yes. (See screenshot sent via PM.)  
Can you post a screenshot of your alarm flow?  
– Yes. (See screenshot sent via PM.)  
Do you know how to install an app using the CLI?  
– No, not with version 2,0 of Homey.

**Hope this helps!**

---

<div class="post-metadata">

**Author:** ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)\
**Post date:** [January 30, 2019, 9:03pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/323 "2019-01-30T21:03:00Z")

</div>

Just looked a bit better at it.  
Everything is shown correctly within the screen except the ‘Instructions’ tab-label at the top.  
And because of that you can scroll horizontally a little.

Resolution is 1440\*2560 (Galaxy S7)

 ![Screenshot_20190130-220113_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7af4329b718d9ca073a7e68f1bed6d630979fcd0.jpeg)

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [January 30, 2019, 9:20pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/324 "2019-01-30T21:20:18Z")

</div>

This MIGHT be way off but since it does sound oddly familiar to behavior that I have been seeing I will share it nonetheless;

I am running into a known problem (resolved in homey 2.0.2 RC2) where a WHEN card with “state changed” is not seen by homey (not for every device, it is extremely random). Didn’t bother requesting the details but on slack the answer was very clear;

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/568cb6db387a0bdc3fa78b9a1310f5ead95e6d6e.jpeg)

Again, I don’t know the exact details but the behavior feels familiar to what I have been seeing. Haven’t tried updating as I don’t want to go to the experimental channel but feel free to try it yourself and let us know the results? 🙂

---

<div class="post-metadata">

**Author:** ![SpaceCosmos](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@SpaceCosmos](https://community.homey.app/u/SpaceCosmos)\
**Post date:** [January 30, 2019, 9:37pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/325 "2019-01-30T21:37:32Z")

</div>

Hi,

I’m actually using the latest releases (Stable App v2.0.2 and Experimental Homey v2.0.2 as of now.). Like I said before, everything _seems fine_ and everything logs and triggers correctly. Except from actually sending push and sounding the siren when it detects movements.

I should also add that if I add the sensor with motion triggering to a random Flow, outside of **Heimdall** , it triggers the push and/or siren depending on what I’ve made the Flow to do. So it’s only when using it with **Heimdall** it doesn’t work properly.

[Previous page](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134.md?page=15)

[Next page](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134.md?page=17)
