# \[APP\]\[Pro\] Better Logic Library - For Users

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-for-users/71876>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, logic, bll\
**Created:** [November 7, 2022, 10:13pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876 "2022-11-07T22:13:40Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![StyleRemains](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/styleremains/32/474_2.png) [@StyleRemains](https://community.homey.app/u/StyleRemains)\
**Post date:** [October 25, 2023, 9:17am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/104 "2023-10-25T09:17:46Z")

</div>

Also happens for me on a regular basis, need to restart the app several times a week now.  
Is there hope for a fix ? using one the early homeys 2016-2019  
Thank you for the great app

---

<div class="post-metadata">

**Author:** ![Greuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/greuh/32/79007_2.png) [@Greuh](https://community.homey.app/u/Greuh)\
**Post date:** [November 9, 2023, 9:19pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/105 "2023-11-09T21:19:16Z")

</div>

Hi,

I am trying to set a timer with a slidebar to choose the value.  
I created, under the “better logic library” configuration, a variable of type “number” named “timer Maëlys”.  
I then added a new device, clicked on “better logic library”, chose “NumSlide” and defined min to 0, max to 30 and step to1.  
I can now use a slidebar to define the variable which is great.  
However, when moving the slide it displays a percentage (from 0% to 100%) instead of displaying the value, which is not convenient.  
Furthermore, when I release my finger, it displays 1500% and an error message:

 ![Screenshot_20231109-221104](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/b/4b3e5e6cb42341573a8d2e631100bf9f48cc5dd7.jpeg)  
At the end, the value is correctly set, to 15 for example if I choose 50%. However it is not very convenient…

Am I doing something 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:** [November 10, 2023, 4:45am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/106 "2023-11-10T04:45:32Z")

</div>

> [@Greuh](#):
>
> Furthermore, when I release my finger, it displays 1500% and an error message:

Please send a diagnostic after you recieve this error. Thanks!

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 10, 2023, 8:37am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/107 "2023-11-10T08:37:04Z")

</div>

@Arie_J_Godschalk

Quick (noob) question.

I’ve got the following BLL in my flow:

 ![Scherm­afbeelding 2023-11-10 om 09.33.23](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cb0e4828fe47442cec87cea1cff3b045357028ec.png)

And the result is here: 23.397,244

But Google Sheets does not like the dot when creating reports. What format should I pick to get the desired output: 23397,244

Thanks lots!

---

<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:** [November 10, 2023, 9:10am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/109 "2023-11-10T09:10:37Z")

</div>

> [@Pairis](#):
>
> 23397,244

Hey @Pairis ,

I have just added a StyleOption2 for Decimals.  
Update to the latest/current live version, and you can pick: No Grouping as option, resulting in:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/027e24e68188c35132f779fdb6dbe3b4e7543a69.png)

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 10, 2023, 9:33am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/110 "2023-11-10T09:33:31Z")

</div>

You’re awesome! Thanks

---

<div class="post-metadata">

**Author:** ![owuerker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/owuerker/32/39707_2.png) [@owuerker](https://community.homey.app/u/owuerker)\
**Post date:** [November 15, 2023, 12:01am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/111 "2023-11-15T00:01:37Z")

</div>

Hi

I modify a BLL Variable with math.format to have in all case 2 digits after the comma (even it is a zero at the last position)  
e.g. 24.5 modified to 24.50 or is more than 3 digits long 24.125. to 24.12

In the BLL App the Variable is shown like it should (e.g. 24.50), but If I use that variable in a flow the zero is not available  
I need 2 digits for the http-post request, in all case it must be 2 digits after the comma. Otherwise my heating control will not akcept the request (Don’t ask me why )

So what can I do ? Bug ?  
I don´t know zero as the last number after the comma as no effect but I need it.

Attached my flow, perhaps somebody has a solution.  
The real room temperature has to be a multiple of 0.125 but must be in all case 2 digits after the comma. So only a problem with 0.5. and no comma numbers there I need the an additional digits

 ![Bildschirmfoto 2023-11-15 um 01.04.26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/5/d55867edff77dd16dc034ff45873687d614a5a4f.png)

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

Editing the Value in the app, the zero will be not accepted, just possible through the math.format expression in the flow.

Thanks for your help

---

<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:** [November 15, 2023, 1:37am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/112 "2023-11-15T01:37:53Z")

</div>

I hope I got you right, so this crossed my mind:

I think the key is to save it in a string variable, while numbers in a stringvar cannot be changed without overwriting it, and you can use a string variable in the HTTP - POST request card.

And instead of the calculation, you could use the “Format number as style” card, with these settings:  
style: “Decimal”,  
style option 1: “Compact Long”,  
decimals: 2,  
locale: English (to keep the decimal point in your temperature value)

 ![Screenshot from 2023-11-15 02-30-57](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b5d4a4fac1f7c235238ed8243f78152de6b9919.png)

 ![Screenshot from 2023-11-15 02-32-03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8cae616f55fcab7068ed45882be1d21c18dc4e2.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:** [November 15, 2023, 5:39am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/113 "2023-11-15T05:39:43Z")

</div>

> [@owuerker](#):
>
> Thanks for your help

Indeed, you need to use a String/Text variable if you want to format it.  
(Or use the Number flowcard to generate a temporary string/tag)

---

<div class="post-metadata">

**Author:** ![owuerker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/owuerker/32/39707_2.png) [@owuerker](https://community.homey.app/u/owuerker)\
**Post date:** [November 15, 2023, 10:50am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/114 "2023-11-15T10:50:00Z")

</div>

Thanks I will try

Just another short question 😉

If I have just a Url e.g [http://external](http://external) system/id/“#Variable” as external entry point how I can realize this with Advanced flows or must I use Homeyscript ?  
I just found the http request (post, get,) card. I just want sent a “simple” generated URL  
Can you provide a simple Homescript example if it is not possible with advanced flows?

A lot thanks for your support

---

<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:** [November 15, 2023, 4:09pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/115 "2023-11-15T16:09:57Z")

</div>

Do you mean the same as in this topic?

> [@Http post with variable](https://community.homey.app/t/http-post-with-variable/94609/3):
>
> I don’t know, but it works fine here. I use a BLL string variable by the way. (Homey Logic has/had a bug where it adds a trailing whitespace to the values) The tag is just a string as you can see, and the value of the BLL variable is 25.10: [Screenshot from 2023-11-15 03-24-35] Reply from the webhook listener flow:

---

<div class="post-metadata">

**Author:** ![owuerker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/owuerker/32/39707_2.png) [@owuerker](https://community.homey.app/u/owuerker)\
**Post date:** [November 15, 2023, 4:23pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/116 "2023-11-15T16:23:26Z")

</div>

Thanks  
I got it. It is working

---

<div class="post-metadata">

**Author:** ![Greuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/greuh/32/79007_2.png) [@Greuh](https://community.homey.app/u/Greuh)\
**Post date:** [November 22, 2023, 10:33am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/117 "2023-11-22T10:33:00Z")

</div>

I tried several times since my message but I could not reproduce the issue. I guess I created the timer on my laptop and was using it on my smartphone without a proper refresh of the app.  
PEBKAC…  
Sorry  
However, it still prints a percentage. Would it be possible to make it print the actual value instead ?

---

<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:** [November 23, 2023, 6:29pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/118 "2023-11-23T18:29:02Z")

</div>

> [@Greuh](#):
>
> However, it still prints a percentage. Would it be possible to make it print the actual value instead ?

Im sorry, i dont fully understand what you are saying.  
Could you explain it some more?

---

<div class="post-metadata">

**Author:** ![Greuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/greuh/32/79007_2.png) [@Greuh](https://community.homey.app/u/Greuh)\
**Post date:** [November 23, 2023, 7:05pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/119 "2023-11-23T19:05:51Z")

</div>

Sure, I want to configure a slidebar to choose the value of a timer.  
I created, under the “better logic library” configuration, a variable of type “number” named “timer Maëlys”.  
I then added a new device, clicked on “better logic library”, chose “NumSlide” and defined min to 0, max to 30 and step to1. The goal is to easily set up a timer from 1 to 30 minutes.  
I can use this slidebar to define the variable which is great.  
However, when moving the slide with my finger, it displays a percentage (from 0% to 100%) instead of displaying the value, which is not convenient.  
I know that 33% will mean 10 minutes, but it is not very comfortable 🙂

---

<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:** [November 23, 2023, 8:02pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/120 "2023-11-23T20:02:08Z")

</div>

> [@Greuh](#):
>
> I know that 33% will mean 10 minutes, but it is not very comfortable 🙂

Well, to be honest, i would actually advice you to create an Advanced Virtual Device from the Device Capabilities app.  
You can customize the field way more.  
And only one extra flowpart needed: when the avd.numberfield has changed, set bll variable.  
For the rest you can use Reflect for bll variables to update the AVD field.

Like create a Numberield with slider and just configure the step, min, max, title etc. yourself.

---

<div class="post-metadata">

**Author:** ![Greuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/greuh/32/79007_2.png) [@Greuh](https://community.homey.app/u/Greuh)\
**Post date:** [November 23, 2023, 10:05pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/121 "2023-11-23T22:05:51Z")

</div>

Very interesting, I will have a look. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [December 11, 2023, 9:25am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/122 "2023-12-11T09:25:28Z")

</div>

@Arie_J_Godschalk

I think this is a bug or inconsistency in the flow card “Execute as tag”.  
As per the example in the OP, I entered the below in the card and it gave an error.  
When I enter the same in another flow card “Set variable to text”, it works.

It seems that the flow card Execute as tag does not accept non-BLL expressions followed by a BLL expression.

The last one is: {[\_.last([“1”, “2”]) ]}.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/5/f57594d3b461340fe79cc78ea0b60777149441a7.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:** [December 11, 2023, 2:11pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/123 "2023-12-11T14:11:23Z")

</div>

> [@Rrrr](#):
>
> It seems that the flow card Execute as tag does not accept non-BLL expressions followed by a BLL expression.

Well, it’s a direct Expression card.  
BLL coding is an BLL expression within brackets to be used within text-arguments.

The Expression cards are for the direct expression, giving it the possibility to return any type of tag, like text, boolean or number.

I could perhaps check if the there is coding within a used expression card, and if so, eun it as text with BLL codings inside.  
But then you would not be able to retrieve a text-tag with coding inside anymore.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [December 11, 2023, 7:45pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/124 "2023-12-11T19:45:27Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> I could perhaps check if the there is coding within a used expression card, and if so, eun it as text with BLL codings inside.  
> But then you would not be able to retrieve a text-tag with coding inside anymore

I’m sorry I don’t understand. The text-tag is the reason I am interested in the Execute as tag card because the flow can continue with the real-time result in the tag. Much better than having to store it in a variable.

[Previous page](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876.md?page=5)

[Next page](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876.md?page=7)
