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


Now in Test/Review:

Rebranding BL to: Better Logic Library 2.0.

The Better Logic App has been rebranded to Better Logic Library.
Check out the new App Settings for the new features, like BLL coding in supported apps!

Submitted for review by Athom now!

[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum
[APP][Pro] Better Logic Library - For developers - Apps - Homey Community Forum

BLL has been updated to sdk3 to get everything up and running again.
But also add some new features, f.i.: Variables can now be created from within flows (AND and THEN cards): just start typing a name and select it!

Currently containing:


  • A variable changed
  • A variable is set
  • A number variable changed
  • One of these variables changed
  • Any variable changed (DEBUG)


  • Text contains
  • Text starts with
  • Text is exact
  • Number is exact
  • Variable greater than
  • Variable less than
  • Variable is true/false
  • Math.js expression is true/false


  • Set string variable
  • Set number variable
  • Increment number variable
  • Decrement number variable
  • Execute mathjs expression
  • Set boolean variable
  • Flip boolean variable
  • Execute a trigger
  • Set a variable


  • BitFlip
  • NumSlide
  • Trigger

Please report issues or feature requests at QlusterIT / nl.qluster-it.BetterLogic / issues — Bitbucket.


Donations or Sponsorship


This is a compatible upgrade to the current app? Meaning when you install this app everything should continue working without the need to redo all your flows?

That’s what we have to find out in the experimental release. Everything was developed using a separate app id to get every part up and running. When I moved everything back to the existing app id it loaded my existing variables.

There might be a possibility the numslide device might not be fully working as it used a device class that’s not allowed in sdk2 so I had to pick an other. But seems to be loading fine when I added one in sdk1 and uograded to sdk2.

There’s currently an homey issue with triggers so not yet fully sure if it completely works in v2.0. But the whole v2.0 firmware is in experimental for a reason, not everything is going to work from the start. But you knew that when you flipped the experimental switch :wink:

For the moment I’d say if you have to upgrade to homey 2.0 it might never hurt to do an export of your variables first :wink:

1 Like

I just posted the SDK2 release as beta. Now it is just waiting for validation. Many thanks to SailingDuck for the help!

The beta app is in the appstore!


Could someone point me to the place where I can find all functions of Better logic? I am looking for stuff like Round{{…}}

Searched but couldn’t find it, and the flow I used ‘round’ in, I have deleted :disappointed_relieved:

@Eternity Is it not like http://mathjs.org/examples/index.html ?

1 Like

Checked the link, it is ‘similar’ :wink:

I am looking for somthing like {{round, var;2}} to change a variable from x,xxxxxx to x,xx

Put variables between $ signs. These are not displaying here.
round(variableName, 1)

I have a flow that rounds a random number between 1 and 5.
I had to use round(random(1,5)) so not {} but ()

(round( WnkDimVal *100))/100

This was what I did, and worked:

{{round (Energiekosten vandaag,2)}}

to round the variable Energiekosten vandaag to 2 decimals

What card are you using?


And when u try it without the brackets?


Works too :slight_smile:

Ok cool. Because that’s what all say in the above posts.

Confusing for me was that I had a calculation within a calculation. I have changed that… Anyway… all thanks for helping :slight_smile:

Have a great weekend!

[ JPe had a bracket too… haha (round( WnkDimVal *100))/100 :stuck_out_tongue: ]

No curled brackets!!

Just installed the beta app but i cannot seem to add any variables…
I push the button but is does not add the var to the overview :confused: