# Calculation of variables (Logic or better Logic)

**URL:** <https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [December 27, 2020, 5:07pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913 "2020-12-27T17:07:28Z")\
**Posts on this page:** 11\
**Page:** 3

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 15, 2024, 6:49am UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/44 "2024-05-15T06:49:01Z")

</div>

> [@Felho](#):
>
> Yes and I don’t know why

Does it actually matter that you can’t see their value? Or does the value also not work when you try to use the tags (like in flows)?

---

<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, 2024, 12:30pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/45 "2024-05-15T12:30:50Z")

</div>

As far as I know the _values_ of the tags / vars aren’t shown anylonger in that pick list.  
But they were shown in the past.  
Only Support could tell you what has changed, and when.

When you’ve picked the tag you’d like, it’s value is shown when you test run an advanced flow, and hover the tag / var

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [May 15, 2024, 7:45pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/46 "2024-05-15T19:45:13Z")

</div>

> [@robertklep](#):
>
> Does it actually matter that you can’t see their value? Or does the value also not work when you try to use the tags (like in flows)?

think it is work with flow but sometimes I need to know value data.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 16, 2024, 5:31am UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/47 "2024-05-16T05:31:11Z")

</div>

In that case, you should contact Athom.

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [May 16, 2024, 8:18pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/48 "2024-05-16T20:18:56Z")

</div>

yes thanks I contacted Athom and they said noted this issue and maybe next fw update fix it or not 🙂

---

<div class="post-metadata">

**Author:** ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)\
**Post date:** [September 10, 2025, 11:48am UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/49 "2025-09-10T11:48:02Z")

</div>

Hi community,

I want to calculate the **average sleeping time** of the past week with a Logic calculation. I don’t know how. I looked through topics, Google and I asked ChatGPT.

 ![1000031015](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82fa470e6266cc0e2d63a92793cc165be1fe8d02.jpeg)

Is there any one who can point me in the right direction?

Thanks

Rogier

---

<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:** [September 10, 2025, 2:57pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/50 "2025-09-10T14:57:08Z")

</div>

Hi Rogier,

This is a way to calculate it.  
I use the Better Logic time formatting card to convert the counted stopwatch seconds to an H:mm format

 ![1000001140](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/1/7152cda2917ce06bc7a2e46f5e577bfbf2c2c38f.jpeg)

> ![1000001135](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bbf72a9ebf8cd850a780f9dc8bd79ddd094c3f13.jpeg)

---

<div class="post-metadata">

**Author:** ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)\
**Post date:** [September 10, 2025, 3:49pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/51 "2025-09-10T15:49:46Z")

</div>

Hi @Peter_Kawa ,

With respect to all fellow community members I was hoping to get an answer from you.

I will dive into it tonight.

Thanks

Rogier

---

<div class="post-metadata">

**Author:** ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)\
**Post date:** [September 11, 2025, 8:54am UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/52 "2025-09-11T08:54:55Z")

</div>

Hi @Peter_Kawa

You are the best 👏

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

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

Now I have to convince my spouse to set the alarm also during the weekends 🙃

Thanks

Rogier

---

<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:** [September 11, 2025, 10:37pm UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/53 "2025-09-11T22:37:48Z")

</div>

😊 YW, Rogier.  
No alarms during the weekends, that’s a no go haha.  
Maybe a matras sensor?

---

<div class="post-metadata">

**Author:** ![Patrick\_Van\_Deursen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_van_deursen/32/56539_2.png) [@Patrick\_Van\_Deursen](https://community.homey.app/u/Patrick_Van_Deursen)\
**Post date:** [September 12, 2025, 6:31am UTC](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913/54 "2025-09-12T06:31:44Z")

</div>

We have our phone the the bedroom (I know not a “smart” thing to do, and not everybody agrees). I have the phone charger linked to a power measuring switch. We ge sleep, phone is in the charger → sleeping. in the morning, check if charger goes to 0 (0.5w is standby) → awake.

Maybe an easy alternative

[Previous page](https://community.homey.app/t/calculation-of-variables-logic-or-better-logic/39913.md?page=2)
