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

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [June 28, 2023, 9:07am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/369 "2023-06-28T09:07:16Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Install the FTP client app, create a FTP device (micro webserver will be found automaticly).  
> Now use the ftp client flowcard to retrieve an URL to a file and cast that URL. It should work.

Indeed it works 😉 Thank you for tip !

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3ba8b9a79ff8be733ad16c25335a8ad8fa6dbdf2.png)

Btw, [FTP Client](https://homey.app/en-us/app/nl.qluster-it.FtpClient/FTP-Client/) is quite interesting app again 😉 works also with Synology FTP hmmm… another app 🤣

re FTP client, seems that Advanced flows contains more actions compared to standard…

_Advanced_

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18b8f3786b1db14b459e16657fa640d15132b2fc.png)  
_Standard_  
 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f08e4dd629d35c02b5fa2421d4d316d1a52fd411.png)

…ticket created 😉 (unless it’s some known limitation)

---

<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:** [June 28, 2023, 9:37am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/370 "2023-06-28T09:37:12Z")

</div>

> [@Sharkys](#):
>
> unless it’s some known limitation

Indeed, the top 3 flowcards receive stuff, thus have tokens. That is not possible in normal flows, when flowcards have tokens, they can only be used in Advanced Flows.

---

<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:** [July 9, 2023, 7:00am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/371 "2023-07-09T07:00:55Z")

</div>

Arie I am just starting out with BLL. Is there somewhere that I can read up on ity’s capabilities and syntax?

---

<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:** [July 9, 2023, 7:20am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/372 "2023-07-09T07:20:16Z")

</div>

Hey Peter,

Well, in the App Settings you can find some information.  
And more about the coding and expressions in [[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/3).

The expressions are just basic JavaScript with it’s default buildin functions plus a few custom BLL functions.  
Coding can be used in supported textarguments and are just expressions within BLL “coding blocks”: `{[` expression `]}`.

And if you have any more questions, just post them here, and i or other people surely will help with answering them.

When i have time i intend to update the For Users topic with more tutorials, examples and explanations, based on the questions and answers here.

---

<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:** [July 9, 2023, 7:27pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/373 "2023-07-09T19:27:18Z")

</div>

Ok, so I’m going to stay on this thread. My post on the other thread had got me confused as I realised that many of the examples weren’t BLL examples.  
In the other thread you said I didn’t need the {{}} brackets. But it looks like from the example above I do need these {} placed around my expression.  
So is the correct syntax any mathematically correct expression in {}. E.g. {variable1-variable2}, or {var1\*(var2+var3)}

---

<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:** [July 10, 2023, 11:32pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/374 "2023-07-10T23:32:11Z")

</div>

OK, so I don’t need any brackets. With a single set it errors.

---

<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:** [July 11, 2023, 5:38am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/375 "2023-07-11T05:38:36Z")

</div>

Please show the flowcard.  
And what error do you get?

---

<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:** [July 11, 2023, 6:11am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/376 "2023-07-11T06:11:00Z")

</div>

This works  
 ![Screenshot 2023-07-11 at 4.09.01 pm](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/3/33da12567f4345b924ccd42fb534d064b9575552.png)  
This errors  
 ![Screenshot 2023-07-11 at 4.09.38 pm](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48939a6fabeffa497ed0078d4af1d6372b2ce113.png)

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 11, 2023, 6:11am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/377 "2023-07-11T06:11:47Z")

</div>

Needs to be double curly brackets, not single.

---

<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:** [July 11, 2023, 6:22am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/378 "2023-07-11T06:22:08Z")

</div>

> [@Peter\_Bittner](#):
>
> OK, so I don’t need any brackets

Indeed, you do not need brackets in the expression cards.

---

<div class="post-metadata">

**Author:** ![Heronimus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heronimus/32/3564_2.png) [@Heronimus](https://community.homey.app/u/Heronimus)\
**Post date:** [July 25, 2023, 4:04pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/379 "2023-07-25T16:04:04Z")

</div>

Reproducable problem: After a Homey (re)start BLL starts with no variables, completely lost all vars. Scary moment, but luckily found a solution: Resetting the app solves the problem, vars are back.

I made a flow which checks 5 minutes after a reboot if the BLL app gives an error, then restarts. This workaround solved my problem, but doesn’t sound as a real solution.

Error report : da70aaa4-3553-42ae-bff7-4fe3b77098c9

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [July 26, 2023, 9:01am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/380 "2023-07-26T09:01:45Z")

</div>

My Homey also does that sometimes when restarting. Restart of the BLL app always helps.

I restart Homey about 4 times a year, so cannot say if it happens every time.

---

<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:** [July 27, 2023, 7:07am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/381 "2023-07-27T07:07:21Z")

</div>

> [@Heronimus](#):
>
> Reproducable problem: After a Homey (re)start BLL starts with no variables, completely lost all vars. Scary moment, but luckily found a solution: Resetting the app solves the problem, vars are back.

Hp2019- or HP2023?

---

<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:** [July 27, 2023, 9:39am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/382 "2023-07-27T09:39:38Z")

</div>

> [@Heronimus](#):
>
> Reproducable problem: After a Homey (re)start BLL starts with no variables, completely lost all vars. Scary moment, but luckily found a solution: Resetting the app solves the problem, vars are back.

Please update to 3.4.5.  
And then: Next time you restart Homey and the variables are empty, please send a diagnostic before restarting BLL.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Heronimus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heronimus/32/3564_2.png) [@Heronimus](https://community.homey.app/u/Heronimus)\
**Post date:** [July 28, 2023, 2:30pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/383 "2023-07-28T14:30:51Z")

</div>

Homey Pro 2019.

After the BLL update (v3.4.5) the problem didn’t occur. 4 reboot attempts, but BLL starts with all the variables in it.

---

<div class="post-metadata">

**Author:** ![Umberto\_Gonzalezz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/umberto_gonzalezz/32/8734_2.png) [@Umberto\_Gonzalezz](https://community.homey.app/u/Umberto_Gonzalezz)\
**Post date:** [August 11, 2023, 4:12pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/384 "2023-08-11T16:12:06Z")

</div>

First of all, thanks for a great app.  
Can you please tell me if I can get “how many seconds have passed since the beginning of the day”?

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 11, 2023, 9:01pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/385 "2023-08-11T21:01:45Z")

</div>

Thank you for the great app!  
Can someone help me in making a BLL expression for use in Device Capabilities?  
I want to convert seconds to minutes.  
Thanks!

---

<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:** [August 12, 2023, 12:04am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/386 "2023-08-12T00:04:00Z")

</div>

> [@Umberto\_Gonzalezz](#):
>
> “how many seconds have passed since the beginning of the day”?

 ![Screenshot from 2023-08-12 02-02-23](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/d/ad1948d497cdbc2dc3863052bc9fd18b4bce411e.png)

.  
@timvdhoorn: [check here](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/432)

---

<div class="post-metadata">

**Author:** ![Umberto\_Gonzalezz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/umberto_gonzalezz/32/8734_2.png) [@Umberto\_Gonzalezz](https://community.homey.app/u/Umberto_Gonzalezz)\
**Post date:** [August 12, 2023, 7:34am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/387 "2023-08-12T07:34:25Z")

</div>

Great, thank you!

---

<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:** [August 18, 2023, 1:25pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/388 "2023-08-18T13:25:02Z")

</div>

@Arie_J_Godschalk If I use one of the cards on the picture in the THEN flow the Homey app closes on my tablet.  
Homey version 7.3.0.1253  
On both my Homey’s. HP19 and HP23

 ![SmartSelect_20230818_152014_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42dc39399eb71ad410e6d1d8fcacadba37d309ee.jpeg)

The other card have no problems.

On my phone with the Homey app 7.3.0.1249 are no problem, the cards just works fine.

Edit: With the P2000 app I have also a closing Homey screen.  
So maybe it is not the BLL app only.

Edit: received version of the Homey app7.3.0.1255. BLL app work again, other apps also.

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

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