# \[APP\]\[Pro\] Insight Trends Reloaded

**URL:** <https://community.homey.app/t/app-pro-insight-trends-reloaded/71307>\
**Category:** Apps\
**Tags:** app, tools, insights, homey-pro\
**Created:** [October 28, 2022, 8:39am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307 "2022-10-28T08:39:36Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)\
**Post date:** [May 15, 2023, 12:30pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/161 "2023-05-15T12:30:29Z")

</div>

Responded to SpkesDe questions earlier today!

/Johan

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 15, 2023, 12:51pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/162 "2023-05-15T12:51:09Z")

</div>

“got a lot” is not much specific

---

<div class="post-metadata">

**Author:** ![Florian\_Schmidbauer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/florian_schmidbauer/32/30157_2.png) [@Florian\_Schmidbauer](https://community.homey.app/u/Florian_Schmidbauer)\
**Post date:** [May 15, 2023, 1:21pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/163 "2023-05-15T13:21:10Z")

</div>

Hi spkesDE,

got the same problem since update to 1.3.5.  
1.3.6 did not much of a dfference.

on some trend i get consistently

- Network request failed
- Invalid type for token expected “number” but got “null”
- Cannot read properties of undefined (reading “Y”)  
but some trends are working (beside that the last value is zero)

Homey Pro E19 with zwave (25x), zigbee (41x), wifi (9x), ble (3x) devices, MQTT Broker/Hub for HA Connection.  
System Load is high but devices are responding fine, flows are running fast, no problems with right click on the canvas.

Debug Report is 2a87b880-3133-44a5-b588-88c6454c0e16

Thanks in Advance,  
Florian

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [May 15, 2023, 3:28pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/164 "2023-05-15T15:28:04Z")

</div>

Thanks for your time!

It is a homey 2023. Around 250 devices and load (average of ~20%. RAM free ~5GB)

A reboot of the app and ~1 minute wait time is working but after some hours it will not give any results if I search in the app.

Any idea what I can do to solve this?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 15, 2023, 5:09pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/165 "2023-05-15T17:09:33Z")

</div>

Hey, you can’t have problems with 5GB free ! 🙂

Now seriously, the problem in your case is similar to mine - Insights reloaded first need to load up all possible combinations of devices and measured values with lookup to devices itself due to the API change. spkesDE implemented cache for this purpose but seems when it’s building, it is either taking too long or app is “killed” due to the CPU/memory constraints defined by Athom - in either way, if you try later, the list shall load correctly for another 1 hour or so until it expires. That’s theory… in any way, you shall see no other problems with Insight reloaded and the app shall be still working fine, isn’t it?

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [May 15, 2023, 5:41pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/166 "2023-05-15T17:41:42Z")

</div>

Hi! Why is it not possible to have that amount of RAM free?

 ![IMG_2054](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6f847648ecd6e0c9e2530c4fa20e537dea56e87.jpeg)

Edit: Sorry, was Reading it wrong. ☺

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 15, 2023, 6:03pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/167 "2023-05-15T18:03:22Z")

</div>

Probably while ‘standard’ Pro 2023’s have 2GB RAM 😬 So I think it is nice and more clear to everyone when you mention the total available RAM as well 😊

---

<div class="post-metadata">

**Author:** ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)\
**Post date:** [May 15, 2023, 7:17pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/168 "2023-05-15T19:17:53Z")

</div>

Not sure what you are after, but I had a quick look and I’ve got the following:

58 apps

108 switches/sensors/info buttons

Variables, estimate that I’ve got about 100 of them, maybe more. (Logic and BLL)

Got 1 GB of memory, 1 % (12 MB) free memory according to SysInternals app.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 15, 2023, 7:42pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/169 "2023-05-15T19:42:00Z")

</div>

> [@Johan\_Persson1](#):
>
> 58 apps
> 
> 108 switches/sensors/info buttons
> 
> Variables, estimate that I’ve got about 100 of them,

That’s the overview script would provide you I posted above.

> [@Johan\_Persson1](#):
>
> Not sure what you are after

It’s about to understand whether Insights reloaded hit the same problem (Homey limits) like in other reported cases, also read my previous comment.

---

<div class="post-metadata">

**Author:** ![jonorland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonorland/32/16469_2.png) [@jonorland](https://community.homey.app/u/jonorland)\
**Post date:** [May 15, 2023, 7:55pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/170 "2023-05-15T19:55:55Z")

</div>

> [@spkesDE](#):
>
> Couple of questions:
> 
> - HP 19 or 23
> - How big is your smart home
> - How much the Homey Pro is maxed out?
> 
> I think I know what the cause is, but I don’t have a solution to it yet.

I have a HP19 and just now the loadavg are [0.35,0.65,0.81].  
Homey Version 8.1.3  
This are the errors I get when logging to Simple Log.

- Error Missing token for argument
- Error: uri\_disabled
- Error ACK TIMEOUT App failed to respond in 90000ms

---

<div class="post-metadata">

**Author:** ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)\
**Post date:** [May 15, 2023, 10:45pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/171 "2023-05-15T22:45:46Z")

</div>

Ok, Sharkys! Here we go.

--------------- Homey Pro Overview v1.11 --------------

Homey name: Homey Pro

Homey version: 8.1.3

Homey model: Homey Pro (Early 2019) (2 core(s))

Uptime: 373135 (4 days, 7 hours, 38 minutes, 55 seconds)

Update available: No

------------------ Main ---------------------

1 Users (1 Owner, 0 Manager, 0 User, 0 Guest)

55 Apps (54 Stable, 0 Test, 1 Development/Community Appstore, 5 SDKv2, 50 SDKv3, 1 Updateable, 0 Disabled/Crashed)

37 Zones

3 Notifications (Timeline)

98 Logic Variables (22 Boolean (Yes/No), 70 Number, 6 String)

82 Flows (0 Broken, 27 Disabled)

34 Advanced flows (0 Broken, 3 Disabled)

4 Alarms (2 Enabled)

15 HomeyScript scripts (2 Token/Tag)

99 Better Logic Variables (10 Boolean (Yes/No), 83 Number, 6 String)

----------------- Devices -------------------

34 Virtual devices

0 Infrared (database) devices

14 Z-Wave devices (9 Unsecure, 0 Secure (S0), 5 Secure (S2 Authenticated), 0 Secure (S2 Unauthenticated), 11 Router, 3 Battery, 0 Unreachable, 0 Unknown)

3 Zigbee devices (0 Router, 3 End device)

92 Other devices

143 Total devices

——————————————————— ✅ Script Success

↩ Returned: “Overview finished”

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [May 16, 2023, 7:10am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/172 "2023-05-16T07:10:51Z")

</div>

So it looks like there are two issues.

Issue one: the API changes from Athom messed up your flows. There is nothing I can do about it. You have to reselect the insights to make them work again.

Issue two: The caching makes your homey temporary API locked since there are too many API calls in a short amount of time (for each Insight, an extra API call). This is an issue that I’ll fix.

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [May 16, 2023, 7:40am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/173 "2023-05-16T07:40:38Z")

</div>

# [Test Version 1.3.8 is live](https://homey.app/a/com.spkes.insightTrendsReloaded/test/) 🎉

> ## Changes
> 
> - Improved caching function

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 16, 2023, 8:57am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/174 "2023-05-16T08:57:47Z")

</div>

Wow, I observe like 500% improvement in speed (the list get filled imminently) , hopefully others will see the same !

---

<div class="post-metadata">

**Author:** ![Florian\_Schmidbauer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/florian_schmidbauer/32/30157_2.png) [@Florian\_Schmidbauer](https://community.homey.app/u/Florian_Schmidbauer)\
**Post date:** [May 16, 2023, 8:58am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/175 "2023-05-16T08:58:16Z")

</div>

Hi spkesDE,  
Version 1.3.8 works on my homey. I’ve calculated workarounds for the last value is zero in my flows.  
Thanks a lot!  
Florian

---

<div class="post-metadata">

**Author:** ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)\
**Post date:** [May 16, 2023, 10:35am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/176 "2023-05-16T10:35:22Z")

</div>

Does not work on my homey!

ACK timeout…

80bc2cc8-b118-45cb-b962-62976e4c477b

 ![IMG_5275](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/4/c4a739110cfb746ad2898cbbc82c71a00a0650b5.jpeg)  
 ![IMG_2157](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/859f500175e8728b2c40dfb0cca46190b1f50176.jpeg)

---

<div class="post-metadata">

**Author:** ![Florian\_Schmidbauer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/florian_schmidbauer/32/30157_2.png) [@Florian\_Schmidbauer](https://community.homey.app/u/Florian_Schmidbauer)\
**Post date:** [May 16, 2023, 11:20am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/177 "2023-05-16T11:20:10Z")

</div>

have you replaced your trend-Cards?  
the trend fails if there are less than 2 datapoints reported  
i’ve noticed that all of my GEN24 Inverter Trends only have datapoints for every 5 minutes. (but the Fronius Homey app polls every 10 sec).

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/2/c2a4ca67d272b4b5822c22771a00e0bbcf5fc958.png)

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 16, 2023, 6:44pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/178 "2023-05-16T18:44:33Z")

</div>

> [@Johan\_Persson1](#):
>
> Does not work on my homey!
> 
> ACK timeout…
> 
> 80bc2cc8-b118-45cb-b962-62976e4c477b

Have you produced this diag for Insights reloaded, right ? Can you do that again please and report here again ? Just in case. Thx

---

<div class="post-metadata">

**Author:** ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)\
**Post date:** [May 16, 2023, 7:06pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/179 "2023-05-16T19:06:02Z")

</div>

Hi Sharkys!

I’ve installed the 1.2.0 version again, because Insight reloaded was not working at all.  
I could install the ‘faulty’ version again and produce a new diag.  
Can I install the 1.2.0 version right after the diag is produced or must I keep running for you to get your data?

/Johan

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 16, 2023, 7:09pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/180 "2023-05-16T19:09:46Z")

</div>

> [@Johan\_Persson1](#):
>
> Can I install the 1.2.0 version right after the diag is produced or must I keep running for you to get your data?

Just install the latest version, run few flows where you get the errors, produce diag, share the code here (just to ensure it will get delivered to developer) and then install back 1.2.0.  
Btw, I have tried to replicate your error on HP23 but didn’t succeeded, but HP23 and HP19 are different products…

[Previous page](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307.md?page=8)

[Next page](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307.md?page=10)
