Skip to content

App JSON Handler

Arie J. Godschalk edited this page Nov 19, 2026 · 2 revisions

JSON Handler integration

Home · Supported apps · Multi-app examples

JSON Handler is an optional companion for extracting values from JSON and iterating over lists. BLL stores the resulting values. Passing tokens between the apps is not the same as JSON Handler evaluating BLL coding.

Extract and store a reading

  1. Install JSON Handler and BLL. In BLL create a Number variable for the sensor reading, such as CO2.
  2. Follow the sensor-reading example with its fixed sample JSON before connecting a live message source.
  3. Use a JSON reading card to select $.CO2 as a number. Connect its numeric output to BLL's Set number variable value.
  4. Save the Flow, then test it. The sample should store 913 in CO2. Connect parsing and missing-field failures to a short visible error report; do not store an error message or a made-up zero as a valid reading.

Better Logic Library Flow card example: Extract and store a reading

Actual Homey card examples, saved but disabled. They have not been run; follow this page for the full setup and connections.

See JSON Handler's BLL integration for storing JSON text between runs.

Process a list

For a bounded list of chronograph names, use the timer-status report. Run iterations sequentially when they update the same BLL text accumulator, and prevent two reports from clearing each other's output. Keep log summaries short rather than logging the entire input JSON.

Clone this wiki locally