You bought a Fibaro HC3 to automate your home. You discovered that the really good ideas need a QuickApp — a small program that lives on the controller. And you have never programmed anything.
This tutorial is written for you. No programming background is assumed. You only need to know how to use a computer and be willing to try things.
One project runs through the whole tutorial: the Sunset Lamp — a QuickApp that turns a light on when the sun goes down. Along the way you will:
Each chapter ends with a working result. If a chapter feels like it takes forever, skip to the next one — you can always come back.
--check, breakpoints, and how to ask for help.noUI).--%%file, packed and deployed as one device.flua test: the lamp checks its own behavior, and the suite says pass or fail in one line.bash
flua --version
In VS Code, open a terminal with Terminal → New Terminal in the menu.
Output shown after a command is what you should actually see on your screen (we removed the colors to keep it readable). Don't worry if the version numbers differ slightly.
Checkpoints mark the moments that matter:
✅ You should see — your name in the log. If you don't, re-read the previous steps; the answer is usually one line above.
Words in <angle brackets> are placeholders — replace them with your
values (your HC3's address, your password, …).
PDF edition. The whole tutorial as one PDF with a chapter index:
./scripts/build-tutorial-pdf.sh (needs pandoc and Chrome; writes
docs/tutorial/flua-tutorial.pdf, diagrams included).
The examples live in the examples/ directory of the flua repository —
several are exercised by flua's own test suite, and the tutorial's own
snippets are run against the engine the same way you will run them.
.vscode/extensions.json that --tool setup
installs); on GitHub they render on the page automatically.One promise before we start: you will not need to understand everything. QuickApps are small. The whole trick is a handful of ideas — this tutorial introduces them one at a time, exactly when the lamp needs them.