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

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 4, 2019, 8:01pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/347 "2019-02-04T20:01:12Z")

</div>

ok, should I disable all apps and only have xiaomi and heimdall running, is that what you suggest, and see if Hemdall then works?

---

<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:** [February 4, 2019, 8:02pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/348 "2019-02-04T20:02:21Z")

</div>

Yes, that’s ok. Please wait like 5 minutes before sending the log.

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 4, 2019, 8:21pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/349 "2019-02-04T20:21:13Z")

</div>

ok, disabled all apps except xiaomi and heimdall. restarted heimdall and waited 5 minh. then send diag 8f3e0462-1f8f-40b3-aa85-103c359aee1a

---

<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:** [February 4, 2019, 8:32pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/350 "2019-02-04T20:32:59Z")

</div>

This log makes it a bit clearer, no devices are enumerated. I do see disarming and arming with a 10 second delay and I guess you triggered one motion sensor cause I see an error when it tries to find the alarm\_motion capability, but in an empty device.  
Could you try to disable the Xiaomi app and enable another one with devices and try again?

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 4, 2019, 8:43pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/351 "2019-02-04T20:43:25Z")

</div>

ok disabled all except philio and heimdall, restarted heimdall and waited 5min, then send diag c47da127-eca9-4068-8cf8-d85469e3f512

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 4, 2019, 8:49pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/352 "2019-02-04T20:49:31Z")

</div>

one more diag, forgott to enable device in heimdall 345d4979-646e-4a1d-a882-f63781fd7cdb

---

<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:** [February 4, 2019, 8:52pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/353 "2019-02-04T20:52:46Z")

</div>

Yeah, I just saw the second one come in. Unfortunately there is no device enumeration in these logs either so it seems to me it’s not app related.  
I’ll have to give the code between the initialisation and enumeration a good look and I will get back to you because I’m a little bit out of idea’s at the moment. This won’t be today, I’ll do my best to report back tomorrow.

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 4, 2019, 8:54pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/354 "2019-02-04T20:54:10Z")

</div>

thanks, I wait for your answer 🙂 It woul’d be great to have this working!

---

<div class="post-metadata">

**Author:** ![Rickp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rickp/32/9466_2.png) [@Rickp](https://community.homey.app/u/Rickp)\
**Post date:** [February 5, 2019, 11:53am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/355 "2019-02-05T11:53:53Z")

</div>

In the deleted post above yours I had the same thing going on with my coolcam door sensors and pirs. Working fine except in heimdall, with no reports in the last 24 hour. This was since the coolcam app updated 5 days ago. Rebooting didn’t help. I “fixed” mine by going to app and rebooting the coolcam app and after that rebooted the heimdall app. Working like a charm again.

Side note, I’m still on honey 1.5.

---

<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:** [February 5, 2019, 7:25pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/356 "2019-02-05T19:25:37Z")

</div>

I think the app crashed here.  
I noticed a flow wasn’t working so I checked the flow and the Heimdall-card was ‘unavailable’.  
Went to the app-settings and it was marked with a paused symbol.  
After restarting the app flowcis ok again.  
Made a report: 4e70d4c1-234a-4c55-8f10-552793fc99ac

---

<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:** [February 6, 2019, 7:21am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/357 "2019-02-06T07:21:55Z")

</div>

@Krosso I’ve been going through the code trying to figure out what is happening but I’m not sure yet. The first step (init) is printed in the log and the second step is reading settings from Homey’s memory. That doesn’t print anything to the log, but there’s also no error so I have to assume that part is working well. After that the devices are enumerated which should be logging plenty but that never happens.  
2 things can happen, some weird situation in which _ **Heimdall** _ crashes -\> that should be visible in the logs plus you wouldn’t be able to use the app afterwards but you can.  
So I think _ **Heimdall** _ gets into a loop waiting for a device to become ready (that part does not log anything unfortunately)  
I’d like to see an overview of your devices. Can you please go to [https://developers.athom.com](https://developers.athom.com) and login. Then select _Tools_ - _API Playground_ which will lead to this screen:

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

Next remove the `//` in front of `Homey.devices.getDevices({ online: true });` and click _RUN_  
Now wait a little and copy the full response in a text file and mail it to me. I’ll PM you my email address.

---

<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:** [February 6, 2019, 7:24am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/358 "2019-02-06T07:24:17Z")

</div>

@Fire69 unfortunately the log you sent contained no information so I can’t look into it, sorry.

---

<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:** [February 6, 2019, 7:30am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/359 "2019-02-06T07:30:46Z")

</div>

Hm, too bad. I’ll keep an eye on it and try a new report if it should happen again.

---

<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:** [February 6, 2019, 11:45am UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/360 "2019-02-06T11:45:06Z")

</div>

@Krosso, thanks for the log, found the problem.

You have 4 devices that are not ready. If you open the devices.txt you sent me and search for `"ready":NULL` you can find which are. Resolving that problem is one thing, _ **Heimdall** _ handling that in a decent way is another.

_ **Heimdall** _ has code to wait for a device to become ready, this is to make sure that when your Homey reboots and all apps start _ **Heimdall** _ doesn’t finish enumerating devices before apps that support those devices are fully started.  
Unfortunately your devices never reach the ready state so _ **Heimdall** _ never finishes enumerating.

I’ve now made a change in _ **Heimdall** _ where it will wait a maximum of 10 seconds on a device to become ready and then moves to the next one, so 1 faulty device can not prevent _ **Heimdall** _ from starting. When this happens a line is written to the apps log and to the **History** which can be checked on the **Dashboard**

This does however creates a problem to be fixed: what if a device becomes ready after it has been skipped by the enumeration process?  
I’m not yet sure how I will handle that, I’ve several options for it, but in the mean time I will release the version with the dirty fix to the app store so you can use the app.  
(Seeing the number of installs and the number of reports this error is statistically not significant enough to not release this version, \< 0.1%)

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 6, 2019, 12:06pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/361 "2019-02-06T12:06:53Z")

</div>

Hello

Thanks for checking this

When do you think the new version is out in app store?

Meanwhile…

There is 3 remote controlls and 1 media streaming unit that is not ready  
L

I can try to remove these, then it shoul’d work with the present version or?

/Regards Per

---

<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:** [February 6, 2019, 12:27pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/362 "2019-02-06T12:27:28Z")

</div>

No problem.

I really can’t tell you when the new version will be available. Someone at Athom will have to approve it before I can publish it, sometimes that takes an hour, sometimes it takes several days.

Yes, If you remove the devices it should work, disabling the apps that make them available will not work, that can actually be a cause of the enumerating not completing in the current version.

Btw, I’ve created an issue on Github for me as a reminder and for others to be informed about the progress of the definitive fix for the enumerating process: [https://github.com/daneedk/com.uc.heimdall/issues/34](https://github.com/daneedk/com.uc.heimdall/issues/34)

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 6, 2019, 12:45pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/363 "2019-02-06T12:45:38Z")

</div>

Ok, if it is not out before tomorrow, I try removing the not ready devices and do some tests  
J

Thanks again

/Regards Per

---

<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:** [February 6, 2019, 3:35pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/364 "2019-02-06T15:35:53Z")

</div>

New version published

> ## Version 2.0.7
> 
> - Improved device enumeration

This update fixes a problem where a device is not in ready state during the start of _ **Heimdall** _ and never becomes ready.  
Now _ **Heimdall** _ will move on to the next device after 10 seconds. This means it will take longer for _ **Heimdall** _ to start and any sensor that becomes available after the app start will not be usable. A fix for the latter will be in the next version. Seeing the number of installs and the number of reports this error is statistically not significant enough to not release this version, \< 0.1%

@Krosso, please let me know if this version fixes the problem you are having.

---

<div class="post-metadata">

**Author:** ![Krosso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krosso/32/5434_2.png) [@Krosso](https://community.homey.app/u/Krosso)\
**Post date:** [February 6, 2019, 7:48pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/365 "2019-02-06T19:48:51Z")

</div>

The new version fixed my problem and now heimdall is working for me 🙂  
Thanks for fast response!!

---

<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:** [February 6, 2019, 7:57pm UTC](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/366 "2019-02-06T19:57:54Z")

</div>

I’m glad its working for you now!

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

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