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

**URL:** <https://community.homey.app/t/app-pro-insight-trends-abandoned/41992>\
**Category:** Apps\
**Tags:** app, tools, insights\
**Created:** [January 29, 2021, 11:34am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992 "2021-01-29T11:34:32Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [March 23, 2021, 10:23pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/21 "2021-03-23T22:23:29Z")

</div>

Great that you’re back on board, @MadMonkey!  
I don’t use Insights myself but it’s the first topic where I read that you’re back and that the issues are resolved.  
Hope to see you a lot, here in the Community!

---

<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:** [March 25, 2021, 12:26pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/22 "2021-03-25T12:26:27Z")

</div>

@MadMonkey if you have some conflict with Athom, you are always welcomed on [https://store.homey.community/](https://store.homey.community/) 😉

---

<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:** [March 25, 2021, 3:55pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/23 "2021-03-25T15:55:02Z")

</div>

Echo echo 😛

> [@Peter\_Kawa](#):
>
> You can publish @ [Community Store](https://store.homey.community/) without Athom interfering,

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 2, 2021, 6:52am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/24 "2021-04-02T06:52:52Z")

</div>

I have an issue

I have one flow that calculates a few trends, f.e. humidity in a room “every 5 min THEN calculate trend humidity”  
I have another flow that triggers when this trend is calculated and then updates a logic variable to the calculated value (WHEN “trend calculated humidity” THEN set varHum1 to average)

I have three sets of these (three rooms, three sensors, three vars)

2 of them don’t work anymore, they just stopped working, and it seems they are not triggered anymore by the “WHEN trend calculated”. I just tested these two flow (with a testvalue) and they are now stuck on the testvalue and are not updated anymore, eventhough the “calculated trend” flow runs every few minutes.  
The 3rd one still works…

I already reset the flowparameters, but the problem stays.

Picture of the insights of the three vars and the moment two stopped updating

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/83c4dfdbb7a2981fd5b0756753b0d4b64f7ccaab.png)

btw the sensors work fine, humidity is going up and down.

---

<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:** [April 2, 2021, 11:08pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/25 "2021-04-02T23:08:15Z")

</div>

Trying to start somewhere, and trying to find the source:  
Aren’t the flows disabled by Homey? Can happen because of too many triggers in an amount of time.  
Do you have Papertrails log cards added to every flow?

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 3, 2021, 5:49pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/26 "2021-04-03T17:49:52Z")

</div>

Didn’t know that. I see that some flows are greyed out, but they are not disabled. When I disable a flow it’s greyed out but it’s not the same grey.  
So it might be that’s the cause, but I’m not aware that my flows trigger that often

I have one flow that calculates 8 insights every 1 minute. And then flows that should trigger to (one of) these 8 calculations

I found here that when a flow triggers more than 10x /sec it gets disabled.

> [@Flows are disabled](https://community.homey.app/t/flows-are-disabled/11324):
>
> I have a couple of flows that either calculate a value every minute and store it in a variable, or change a setting of a device based the value determined in that calculation. Apparently, Homey doesn’t like flows that trigger to often, as they get disabled by Homey after a while. Any idea how to prevent this, or have these flows restarted automatically?

I don’t think my humidity flows are triggered that much?

How do you enable such a flow?

Also I don’t get notifications (like in that topic in the homey Home page screenshot) of flows being disabled bacuse they fire too often.

okay, just found out that on the old Homey flow webpage you can see how often a flow is triggered. The 3 flows that I use to calculate avarage humidity (3 different rooms) seem to be triggered 9000, 12000 and 15000 times since I started using Insight Trends (about 1,5 weeks maybe??)  
Strangly, the 15000 times flow still works, the other two don’t.

But still:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/bef7574cd7552cb5031da3a743532f0ce8c37c5b.jpeg)  
and then 3 of these  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bc52698693c4fb7b894ab6be84b08e55e0428ef.jpeg)

Come to think of it: the 15000, 12000 and 9000 is the pattern in which they stopped working (see screenshot above).  
15000/3600 = only 4 days, so the seem to trigger only once a minute

(btw I adjusted the trends flow to calculate every 5 minutes a day or two ago)

---

<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:** [April 3, 2021, 10:31pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/27 "2021-04-03T22:31:13Z")

</div>

> [@zakraket](#):
>
> But still:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/bef7574cd7552cb5031da3a743532f0ce8c37c5b.jpeg)

I’m busy, so one hint, try to build a delay after the 1st card. 2nd card 1sec. 3rd card 2sec, 4th card 3sec and so on

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 4, 2021, 7:00am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/28 "2021-04-04T07:00:21Z")

</div>

tnx for the help

I tried the following options:

- added a delay to every step in the “trends” flow (1, 2, 3 etc seconds)
- disabled the trends flow and run it manually (it was already on a 5 min interval for a few days)
- restarted homey
- restarted insights app
- disabled the 3 humidity flows (and some other humidity flows)
- created a new humidity flow for one sensor

After restarting homey alle flows display the normal enabled icon but are greyed out after a minute (I assume Homey is still starting/restarting processes when I see the normal icon)

Nothing makes any difference, and all flows still are greyed out

Now I found the following:

> [@Flow icons in mobile app](https://community.homey.app/t/flow-icons-in-mobile-app/7097/9):
>
> First 2: Green play button, not faded. Flow enabled, and is able to run, by for example pressing the play icon or from favorite flows. Middle 2: Grey play button, not faded. Flow enabled, and is not able to run by pressing the play icon, because the flow needs/uses a value of the trigger card. Last 2: Green play button, faded to 50% opacity. Flow (trigger) disabled, and is able to run, by for example pressing the play icon or from favorite flows. And 1 more situation not shown: Gray p…

The flows are grey because they cannot be started manually (so no green playbutton)

I should add that the other trends that are calculated (zonkracht) in the Trends flow and put into vars (f.e. ‘zonkracht’) still work, and have the same flowstatus. So the Trendsflow calculates, and other flows trigger to that calculation, no problems there

btw, the insights app uses around 15mb memory (20mb at first)

---

<div class="post-metadata">

**Author:** ![BartOverdevest](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bartoverdevest/32/38783_2.png) [@BartOverdevest](https://community.homey.app/u/BartOverdevest)\
**Post date:** [April 4, 2021, 9:55pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/29 "2021-04-04T21:55:52Z")

</div>

Thank you for developing this app, much appreciated.

1. I’m using it to report my average weekly weight, including if the trend is positive or negative.  
Would it be possible to reduce the number of digits? my average weight is now reported via the tags with 15 digits behind the comma. Same for the trend.  
How can i beautify this ? I would like to restrict this to 1 digit only.

2. When i put the Insight Trend as an action card, why are the calculated tags not available in the action cards after (in the same flow). Now i need to use a 2nd flow

3. Can you give the formula for the calculated trend?

---

<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:** [April 4, 2021, 11:37pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/30 "2021-04-04T23:37:08Z")

</div>

> [@zakraket](#):
>
> The flows are grey because they cannot be started manually (so no green playbutton)

Very confusing, but, “Grayed out” means:  
Flow = disabled  
OR  
To test this flow, an imaginary logics value has to be entered manually after pressing the TEST button (The trigger card is replaced with the Test button, so the local variables aren’t available).

With these commands in post #1 of the link below, you can retreive flow statusses:

> [@Developer Web API Playground - Notes of geeky oneliners](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392):
>
> For the developers and geeks that want to investigate their Homey’s config. Run from [Homey Developer Tools](https://developer.athom.com/tools/api-playground) I write this to remember what I did but also to inspire others that I know are better JS developer that can do more magic. (and hope they share to inspire!) WARNING: Be Careful! you can ruïne your config by deleting the wrong objects from there! Only use it if you know what you are doing ! // Get Trigger counts for Flows Homey.flow.getFlows().then(f =\> Object.values(f).reduce((r,b)=\>Obj…

---

<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:** [April 4, 2021, 11:55pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/31 "2021-04-04T23:55:46Z")

</div>

> [@BartOverdevest](#):
>
> 1. Would it be possible to reduce the number of digits? I would like to restrict this to 1 digit only.

Yes you can!

- Add a variable, type Number  
I named it ‘Insights\_Average\_Saved-.XX’  
This stores the outcome of the Insights calculation, AFTER a logics calculation has been made.  
To accomplish this, add a logics card to the THEN part, type “calculate a value”  
The formula you need is: `{{round([TagOfVariableFromInsights],1)}}`  
This rounds the number to 1 digit.  
To view more, or less digits, alter the number at the end:  
`..... ,2)}}` rounds to 2 digits  
`..... ,0)}}` rounds to round numbers
- Important: delay the following card with a few secs, so the outcome of the calculation is available and can be used with the next card.

Screenshot of creating the “calculate a value card”:

 ![Screenshot_20210405-014507_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e09272c70175fbd1964f55efc2d860f5821de9c8.jpeg)

[Example flow](https://homey.app/f/BbHhvy)

> [@BartOverdevest](#):
>
> 1. When i put the Insight Trend as an action card, why are the calculated tags not available in the action cards after (in the same flow). Now i need to use a 2nd flow

It’s b/c of the flow structure as it is.  
So 2 steps are needed.

1. Go “calculate trend”
2. IF “as soon as ‘calculate trend’ outcome is available”, do something

It’s explained in the action card:

 ![Screenshot_20210405-021814_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/07479d55a5d0c6db5928d7acaf41738f7e4244b5.jpeg)

---

<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:** [April 5, 2021, 12:39am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/32 "2021-04-05T00:39:47Z")

</div>

> [@BartOverdevest](#):
>
> 1. Can you give the formula for the calculated trend?

[Here’s the code](https://github.com/MadMonkey87/Homey.InsightTrends)

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 6, 2021, 6:49am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/34 "2021-04-06T06:49:10Z")

</div>

Found the problem. My 2 humidity calculations stopped working because (at least for the 2nd time) somehow the same sensor is put in the 3 calculated trends. I **know** I have rechecked and re-set the correct sensors a few before (I know because selecting a sensor from the long and unsorted list of device-values is quite tedious and I did this last weekend when trying to fix the problem), and now all three were _again_ set to “woonkamer”. So “badkamer” and “slaapkamer” did not trigger…

Also, the vars in which I put the calculated values in came to a halt in the middle of the night so I know I did not change a thing  
See here [https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/83c4dfdbb7a2981fd5b0756753b0d4b64f7ccaab.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/83c4dfdbb7a2981fd5b0756753b0d4b64f7ccaab.png)

Might it be caused by the fact that before all three were calculated at the same time (no pauses) and the app somehow confuses three sensorvalues?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0a4306ffa97e22a0157ad7456fb8003ec0fd3ffe.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:** [April 6, 2021, 11:14am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/35 "2021-04-06T11:14:24Z")

</div>

@MadMonkey I see no GitHub section anywhere, would it be please possible to fix filter when using / selecting trends ?

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

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 8, 2021, 7:18am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/36 "2021-04-08T07:18:19Z")

</div>

And a sorted list (seems to be sorted to “device added” date)

---

<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:** [April 8, 2021, 7:22pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/37 "2021-04-08T19:22:16Z")

</div>

@zakraket @Sharkys here you can do a request / submit an issue: [GitHub - MadMonkey87/Homey.InsightTrends](https://github.com/MadMonkey87/Homey.InsightTrends)

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [April 9, 2021, 9:30am UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/38 "2021-04-09T09:30:30Z")

</div>

Last update now gives sorted devices list, great improvementt!

---

<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:** [April 11, 2021, 8:55pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/39 "2021-04-11T20:55:07Z")

</div>

I created a ventilation function which uses Insight Trends.  
It switches while using the speed of the rising/falling values, not with the values themselves.

> [@Cooker hood / kitchen ventilation control, based on the speed of changing temp. + humidity values](https://community.homey.app/t/cooker-hood-kitchen-ventilation-control-based-on-the-speed-of-changing-temp-humidity-values/46128):
>
> The automatic cooker hood/ ventilation This doesn’t measure an actual sensor value, but the speed at which a sensor value changes in time. Natural temperature changes, like the heating turning on @ day, off @ night, or natural humidity changes are ignored. Because they change slowly in time. This is only one way to go, and this can be extended with f.i. a 2 or 3 gang relais, or by adding a vibration sensor under the cooker. I like to hear your ideas and improvements, or how to achieve some…

Also in Dutch:

> [@Afzuigkap/Ventilatie sturing, op basis van de snelheid van wijzigingen in temp+vocht waardes](https://community.homey.app/t/afzuigkap-ventilatie-sturing-op-basis-van-de-snelheid-van-wijzigingen-in-temp-vocht-waardes/46123):
>
> De automatische afzuigkap / keukenventilatie Het meet niet een bepaald niveau, maar de snelheid waarop een sensor waarde verandert. Normale temperatuurschommelingen (bijv. CV aan/uit) worden genegeerd, net als een natuurlijk veranderende vochtigheidsgraad. Dit is slechts “een” manier, en kan nog uitgebreid worden met bv een meer-standen schakeling. Ideetjes en verbeteringen welkom! [“Bewijs” filmpje](https://youtu.be/EY9P4AYMYwI) Benodigdheden: een temperatuur + vochtsensor, ik heb de Aqara combisensor gebruikt; senso…

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [April 13, 2021, 4:22pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/40 "2021-04-13T16:22:05Z")

</div>

is it possible to calculate betterlogic numbers that are also stored in insights?

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [April 13, 2021, 4:57pm UTC](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992/41 "2021-04-13T16:57:44Z")

</div>

Yes

[Previous page](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992.md?page=1)

[Next page](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992.md?page=3)
