# \[APP\]\[Pro\] Splines \[Abandoned\]

**URL:** <https://community.homey.app/t/app-pro-splines-abandoned/40884>\
**Category:** Apps\
**Tags:** app, tools, flow\
**Created:** [January 11, 2021, 11:44am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884 "2021-01-11T11:44:39Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 16, 2021, 7:10pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/41 "2021-01-16T19:10:57Z")

</div>

Which query interval do you use?  
If you use e.g. an interval of 15 minutes, the X values should (theoretically) also be set in an interval of 15 minutes.  
Example (following your example):  
0/50 - 6/100 - 6,25/100 - 19/100 - 24/50

The 2 points at approx. 19 o’clock are not necessary. One point should be enough.

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 16, 2021, 7:33pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/42 "2021-01-16T19:33:04Z")

</div>

> [@DirkG](#):
>
> Which query interval do you use?

I query every 15 minutes

> [@DirkG](#):
>
> If you use e.g. an interval of 15 minutes, the X values should (theoretically) also be set in an interval of 15 minutes.

If I understand correctly, that should not matter, from everything I read, time based should be 24 (hours). And then the query will start when ever you need it, which is the whole intention of the Splines app anyway. I do use the timebased query card. The 24 value is only to show the number of hours, it could also be set to 1440 and using the time based query, it should move one X value every minute. So it will be a question of preference, and knowing the if you want to set a value at 13:15 it would translate to 13.25 in a X=24 Spline.

> [@DirkG](#):
>
> The 2 points at approx. 19 o’clock are not necessary. One point should be enough.

I think you are right, when looking at the Spline I had figured that out as will already. But was to lazy to really care. 😉

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 17, 2021, 11:21am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/43 "2021-01-17T11:21:43Z")

</div>

> [@Twan\_Veugelers](#):
>
> If I understand correctly, that should not matter, from everything I read, time based should be 24 (hours). And then the query will start when ever you need it, which is the whole intention of the Splines app anyway.

Yes, that is correct, this is also what I assume.

> [@Twan\_Veugelers](#):
>
> The 24 value is only to show the number of hours, it could also be set to 1440 and using the time based query,

Probably yes.

> [@Twan\_Veugelers](#):
>
> it should move one X value every minute

This is the shortest query interval you can get with a time-based flow (query every minute). But you have to distinguish between the self-defined query interval (every x minutes) and the calculation of the splines in the background.

Back to the query intervall and how to prevent values above 1.  
How should I explain it understandably?  
The problem is that the values are interpolated between 2 points (X/Y value). This is the reason why you get values greater than 1 (see Robert’s curve).  
If you set additional X/Y points in the upper part of the curve at the interval of the query, then it doesn’t matter if the interpolated curve goes beyond 1.  
I have tried to show this in the graphic. To make it easier to see I used a query interval of 2 hours. I hope this is understandable.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7d3cf56dd64cbf847feabfc2bd5667e12f5ac591.jpeg)

Note: Everything I have written here is based on assumptions. Therefore it would be helpful if @MadMonkey could make clear statements.

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 17, 2021, 12:13pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/44 "2021-01-17T12:13:00Z")

</div>

I’ll provide an update that allows you to define this behaviour:)

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 17, 2021, 12:16pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/45 "2021-01-17T12:16:37Z")

</div>

> [@Twan\_Veugelers](#):
>
> 0% dim level to the queri

The query completed trigger contains a tag with the result of the calcualtion. You should be able to use that in the dim card

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 17, 2021, 12:18pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/46 "2021-01-17T12:18:04Z")

</div>

> [@Twan\_Veugelers](#):
>
> the Y value

Thx, I’ll consider this!

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 17, 2021, 12:19pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/47 "2021-01-17T12:19:14Z")

</div>

> [@Twan\_Veugelers](#):
>
> ximu

Yes this is indeed an issue that will be fixed with the next release:)

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 18, 2021, 7:42am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/48 "2021-01-18T07:42:40Z")

</div>

@MadMonkey  
Philippe, I have installed test version 1.2.0 and can confirm that both the max value is respected and the number of digits set to 0 is working. I have not tested if respecting the low value is fixed.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 18, 2021, 1:55pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/49 "2021-01-18T13:55:01Z")

</div>

The calculation still seems to be incorrect. Or the flows are incorrect.

At about 14:40 the calculated value is 1 (see screenshot of the variable “SplineOGF\_Dimm”). According to the curve, however, the value should be about 0.94.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76bda9a30a9613d12c0029a56c87cf50071351eb.jpeg)

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

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

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

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 18, 2021, 5:38pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/50 "2021-01-18T17:38:46Z")

</div>

The UI is interpolated and has some tension that might not make it absolutely even. Just add another node if you really need exactly this value there

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 18, 2021, 6:02pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/51 "2021-01-18T18:02:24Z")

</div>

Okay no problem.  
Just to be sure, the calculated Y value won’t be greater than 1?

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [January 18, 2021, 9:05pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/52 "2021-01-18T21:05:43Z")

</div>

Installed Splines today as I hope to use it to vary Philips Hue bulb dim level and hue over a period of time. If I add a node is there a way to control where the node gets added? I ask because I decided to add one mid spline and it always goes where I don’t want and requires me to edit all the nodes.  
Another problem is that after a spline created and saved it cannot be found in the Query spline card.

---

<div class="post-metadata">

**Author:** ![Ton\_Meek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ton_meek/32/149_2.png) [@Ton\_Meek](https://community.homey.app/u/Ton_Meek)\
**Post date:** [January 18, 2021, 9:34pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/53 "2021-01-18T21:34:56Z")

</div>

@MadMonkey You have made a nice splines app. In some cases it is maybe an overkill. Is it an idea to add the option to use linear splines instead of cubic splines for (selected) line segments?

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 18, 2021, 9:53pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/54 "2021-01-18T21:53:47Z")

</div>

> [@Philip\_Montgomery](#):
>
> If I add a node is there a way to control where the node gets added? I ask because I decided to add one mid spline and it always goes where I don’t want and requires me to edit all the nodes.

Hi @Philip_Montgomery  
I can not figure out what you try to ask here.

You can totally control your Hue bulb.  
These are the steps to take.  
Create a spline that has X = 0 - 24 (24 hours), and Y = 0 - 1 (0 to 100%). With the Hue values you want to have throughout the day.

Then create a flow takes the query value at some period of interval (I use 15 minutes, but could be anything, timewise).  
Then create another flow, that starts from the splines query completed, then logic set #value to Spline Calculation Result.

Now you can use this logic value in any flow where you need it.

So basically you tell Homey in 1 flow to query the spline to calculate the value at that moment. And the second flow tells Homey that it should write the value into a logic when it has calculated a value.

> [@Philip\_Montgomery](#):
>
> Another problem is that after a spline created and saved it cannot be found in the Query spline card.

See above, if you start the second flow with Splines Query Completed xxxx the Then will contain the Spline Calculation Result.

These two very simple flows calculate the Temperature for my Hue GU10 spot:  
Flow 1, take Spline Calculation every 15 minutes:  
[https://homey.app/f/VWwvns/](https://homey.app/f/VWwvns/)

Flow 2, when Calculation is finished, write the value to a logic, and write the value to Simple Log:  
[https://homey.app/f/P8Tvns/](https://homey.app/f/P8Tvns/)

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 18, 2021, 10:00pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/55 "2021-01-18T22:00:15Z")

</div>

> [@DirkG](#):
>
> Just to be sure, the calculated Y value won’t be greater than 1?

@DirkG  
From my tests with 1.2.0 it never went over the Max set value again.

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [January 18, 2021, 10:11pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/56 "2021-01-18T22:11:04Z")

</div>

If I add a node to an existing spline it is added in the middle

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [January 18, 2021, 10:16pm UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/57 "2021-01-18T22:16:18Z")

</div>

Regarding flow 1, The then card, Query a spline (time based) , tapping “select an item” brings up a grey screen with “no results” in the middle. I created the spline a couple hours ago. What am I wrong?  
Really like the idea of having Hue dim and other variables change over time

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 19, 2021, 8:33am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/58 "2021-01-19T08:33:45Z")

</div>

> [@Philip\_Montgomery](#):
>
> ay to c

Yes if the max is set to 1 it never would go over that value

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 19, 2021, 8:34am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/59 "2021-01-19T08:34:33Z")

</div>

> [@Philip\_Montgomery](#):
>
> s added? I ask because I decided to add one mid spline and it always goes where I don’t want and requires m

A new node always get’s added in the middle

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 19, 2021, 8:35am UTC](https://community.homey.app/t/app-pro-splines-abandoned/40884/60 "2021-01-19T08:35:31Z")

</div>

> [@Ton\_Meek](#):
>
> use linear splines instead of cubic splines fo

Currently this is not possible, maybe I can add this in the future but it will be quiet a lot of work

[Previous page](https://community.homey.app/t/app-pro-splines-abandoned/40884.md?page=2)

[Next page](https://community.homey.app/t/app-pro-splines-abandoned/40884.md?page=4)
