🖤 Save $ 50 on Homey Pro and up to 29% on everything else No code needed • Discount automatically applied at checkout

Better Logic Library

Just some better logic, variable and library management
Just some better logic, variable and library management

Read more ›

Supported devices

Flow cards

Click on a device above to show related Flow cards only.

When...

Better Logic Library
Variable is changed
i
Variable card. Triggers if a variable value changed.
Better Logic Library
Variable is set
i
Variable card. Triggers if a variable is set (not necessarily changed)
Better Logic Library
Nummer Variable is Action Amount
i
Number variable card. Triggers if a number variable is changed.
Better Logic Library
Variables have changed
i
Variable card. Type the variable names seperated by a comma. Tags will not work in this card.
Better Logic Library
Any variable changed (DEBUG)
i
Variable card.
Better Logic Library
Any variable changed
i
Variable card.
Better Logic Library
When Number Variable is Condition Number for Duration Unit, execute once or repeatedly
i
Number variable card. This card will execute when a variable has been a certain value for a specific period. When f.i. using a condition of 'equal to 5 for 5 seconds' Execute once means this card will be triggered once after the condition has been met and stays true for 5 seconds. Repeatedly means, as long as the condition is met, this card will be executed every 5 seconds. Keeps working after Homey/App Restart.
Better Logic Library
When Text Variable is Condition Text for Duration Unit, execute once or repeatedly
i
Text variable card. This card will execute when a variable has been a certain value for a specific period. When f.i. using a condition of 'equal to text for 5 seconds' Execute once means this card will be triggered once after the condition has been met and stays true for 5 seconds. Repeatedly means, as long as the condition is met, this card will be executed every 5 seconds. Keeps working after Homey/App Restart.
Better Logic Library
When Yes/No Variable is Condition Yes/No for Duration Unit, execute once or repeatedly
i
Yes/no variable card. This card will execute when a variable has been a certain value for a specific period. When f.i. using a condition of 'equal to Yes for 5 seconds' Execute once means this card will be triggered once after the condition has been met and stays true for 5 seconds. Repeatedly means, as long as the condition is met, this card will be executed every 5 seconds. Keeps working after Homey/App Restart.
BitFlip
Turned on
BitFlip
Turned off
NumSlide
The dim level changed

And...

Better Logic Library
Text Variable contains Text
i
Text variable card; the value supports BLL coding with {[...]}.
Better Logic Library
Text Variable starts with Text
i
Text variable card.
Better Logic Library
Text Variable is exactly Text
i
Text variable card.
Better Logic Library
Number Variable is exactly Number
i
Number variable card.
Better Logic Library
Number Variable is greater than Number
i
Number variable card.
Better Logic Library
Number Variable is less than Number
i
Number variable card.
Better Logic Library
Yes/No Variable is true
i
Yes/no variable card.
Better Logic Library
Math.js expression is true
i
Math.js expression card. Refer to a variable as $name$.
Better Logic Library
BLL expression is true
i
BLL expression card: enter JavaScript without {[...]}.
BitFlip
Is turned on

Then...

Better Logic Library
Format date as Format (optional: Date, Locale, TimeZone)
i
Date and time formatting card.
Advanced
Better Logic Library
Format TimeMs or TimeSec as Format
i
Duration formatting card.
Advanced
Better Logic Library
Format Number as Style (optional: Style Option 1, Style Option 2, Decimals, Locale)
i
Number formatting card.
Advanced
Better Logic Library
Format JSON as CSV with (unwindArrays: Unwind Arrays, expandArrayObjects: Expand Array Objects)
i
JSON to CSV formatting card.
Advanced
Better Logic Library
Format JSON as Excel with (sheetName: Sheet name, schema: Schema, defaultDate: Default Date, stickyRows: Sticky Rows)
i
JSON to Excel formatting card. Check the App settings --> Exports for more schema examples.
Advanced
Better Logic Library
Execute BLL Expression (as Tag)
i
BLL expression card: enter JavaScript without {[...]}. Executes a BLL-expression (without {[...]}) and returns it as a tag.
Advanced
Better Logic Library
Execute Text (as Tag)
i
Text card; use {[...]} for BLL coding. Supports BLL-coding (with {[...]}) and returns it as a tag.
Advanced
Better Logic Library
Set Variable to BLL Expression
i
BLL expression card: enter JavaScript without {[...]}. Set any variable to a BLL-expression (without {[...]}).
Better Logic Library
Set Variable to Value
i
Variable card; the text value supports BLL coding with {[...]}. You can set any variable with this card and it supports BLL-coding.
Better Logic Library
Set Text Variable to Text
i
Text variable card; the value supports BLL coding with {[...]}. Type the name of a variable and select it to create a new variable.
Better Logic Library
Set Number Variable to Number
i
Number variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Set Yes/No Variable to Yes/No
i
Yes/no variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Increment Number Variable by Number
i
Number variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Decrement Number Variable by Number
i
Number variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Set Variable to Math.js Expression
i
Math.js expression card. Refer to a variable as $name$.
Better Logic Library
Flip Yes/No Variable
i
Yes/no variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Execute Trigger
i
Trigger variable card. Type the name of a variable and select it to create a new variable.
Better Logic Library
Get all variables as Format
i
Variable export card.
Advanced
Better Logic Library
Get properties of Variable
i
Variable properties card.
Advanced
BitFlip
Turn on
BitFlip
Turn off
BitFlip
Toggle on or off
NumSlide
Dim to %
NumSlide
Set relative dim-level %
i
Dim or brighten with respect to the device's current dim-level.
Trigger
Press the button

Support

Having an issue with this app? Report issues via the developer issue tracker.

What’s new

Version 4.4.1 — Large variable downloads and Excel exports now use less peak memory. Settings downloads are more reliable, with local and internet fallbacks, temporary links, and clearer errors. Improved compatibility for Excel formatting and frozen headers. Reduced the app size.

View changelog

Better Logic Library

Better Logic Library is not compatible with the selected Homey.

Better Logic Library will install on Homey shortly.
Install App