Drafted 2026-11-15 with Jan. flua's uptake today is the ex-plua hard core; the goal is to lower the entry for the non-programmer majority of the Fibaro forum. This note records the strategy and the builder design.
Today a new user clears: install Python → pip → install flua → get an editor (VS Code) → write a Lua file → run it → move the QA to the HC3. The agent path adds three more steps (install, configure, pay). Each step filters people out; flua currently serves only those who would have cleared all of them anyway.
.fqa and upload it in the HC3 web UI
— no flua, no Lua. They are using flua's output without knowing it.
The funnel: consume a finished QA → want one line changed → "flua makes
that change safe" → install. Ship finished QAs as downloads with a
marked "EDIT THESE 3 LINES" header.The agent angle slots in at the top of the funnel (custom logic), not as the entry point.
The recipe set must grow without shipping a new flua. Recipes therefore
live in the flua repo and the builder fetches them from the same GitHub
that already serves examples/iconInstall.lua's icons
(raw.githubusercontent.com/jangabrielsson/flua/main/...):
recipes/ in the repo — one folder per recipe: manifest.json +
main.lua (+ icons when a recipe ships a custom icon set). The
manifest is the builder's contract and the forum post's "what to edit":json
{
"id": "light-at-sunset",
"title": "Turn a light on at sunset",
"description": "One sentence for the picker.",
"params": [
{"name": "deviceId", "label": "Light", "kind": "device",
"filter": "com.fibaro.binarySwitch", "default": 0},
{"name": "offset", "label": "Minutes before sunset", "kind": "number",
"default": -30}
]
}
kind drives the UI: device/room/scene become dropdowns populated
from the live HC3 (?isTypeOf=/type filters for devices), number/
text/boolean become inputs. The template QA carries the params as
--%%var:name=<default> lines — the generator bakes the picked values
into the header (--%%var:deviceId=123), so the same file is the
human-editable "finished QA" from play 1 and the builder's template.
- recipes/index.json (checked in, regenerated by a script) lists the
manifests — the builder fetches the index first, then a recipe's files
on selection. Cached under ~/.flua/recipes with a refresh action;
the wheel ships a snapshot of the index as the offline fallback.
- Trust = the repo. Recipes come from the flua repo the user already
trusts (the wheel's source); the builder never executes fetched content
outside the sim, and the fetched QA is a plain file the user can read.
- New recipe = one merge. No release, no packaging — the index entry
appears on the next builder refresh.
uploadQA directly, or offer a .fqa download too
(the consume-first artifact)?flua --tool build (new tool) or a tab in the
existing viewer page?recipes/ layout + index.json + the builder page (fetch → pick →
generate → simulate → upload), starting with the 5 recipes.
Shipped as the MVP: flua --tool build serves the builder page —
recipe list from the index (GitHub refresh + shipped fallback), HC3-fed
pickers with typed-id fallback, param baking into the marked --%%var
lines, a .lua download, direct upload to the HC3 (import endpoint),
and simulate-in-place: the generated QA runs on the laptop with a
virtual clock, picked devices re-pointed at bundled sim devices.
Parked as a PoC (2026-11-15) — waiting for forum feedback before
more investment; ADR 0015 delimits it against the no-wizard decision.