# \[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:** 21

<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 26, 2023, 8:21am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/410 "2023-12-26T08:21:18Z")

</div>

> [@Ranney](#):
>
> Any idea what I’m doing wrong?

Please share you flow?

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [December 26, 2023, 8:34am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/411 "2023-12-26T08:34:43Z")

</div>

Thanks for your replay!

At this moment, I just have a ‘calculate numeric value as’ {{ 0+(‘‘124:00’’.split(‘’:‘’)[1]) }}

The ‘numeric value’ in homey → variabelen will be ‘empty’ when running this flow card. The app is crashing when opening the corresponding value in the list. I think that I make a mistake in taking over the symbols or something like that. But did not managed it to get it working 🙈

 ![Scherm­afbeelding 2023-12-26 om 09.42.54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f0b6183096e2975fb32255533ff3d1c3304c5c8.png)

And with other ’ marks also the same problem

 ![Scherm­afbeelding 2023-12-26 om 09.47.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bcbfd636e0f3e7ed588f35a29e7631f8d66fda6b.png)  
{{ 0+(‘‘124:00’’.split(‘’:‘’)[1]) }}

This is the error I get.

 ![IMG_9096](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0271a2b512f0ec9b31aba0c4d93924e8cada925.jpeg)

---

<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 26, 2023, 5:07pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/412 "2023-12-26T17:07:34Z")

</div>

> [@Ranney](#):
>
> {{ 0+(‘‘124:00’’.split(‘’:‘’)[1]) }}

Hi Ranney,  
Never use fancy (cursive) double quotation marks in code.

1. ![Screenshot_20231226-180931_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/84ba4e6696b9633a5d8729833a9cf804c8b6bf5f.jpeg)

You used two different types as well, probably two fancy single quote marks:  
2.

 ![Screenshot_20231226-180952_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/8/5851af0520ce6b689c1f7d5c7aff04ea8907ab39.jpeg)

Always use the standard straight double quote mark like: `"`  
Also note, two single quote marks as a pair isn’t valid, only use the double quote mark symbol.

Also carefully watch for whitespaces, as shown in the error msg:

 ![Screenshot_20231226-182312_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18e0917f508afa43e91a2d47e4a674c9ec77ddd5.jpeg)

The (damn) autocorrect on phones/tablets can cause many unwanted issues when coding  
Turn it off.

### Okay, Ranney, this should work, just copy/paste it into your flowcard:

```auto
{{ 0+("124:00".split(":")[1]) }}

```

.

You can also play and test with the [time] tag for instance:

 ![Screenshot_20231226-181820_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0aeae044647c7d933e4304911c67c8a4633be385.jpeg)

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [December 29, 2023, 10:34am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/413 "2023-12-29T10:34:07Z")

</div>

Many many many thanks! It is working great now!  
(And sorry for my late response. I had some serious issues with my homey. (SQLite Database corrupt errors). After some troubleshooting I found that my EMMC was not working correctly. Just replaced the CM4 module and as far as I can see now is it working fine again.) Now including nice remaining time information for my bosch devices. Thanks!

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [December 30, 2023, 7:47am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/414 "2023-12-30T07:47:22Z")

</div>

After the latest update with the test version (3.4.12) I get an error when saving flows with BLL in them.

```auto
Invalid format for arg 'boolean_value' expected '[[tokenId]]' but received 'true'

```

It was solved by going back to the original version.

Thanks.

---

<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 30, 2023, 8:11am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/415 "2023-12-30T08:11:19Z")

</div>

> [@Heula](#):
>
> After the latest update with the test version (3.4.12) I get an error when saving flows with BLL in them.

Okay, it’s resolved in the new testversion.

I changed the valuetype of the Set [variable] to [yes/no] from a dropdown containing true/false to a checkbox, so you can use a boolean-tag. However, during testing, it showed to be working correctly for me.

But i have changed it back for the flowcard and deprecated that flowcard.  
I have created the same flowcard as new, with a checkbox. It looks the same, except that it allowes boolean-tags to be used.

It’s in test now.

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [December 30, 2023, 8:46am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/416 "2023-12-30T08:46:54Z")

</div>

I can confirm it is solved now.

Thanks.

---

<div class="post-metadata">

**Author:** ![Gerhard\_Sommer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerhard_sommer/32/98476_2.png) [@Gerhard\_Sommer](https://community.homey.app/u/Gerhard_Sommer)\
**Post date:** [January 20, 2024, 5:58pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/417 "2024-01-20T17:58:36Z")

</div>

Hi,

is it possible to use BLL variables I created in the App in a function that I create? If so, what is the syntax? I could not find any example. I tried it with $ before the name and before and after the name and with just the variable name, but always get an error.

Kind Regards,  
Gerhard

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [February 29, 2024, 9:26pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/418 "2024-02-29T21:26:11Z")

</div>

When I try to used a tag, with date & time, for have only the time for a variable I get error and wrong time stamp.  
So I try it with putting directly date & time data in the card.

![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/69425554c8d4222be78d32dc1cb95ebccff8d67c.jpeg)

It seems to me that the conversion is not what we used here.  
An 29th month is strange and the time get 2 hours extra.

In the BLL app configuration I see nothing strange there.  
Is there an other place to set the right date & time settings

Edit  
This morning test with 01-03-2024 09:58:03 gives 10:58:03. So 1 hour 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:** [March 1, 2024, 12:16pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/419 "2024-03-01T12:16:16Z")

</div>

> [@Theo\_de\_Koning](#):
>
> So I try it with putting directly date & time data in the card.

Unfortuantly, this is not (yet) possible, because it will be interpreted as English date.

For this example, you can better do this:

- Use a Execute [bll expression] as Tag flowcard
- place this in the field:

```auto
"01-03-2024 09:58:03".split(' ')[1]

```

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

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [March 1, 2024, 4:06pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/420 "2024-03-01T16:06:08Z")

</div>

Thanks, it’s working also fine with a date Tag on the spot. 👍

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [March 26, 2024, 4:35am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/421 "2024-03-26T04:35:24Z")

</div>

OK, big learning curve here. Have to learn BLL, BLL expressions etc. to commence learning Advanced Capabilities. So as I am trying to create my first AVD I need to create some BLL variables. Here is my attempt to set a string depending on it’s value to be displayed in the AVD. Not sure yet but I probably could define the expression in the AVD. Either way it needs to work and this one doesn’t. Even though SellPrice\_N is an existing BLL variable this card fails as SellPrice\_N is not defined. Is there a way to define it (let SellPrice\_N) or have I done this completely wrong?  
 ![Screenshot 2024-03-26 at 3.27.32 pm](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d847102fa82907ba0d9463654367f36d511fb51b.png)

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [April 7, 2024, 8:24pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/422 "2024-04-07T20:24:36Z")

</div>

Hi  
I have a problem with BLL every now and then when I open the app settings. I do not see any variable. The flows are not working with the variables. I created a diagnosis report ce4a6612-2bd9-485d-99dd-a91d1d3c771f.

To get it to work i have to restart the app.  
Happened about 5 times already

I reboot homey every night.

Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [April 7, 2024, 8:53pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/423 "2024-04-07T20:53:56Z")

</div>

@Ron_Meijsen Maybe as a workaround you could try to restart the BLL app about 20 minutes after you have restart the Homey.

---

<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:** [April 8, 2024, 7:47am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/424 "2024-04-08T07:47:00Z")

</div>

> [@Ron\_Meijsen](#):
>
> I created a diagnosis report ce4a6612-2bd9-485d-99dd-a91d1d3c771f.

Can you create a ticket for it? Thanks.

And do you have the hp2023nor older models?

And does the bug only start after a homey restart?  
Or also just during the day or anything?

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [April 8, 2024, 1:35pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/425 "2024-04-08T13:35:43Z")

</div>

Hi,

I would if I know where to create a ticket. When i go to bitbucket i can only look at issues.

I have an early 2019 pro.

I do not know when it happens. At one point during the day i just find out that flows with variables did not work.

To find out if it happens after reboot i could create a flow that uses a variable and when that card errors i write to the log.

I will try that.

Ron

---

<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:** [April 9, 2024, 12:50am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/426 "2024-04-09T00:50:47Z")

</div>

> [@Ron\_Meijsen](#):
>
> I would if I know where to create a ticket. When i go to bitbucket i can only look at issues

Hi Ron,

I guess you’ll have to login, or create an account & login

> ![Screenshot_20240409-024815_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/4/74de0527c39a4989617a43c1409d3271c5476d3b.jpeg)

---

<div class="post-metadata">

**Author:** ![HuisCHovens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huischovens/32/16973_2.png) [@HuisCHovens](https://community.homey.app/u/HuisCHovens)\
**Post date:** [May 2, 2024, 3:17pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/427 "2024-05-02T15:17:17Z")

</div>

Have I missed something lately? many cards are missing owner name is that bad?  
I think it still works?

 ![Screenshot_20240502-171255](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4dcc3a0232704deac23bb2d0349eef3ef390fb48.png)  
Homey2019

---

<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 2, 2024, 7:09pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/428 "2024-05-02T19:09:34Z")

</div>

It’s not app specific, Athom is aware

> [@Hue Missing owner name in cards](https://community.homey.app/t/hue-missing-owner-name-in-cards/108677/7):
>
> Athom informed me it is a known issue and working on it. No indication when it will be resolved.

---

<div class="post-metadata">

**Author:** ![RCH58](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rch58/32/9669_2.png) [@RCH58](https://community.homey.app/u/RCH58)\
**Post date:** [May 2, 2024, 10:01pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/429 "2024-05-02T22:01:27Z")

</div>

As far a I can tell the problem has been resolved with the latest upgrade. The downside is that you have to replace each card with this error. So for example if you have a card with set Hue scene for a zone with this error you have to replace the card with a new card set scene for zone xxx

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

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