# \[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:** 1

<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:** [October 28, 2022, 8:39am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/1 "2022-10-28T08:39:37Z")

</div>

# Insight Trends

With the help of Homey’s insightful features, you can view all sensor measurements and their historical evolution. Take it a step further and do more than just observe the insights; act accordingly or even glimpse the future a little.

 ![xlarge](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/9586952c12df8c8cc846944c5040863490a82d51.png)

You can choose an insight (a device and a capacity, such as the outside temperature), as well as a timeframe to analyze. The outcomes will then be computed as follows:

- **Trend**  
a number between -1 and 1 that indicates whether the sensors’ measurements are increasing or decreasing (and by how much/slowly). For instance, a score of 0.75 indicates a sharp upward trend, while -0.1 denotes a mild negative trend.
- **Min/max**  
the smallest/largest value found within the timeframe
- **Average**  
the average value across all data points (arithmetic mean)
- **Median**  
If all values were sorted and you took the middle value, it would be the median.
- **Percentile**  
Passing in 50% as an argument will return the median, while 25% and 75% will return the first and third quartiles respectively.
- **Standard deviation**  
a measure of how “spread out” the data set is.
- **Number of used data points**  
The number of measures in the dataset. This can help assess how reliable the results presented above are. Important: A larger timeframe may not contain a larger dataset than a smaller one. Since Athom decreases the data points over a longer timespan.

### Links

- [Insight Trends Reloaded on Homey Store](https://homey.app/a/com.spkes.insightTrendsReloaded)
- [Insight Trends Reloaded on GitHub](https://github.com/spkesDE/com.spkes.insightTrendsReloaded)

### Feedback / Bugs

Any requests should be made in this thread or in the [issues area on Github](https://github.com/spkesDE/com.spkes.insightTrendsReloaded/issues)

### Would you like to buy me a coffee ☕ or a beer? 🍺

Feel free to [donate](https://www.paypal.com/paypalme/spikes022) to me for my work 🙂 It’s highly appreciated!

#### Check out my other apps

- [[APP][Pro] Telegram](https://community.homey.app/t/66622)
- [[APP][Pro] Insight Trends Reloaded](https://community.homey.app/t/71307)
- [[APP][Pro] Temporary Variables](https://community.homey.app/t/67482)
- [[APP][Pro] VeSync (Levoit)](https://community.homey.app/t/71369)
- [[APP][Pro] Weather by Open-Meteo](https://community.homey.app/t/76977)
- [[App][Pro] Tasmota MQTT](https://community.homey.app/t/app-pro-tasmota-mqtt/26164)

(This app idea is based on the app from [MadMonkey87](https://community.homey.app/t/app-pro-insight-trends-abandoned/41992), but rewritten and republished by me)

---

<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:** [October 28, 2022, 8:40am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/2 "2022-10-28T08:40:00Z")

</div>

## Changelog

> ### v1.0.0
> 
> - Release of Insight Trends Reloaded

---

<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:** [October 28, 2022, 8:40am UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/3 "2022-10-28T08:40:16Z")

</div>

Reserved for future stuff.

---

<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:** [November 2, 2022, 1:15pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/4 "2022-11-02T13:15:08Z")

</div>

The app just got released! 🎊🎉

---

<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:** [November 2, 2022, 4:37pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/5 "2022-11-02T16:37:36Z")

</div>

Just out of curiosity, is it compatible with previous version or it behaves as fully new app so it is required to reset everything ? Regardless of answer, thank you very very much for revival 🙂

**update** OK, fully new app, flows need to be reworked\*

\*\* update 2 \*\* Do I miss something ? 🙂

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/7/37f1dfa9560e70e0519c6c1d11affc7f665da761.png)

---

<div class="post-metadata">

**Author:** ![JeeHaa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeehaa/32/29849_2.png) [@JeeHaa](https://community.homey.app/u/JeeHaa)\
**Post date:** [November 2, 2022, 5:53pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/6 "2022-11-02T17:53:42Z")

</div>

Thanks for the updated app! One Q: is it possible to create an advanced user setting for “significant figures” to round tag values? I understand this may also be possible using math functions, but it would be much more convenient to have one global setting for it (especially for logging).

For example “significant figures= 3”: 1.234567 → 1.23, or 0.0056789 → 0.00568.

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

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

---

<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:** [November 2, 2022, 7:05pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/7 "2022-11-02T19:05:48Z")

</div>

> [@Sharkys](#):
>
> **update** OK, fully new app, flows need to be reworked\*

Yes. This app has a new app id. It’s not possible to get the same app id once the app got deleted from the store.

> [@Sharkys](#):
>
> \*\* update 2 \*\* Do I miss something ? 🙂

I don’t know. It’s working fine for me.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/f/7fdb9ef574e20177f04a3afc2fbe2c3aae03e8e8.png)

> [@JeeHaa](#):
>
> One Q: is it possible to create an advanced user setting for “significant figures” to round tag values to digits?

I can add a settings for that in the settings-page. But it will take some time.

---

<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:** [November 2, 2022, 7:29pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/8 "2022-11-02T19:29:57Z")

</div>

> [@spkesDE](#):
>
> I don’t know. It’s working fine for me.

Thank you, I sent you Diag. report if it helps - as all other apps works, so not sure where is the problem, I even restarted your app. I guess it’s not conflicting with old Insights trends I’m still using.

---

<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:** [November 2, 2022, 7:42pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/9 "2022-11-02T19:42:16Z")

</div>

Maybe reinstall the app. This is a error on homey side not on mine. The diagnostic report looks fine.

---

<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:** [November 2, 2022, 7:46pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/10 "2022-11-02T19:46:19Z")

</div>

OKi, reinstall didn’t help - let’s see if someone else will report the same. Thx.

---

<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:** [November 2, 2022, 7:48pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/11 "2022-11-02T19:48:54Z")

</div>

It it possible that you use normal flows? Not adv. flows?

---

<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:** [November 2, 2022, 7:52pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/12 "2022-11-02T19:52:38Z")

</div>

Ups, I didn’t notice it’s Adv. flow compatible only. Indeed, I tried to set/fix old Normal flows. So it really appear in Adv. flows but not in Normal flows.

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

---

<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:** [November 2, 2022, 7:53pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/13 "2022-11-02T19:53:32Z")

</div>

Yes, because I used tokens for the cards. I would have to add two more cards for normal flows.

---

<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:** [November 2, 2022, 7:58pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/14 "2022-11-02T19:58:10Z")

</div>

OK, because I saw it appear in the When, And … but not Then, so it was confusing. But if this is Adv. flow compatible only, everyone would have to rework their flows, which is a bummer. Anyway, maybe I’m the only case like this. Thank your for your replies.

---

<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:** [November 2, 2022, 8:04pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/15 "2022-11-02T20:04:48Z")

</div>

I’ll add the other two cards soon. It’s not much work.

---

<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:** [November 2, 2022, 8:36pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/16 "2022-11-02T20:36:21Z")

</div>

Added support for normal flows to the [current test version.](https://homey.app/a/com.spkes.insightTrendsReloaded/test/)

@Sharkys now you have the then card on normal flows 🙂

---

<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:** [November 2, 2022, 8:47pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/17 "2022-11-02T20:47:17Z")

</div>

Going to test, thank you 🙂

---

<div class="post-metadata">

**Author:** ![JeeHaa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeehaa/32/29849_2.png) [@JeeHaa](https://community.homey.app/u/JeeHaa)\
**Post date:** [November 5, 2022, 5:52pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/18 "2022-11-05T17:52:33Z")

</div>

@spkesDE I am having an issue with min/max. I simply want to calculate the energy consumption in the last 24h.

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

In Insights I see: Min=112, max =119

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f7773cd9ce81d512f63ea2113824a41477ecb9cc.png)

However, min is not correct:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee984fdd34db201b9b5c5d7e6cc4fd9ac091b750.png)

The actual value 116.7 was measured around 12:40 today (about 6h ago).  
Using 24 hours for the calculation gives the same result, and even 12h as well. 🤔

Any clue what could cause this?

---

<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:** [November 5, 2022, 7:13pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/19 "2022-11-05T19:13:54Z")

</div>

Hey,

there was a problem with my code. Forgot to add the timespan last 24h inside the code.  
It has been fixed with the [current test version](https://homey.app/a/com.spkes.insightTrendsReloaded/test/).

---

<div class="post-metadata">

**Author:** ![JeeHaa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeehaa/32/29849_2.png) [@JeeHaa](https://community.homey.app/u/JeeHaa)\
**Post date:** [November 5, 2022, 7:58pm UTC](https://community.homey.app/t/app-pro-insight-trends-reloaded/71307/20 "2022-11-05T19:58:01Z")

</div>

That explains it then. 🙂  
Works as expected now, thanks!

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