Skip to content

BLL Methods

Arie J. Godschalk edited this page Nov 12, 2026 · 1 revision

BLL method reference

Home · BLL coding · Examples · Formatting

BLL expressions are JavaScript with additional functions and modules. Choose a page for syntax, examples and important differences:

Function or value What it does Guide
date Format a calendar date or clock time with a locale and time zone. date
time Format an elapsed duration in milliseconds or seconds. time
number Format a number as localized decimal, percent, currency or unit text. number
now Current Unix time in milliseconds, captured at the start of an evaluation. It is a value, not now(). date and timestamps
math Math.js functions for calculations. Math.js
_ Lodash functions for lists, objects and other data. Lodash
Your functions Reuse JavaScript functions saved in BLL settings. Custom functions

These are expression features, not necessarily methods available in every other Homey app. A supporting app must decode the particular text field. Use {[ date("dddd") ]} in supported text, but date("dddd") in an expression-only card. See BLL coding before copying examples.

Clone this wiki locally