# Ad X number of degrees to a flow activated by a temperature sensor

**URL:** <https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259>\
**Category:** Questions & Help\
**Created:** [June 13, 2023, 12:47pm UTC](https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259 "2023-06-13T12:47:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paxman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paxman/32/128050_2.png) [@Paxman](https://community.homey.app/u/Paxman)\
**Post date:** [June 13, 2023, 12:47pm UTC](https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259/1 "2023-06-13T12:47:42Z")

</div>

Hi Homeys!

So I have just installed a solar heater panel to my little pool. I have a filter pump (that sends the water through the panel) connected to a Nexa outdoors switch and a temperature sensor in the pool and one on the solar panel.

Now I want to create a flow that activates the pump when the temperature on the solar panel is higher than the pool water which is easy enough. However, I’d like to ad an “offset” for the temperature difference. When the sun is shining the temperature will always be higher on the solar panel resulting that the pump will run constantly…so I’d like to set up something like this:

WHEN "_Solar panel temperature **+15°**" is higher than pool temperature:_ THEN “_Start pool pump_”.

This is what I have done so far:

 ![Skärmavbild 2023-06-13 kl. 14.44.25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/2/3284d02304127d8b5604102bf9a59e9f85a31c3f.jpeg)

Basically I’d like to add the “ **+15°** ” to the logic card in the first row or something similar and maybe in the logic card in the second row to…I’ll have to experiment with the numbers a bit when I get it to work.

I’m sure there is a simple way to do this…I just don’t know about it. 😊

---

<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:** [June 13, 2023, 1:38pm UTC](https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259/2 "2023-06-13T13:38:41Z")

</div>

Use it like this:  
`{{[Temperature] + 15}}`

Where `[Temperature]` is the tag, and the value is just 15, without the ° sign

 ![Screenshot_20230613-154639_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/60225fe561783a8d155375dbefa20a22f1ca37c0.jpeg)

 ![Screenshot_20230613-154625_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c7dc880129862edbcb8642d9e50ed0a5ee92a94d.jpeg)

---

<div class="post-metadata">

**Author:** ![Paxman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paxman/32/128050_2.png) [@Paxman](https://community.homey.app/u/Paxman)\
**Post date:** [June 13, 2023, 2:18pm UTC](https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259/3 "2023-06-13T14:18:24Z")

</div>

> [@Peter\_Kawa](#):
>
> {{[Temperature] + 15}}

I knew there was an easy way! Now that I see it…I think I have a bookmark for the page that explains those things within brackets. Thank you Peter! 👍 🙂

---

<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:** [June 13, 2023, 2:24pm UTC](https://community.homey.app/t/ad-x-number-of-degrees-to-a-flow-activated-by-a-temperature-sensor/82259/4 "2023-06-13T14:24:34Z")

</div>

Yeah you can do lots of things with it  
Like rounding a value to zero digits:

 ![Screenshot_20230613-162201_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75130290dda23cd45abcd6735ea70f0cb961cf10.jpeg)

Or with certain digits:

 ![Screenshot_20230613-162316_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75630ba61b0e105c68c4683b3078e656e8ed52ef.jpeg)

Search forum for math, mathjs, math.js
