# 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:** 63

<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:** [December 12, 2022, 4:28pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1262 "2022-12-12T16:28:15Z")

</div>

Hi @PerGrue,

Can you please stop and start _ **Heimdall** _, next reproduce the problem and send a diagnostics report?

Also, please post a screenshot of the flow you use.

---

<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:** [December 12, 2022, 5:06pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1263 "2022-12-12T17:06:16Z")

</div>

New version published.

> ## Version 2.3.5
> 
> - SDK3 support and conversion from athom-api to homey-api

In preparation for the new Homey Pro 2023 the _ **Heimdall** _ app is upgraded to support **SDK3** an is now using the **homey-api** which replaces the **athom-api**

There are no functional changes in this update.

---

<div class="post-metadata">

**Author:** ![PerGrue](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pergrue/32/38028_2.png) [@PerGrue](https://community.homey.app/u/PerGrue)\
**Post date:** [December 12, 2022, 5:56pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1264 "2022-12-12T17:56:46Z")

</div>

0b4e8def-f895-45e3-81dc-0f4d4706e9b8

---

<div class="post-metadata">

**Author:** ![PerGrue](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pergrue/32/38028_2.png) [@PerGrue](https://community.homey.app/u/PerGrue)\
**Post date:** [December 12, 2022, 5:57pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1265 "2022-12-12T17:57:52Z")

</div>

![Flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d895d829f70a7eb2f19c91d4dfd291a6a0cd2327.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:** [December 12, 2022, 6:21pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1266 "2022-12-12T18:21:00Z")

</div>

Thanks for reporting @PerGrue it was indeed a bug.

Don’t know how it slipped in, initially I tested all flowcards in batches per functionality before putting out the first test version, somehow the changes to the flowcards to add/remove Modes, Delays or logging from devices got lost.

New version 2.3.6 is submitted and published, the app will be automatically be updated.

---

<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:** [December 12, 2022, 6:23pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1267 "2022-12-12T18:23:59Z")

</div>

New version published.

> ## Version 2.3.6
> 
> - Fixed a bug in the flowcards to add or remove a **Surveillance Mode** , **Delay** or **logging** to/from a device

Thanks to @PerGrue for reporting this.

---

<div class="post-metadata">

**Author:** ![PerGrue](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pergrue/32/38028_2.png) [@PerGrue](https://community.homey.app/u/PerGrue)\
**Post date:** [December 12, 2022, 6:38pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1268 "2022-12-12T18:38:47Z")

</div>

Thanks a lot.

---

<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:** [December 13, 2022, 5:51pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1269 "2022-12-13T17:51:00Z")

</div>

New version published.

> ## Version 2.3.7
> 
> - Minor change in error handling

Some errors occurred and were (automatically) reported, improved the error handling so it is clearer to me what is happening. No changes for the users.

---

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [December 13, 2022, 8:41pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1270 "2022-12-13T20:41:36Z")

</div>

Hi @DaneedeKruyff  
You have in Heimdall created a very nice database where you save the last date time of reaction of a sensor. Is it possible to make this information available in a flow. What I want to create is a weekly check of my sensors if they give response.  
When this information is available I can create a flow if ‘laatste bericht’ \< current date -7 and then I can create todo’s to check my sensors.  
Hope this is possible.  
With kind regards, Rob

---

<div class="post-metadata">

**Author:** ![Andrea\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrea_m/32/18744_2.png) [@Andrea\_M](https://community.homey.app/u/Andrea_M)\
**Post date:** [December 14, 2022, 7:43am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1271 "2022-12-14T07:43:17Z")

</div>

Hello @DaneedeKruyff and thank you for your work. Heimdall was working flawless on my Homey 2019 till your latest updates (2.3.5 to 2.3.7).

My Homey is on version 8.1.0 (latest) so it is Heimdall (2.3.7).  
Heimdall does not update anymore the state of the sensors … as I insert the Alarm I receive notification that some windows are open … but they are not.

---

<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:** [December 14, 2022, 6:00pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1272 "2022-12-14T18:00:18Z")

</div>

Hi Ron,

_ **Heimdall** _ does not create a database with last communication dates from devices, that information is available on any device and is just read by _ **Heimdall** _.

_ **Heimdall** _ provides the flowcard **Check Last Communication** that triggers a function that will look at the last communication date of all devices that are included in a **Surveillance Mode**. When a sensor is found that hasn’t communicated within the last 24 hours the **No information received** flowcard is triggered. This is sufficient for the purpose of it and it is beyond the scope of _ **Heimdall** _ to extend that functionality.

The information you’re looking for can be read with Homey Script, I think when you look around on the forum or make a topic asking how to do this someone will help you out.

---

<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:** [December 14, 2022, 6:05pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1273 "2022-12-14T18:05:32Z")

</div>

Hi Andrea,

That’s unfortunate. Can you please try restarting Homey, next wait until all apps are loaded and after that send a Diagnostic Report (I need the log of the starting fase of _ **Heimdall** _)

Next try triggering some devices that are part of a **Surveillance Mode** and next change the **Surveillance Mode** to ( **Partially** ) **Armed**. After that, please send me another Diagnostic Report.

After sending the reports, please post the report numbers and additional information such as the names of the devices that give problems here.

---

<div class="post-metadata">

**Author:** ![Andrea\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrea_m/32/18744_2.png) [@Andrea\_M](https://community.homey.app/u/Andrea_M)\
**Post date:** [December 14, 2022, 8:53pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1274 "2022-12-14T20:53:50Z")

</div>

Hi DaneedeKruyff, thank you for your replay.

Here the Report just after reboot  
e53b5ca1-d87e-4719-90c8-502d265071b1

And here the Report after some sensor triggered and Alarm insert  
eaccef61-ae3c-41c8-be30-9220e0cef839

I closed Pranzo but wrongly reported open.  
I opened Soggiorno but wrongly reported closed in Heimdall.

Thanks again  
Andrea

 ![Screenshot_20221214-215624775](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c9c177df2a4607a8559f08642d0a9521aededc3a.jpeg)  
 ![Screenshot_20221214-215903244 (1)](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/d/edebec76524afd85e1d61cb04831a43794dc32bb.jpeg)  
 ![Screenshot_20221214-215814058 (1)](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/e/3ea5d52e72d4b33fd0bf95dcda7e6a6b404e39ed.jpeg)

---

<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:** [December 15, 2022, 6:14am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1275 "2022-12-15T06:14:23Z")

</div>

This is what I see in the log (I’ve removed irrelevant information):

```auto
[log] 2022-12-14 20:49:04 [ManagerDrivers] [Driver:surveillanceModeSwitch] [Device:46abd68d-bb08-4d81-a734-9db8b87edc53] Surveillance Mode Flow Card activated: partially_armed
[log] 2022-12-14 20:49:04 [Heimdall] setSurveillanceMode: partially_armed
[log] 2022-12-14 20:49:04 [Heimdall] setSurveillanceValue: partially_armed
[log] 2022-12-14 20:49:05 [Heimdall] checkDeviceState: Soggiorno - contact: Chiuso
[log] 2022-12-14 20:49:05 [Heimdall] checkDeviceState: Pranzo - contact: Aperto

```

So, at the time of changing the **Surveillance Mode** to **Partially Armed** then _contact sensor_ **Soggiorno** reported _Closed_ and the _contact sensor_ **Pranzo** reported _Open_, which is also visible in the settings pages of _ **Heimdall** _.

- Could it be you have inverted the contact capability on these devices?
- What devices are these? (brand/type)
- Are your other contact sensors of the same brand/type?

I assume any of these devices is added to a **Surveillance Mode** , can you try what happens when you actually trip one off these sensors while in the **Surveillance Mode** the sensor is added to?  
(At arming the sensor value is read from the device, when a sensor is tripped homey sends out an event for that sensor and I want to know if that part is working)

---

<div class="post-metadata">

**Author:** ![Andrea\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrea_m/32/18744_2.png) [@Andrea\_M](https://community.homey.app/u/Andrea_M)\
**Post date:** [December 15, 2022, 6:00pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1276 "2022-12-15T18:00:49Z")

</div>

Ok,

\*\*\* Could it be you have inverted the contact capability on these devices?\*\*

NO it is not the. case.

\*\*\* What devices are these? (brand/type)\*\*

Aqara Door Sensors

\*\*\* Are your other contact sensors of the same brand/type?\*\*

Yes lots in all windows of my house, no one is updating in Heimdall, I have also two fibaro eyes also not reporting the state in Heimdall so do two Pir sensors from Aqara. Since yesterday evening no reporting changes in setting page of Heimdall.

_I assume any of these devices is added to a **Surveillance Mode** , can you try what happens when you actually trip one off these sensors while in the **Surveillance Mode** the sensor is added to?_  
_(At arming the sensor value is read from the device, when a sensor is tripped homey sends out an event for that sensor and I want to know if that part is working)_

When I trip any sensor (door or pir) while in Surveillance mode, the Alarm is correctly inserted despite the setting page of Heimdall does not show any update on the state of the sensors.  
In short, everything works correctly but the state of the sensors in Heimdall setting page … the problem is that when I set the Surveillance mode ON, I receive wrong message on the state of the sensors that for Heimdall are tripped (doors looks open but they are not).

This is the problem. Thank you DaneedeKruyff for looking in it.  
Andrea

---

<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:** [December 15, 2022, 6:28pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1277 "2022-12-15T18:28:23Z")

</div>

Ok, thanks.  
So in short, it seems _ **Heimdall** _ is not reading information from sensors when selecting a **Surveillance Mode** and not when looking at the device states in the apps settings pages (mind you, the information on this page is not realtime)  
_ **Heimdall** _ does receive events from devices when they are tripped.

I’ll look into it. Unfortunately I’ve never seen this behaviour before so first I have to figure out how to simulate this.

---

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [December 15, 2022, 6:47pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1278 "2022-12-15T18:47:08Z")

</div>

Ok thnx for the reply. I will find another way to register and use the info.

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [December 16, 2022, 5:30am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1279 "2022-12-16T05:30:16Z")

</div>

Hi!  
You may use the Device Capability app for this. Use the “last seen (ms)” tag and check if more than 8640000 (being a day and a night in ms).

---

<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:** [December 17, 2022, 4:18pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1280 "2022-12-17T16:18:42Z")

</div>

New version published.

> ## Version 2.3.8
> 
> - Fixed incorrect devicestatus in app settings

I was able to reproduce the problem reported by @Andrea_M, this update fixes it.

---

<div class="post-metadata">

**Author:** ![Andrea\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrea_m/32/18744_2.png) [@Andrea\_M](https://community.homey.app/u/Andrea_M)\
**Post date:** [December 17, 2022, 8:54pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/1281 "2022-12-17T20:54:36Z")

</div>

Thank you DaneedeKruyff! I was just wondering how it was fixed by itself while I chechek your message and discovered the new update … Great App Great men. TOP 💪

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

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