# \[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, bll\
**Created:** [December 16, 2018, 10:29pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568 "2018-12-16T22:29:57Z")\
**Posts on this page:** 20\
**Page:** 24

<div class="post-metadata">

**Author:** ![Istvan\_Szalai](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/istvan_szalai/32/115093_2.png) [@Istvan\_Szalai](https://community.homey.app/u/Istvan_Szalai)\
**Post date:** [December 3, 2024, 11:35am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/472 "2024-12-03T11:35:32Z")

</div>

Working flawlessly, thanks.

---

<div class="post-metadata">

**Author:** ![JonE](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JonE](https://community.homey.app/u/JonE)\
**Post date:** [December 18, 2024, 10:50am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/473 "2024-12-18T10:50:32Z")

</div>

hi @Arie_J_Godschalk just trying desperately to get your attention, as this bug is driving me kinda crazy now… 🤨 🥹  
So what is the problem: every so many days, this app stops working on my 2019 Homey Pro. It’s quite annoying b/c other (important) flows are depending on this app functioning properly. I have to reboot this app to have it working again for a few days until it stops working again… Here is the error log code: 72779ce2-788d-49fd-9d1b-fdc47fb09210. Can you see (hopefully!) what’s going wrong?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [December 18, 2024, 11:29am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/474 "2024-12-18T11:29:31Z")

</div>

Hey @JonE , sorry about that, its kinda busy.  
I cannot find a mail with 72779ce2-788d-49fd-9d1b-fdc47fb09210.  
Perhaps you can send me a PB next time it crashes?  
Because i cannot find a crashlogmail with the ID you gave me.

---

<div class="post-metadata">

**Author:** ![MarcoRuiter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcoruiter/32/33528_2.png) [@MarcoRuiter](https://community.homey.app/u/MarcoRuiter)\
**Post date:** [December 18, 2024, 11:56am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/475 "2024-12-18T11:56:22Z")

</div>

I’m trying to think of a way to create a avarage value of a value that gets updated every few minutes. But the avarage needs to be the avarage of all the points collected that day until that time. Calculating the avarage every data point again with the (current avarage \* 19 + current value) /20 keeps sweeping all around the place

I dont think it’s possible with Better Logic or is there a feature i’m overlooking ?  
Cant seem to find a app that can make tag/value change avarage by day week etc either

---

<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:** [December 18, 2024, 2:23pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/476 "2024-12-18T14:23:10Z")

</div>

You’d try the [Insights Trends Reloaded](https://community.homey.app/t/71307) app, Marco.

---

<div class="post-metadata">

**Author:** ![MarcoRuiter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcoruiter/32/33528_2.png) [@MarcoRuiter](https://community.homey.app/u/MarcoRuiter)\
**Post date:** [December 18, 2024, 3:08pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/477 "2024-12-18T15:08:55Z")

</div>

@Peter_Kawa Yes, thats it. Works like a charm.  
Insights , offcourse thats what i should have been looking for then try to solve it with just logic  
Thank you much

---

<div class="post-metadata">

**Author:** ![Sebas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sebas/32/33892_2.png) [@Sebas](https://community.homey.app/u/Sebas)\
**Post date:** [December 28, 2024, 9:00pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/479 "2024-12-28T21:00:09Z")

</div>

Is this app capable of making a numeric value go to a positive or negative value?  
So for instance if a value is -123 it flips this to +123 or the other way around?

if not would someone know another app that does have this cabality?

\*Edit  
Loool why don’t I just " SET Value Y to {{ Value X \*-1 }}"

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [December 28, 2024, 9:59pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/480 "2024-12-28T21:59:14Z")

</div>

> [@Sebas](#):
>
> Loool why don’t I just " SET Value Y to {{ Value X \*-1 }}"

You can also do this with the standard Logic card in Homey ‘**Calculate [numeric value] as [text]**’. In which **[numeric value]** would be your variable in which you want to store the calculation result, and **[text]** the calculation to be performed (between **{{ }}** ). 😀

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [January 3, 2025, 9:47am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/481 "2025-01-03T09:47:57Z")

</div>

Not sure if it’s been asked before but is there a quick way of changing the sequence of the fields?  
I didn’t see an option in the repair tab so I just change sensor type twice and the fields goes to the bottom but if you want to change the sequence completely it’s a bit of a hassle.  
Is there a quicker way?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 3, 2025, 10:08am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/482 "2025-01-03T10:08:22Z")

</div>

> [@Marcus\_Bitterling](#):
>
> Is there a quicker way?

No sorry, there is not (yet).

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [January 3, 2025, 10:20am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/483 "2025-01-03T10:20:52Z")

</div>

Oké thanks.  
Would be a nice enhancement.  
Beste wensen!

---

<div class="post-metadata">

**Author:** ![Per\_Egholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/per_egholm/32/124340_2.png) [@Per\_Egholm](https://community.homey.app/u/Per_Egholm)\
**Post date:** [January 13, 2025, 6:58pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/484 "2025-01-13T18:58:43Z")

</div>

Du you know how to “move” a BLL variable til a homey variable? Or use BLL variables in flows.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [January 13, 2025, 8:14pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/485 "2025-01-13T20:14:57Z")

</div>

You can use them like any other standard Homey variable in flow cards. You can select them as tags in cards.

As an example, the following Homey Logic card tests whether the value of a numeric BLL variable is 10.

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

---

<div class="post-metadata">

**Author:** ![Per\_Egholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/per_egholm/32/124340_2.png) [@Per\_Egholm](https://community.homey.app/u/Per_Egholm)\
**Post date:** [January 14, 2025, 8:37am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/486 "2025-01-14T08:37:22Z")

</div>

![Skærmbillede 2025-01-14 kl. 09.33.16](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/5/a58c2376fad20d8b5ed17c3da728f8f19a5393ab.jpeg)  
Somehow the BLL variable BllAnchorRPM don’t show op in the Homey Logik options.

As I see it: Homey variables can be used with Homey logic and BLL variables can be used with BLL logic - Can you mix them?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 14, 2025, 8:55am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/487 "2025-01-14T08:55:21Z")

</div>

> [@Per\_Egholm](#):
>
> Can you mix them?

Well yeah, but only in places where you can use the token/tag.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [January 14, 2025, 11:46am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/488 "2025-01-14T11:46:08Z")

</div>

> [@Per\_Egholm](#):
>
> Somehow the BLL variable BllAnchorRPM don’t show op in the Homey Logik options.

Apparently BLL variables are not available in Homey’s own WHEN logic card, nor in the THEN cards. You can use the equivalent BLL WHEN / THEN card. However, BLL variables are available in the AND Homey logic card, assuming you use the card for the correct data type (text, number, etc.).

I believe this is because BLL variables are made available in the standard Homey cards as tags instead of variables. So you need a card that supports tags, which the AND card does (you can select both variables and tags).

---

<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:** [January 15, 2025, 3:46am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/489 "2025-01-15T03:46:34Z")

</div>

> [@SunBeech](#):
>
> Apparently BLL variables are not available in Homey’s own WHEN logic card

True, but in general you can’t use variables or tags as value in WHEN cards which hold a value field.

---

<div class="post-metadata">

**Author:** ![Joep\_van\_Andel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joep_van_andel/32/71049_2.png) [@Joep\_van\_Andel](https://community.homey.app/u/Joep_van_Andel)\
**Post date:** [January 17, 2025, 6:20pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/490 "2025-01-17T18:20:30Z")

</div>

It seems that after a Homey reboot, the BLL app does not start properly. I then get error messages in various flows where I use BLL. I have to manually restart the app, and then the issues are resolved. However, I assume this is not how it’s supposed to work. What can I do to ensure that BLL starts correctly right away?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2ef3dd0274fdc1cbd7bcd7eec013a23a3a2ffea9.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/15634cd39fbfa65b1efc61f5e5d17c68095d393e.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76cf7abc3a0ae2f8d062029375a56c0e68065ac3.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 17, 2025, 6:56pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/491 "2025-01-17T18:56:32Z")

</div>

> [@Joep\_van\_Andel](#):
>
> What can I do to ensure that BLL starts correctly right away?

When you get the error from the top image, please send a diag.

---

<div class="post-metadata">

**Author:** ![Joep\_van\_Andel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joep_van_andel/32/71049_2.png) [@Joep\_van\_Andel](https://community.homey.app/u/Joep_van_Andel)\
**Post date:** [January 17, 2025, 7:05pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/492 "2025-01-17T19:05:56Z")

</div>

Beste @Arie_J_Godschalk ,

Ik heb net geprobeerd het te reproduceren.

db7d365c-89c2-4927-b5dc-313bba13efb3

[Previous page](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568.md?page=23)

[Next page](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568.md?page=25)
