Skip to content

docs: one install line, Home Assistant first, old versions on their own page - #2002

Merged
frahlg merged 2 commits into
masterfrom
docs/simple-start
Nov 28, 2026
Merged

frahlg merged 2 commits into
masterfrom
docs/simple-start

Conversation

@frahlg

@frahlg frahlg commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Do not merge yet. This waits on four pieces: #2095 on master (the installer without --tag), srcfl/ftw-web#45 deployed (ftw.energy/install.sh serves the script), srcfl/home-assistant-addons#56 (the app with ingress, named FTW (beta)) and #2096 (Core takes Home Assistant's broker). Before them, the line on these pages fetches the ftw.energy home page, and the Home Assistant steps describe an app that is not out.

Problem

A newcomer met version history first. README and the install guides opened with 2.x and 3.x, step 1 of the Home Assistant guide was "stop another FTW", and a Linux install meant copying a tag from Releases into a twelve-line block. Row 9 of the onboarding review of 27 November names this. On 28 November Fredrik decided that the installer fetches the newest release itself, that Home Assistant opens FTW inside itself, and that FTW promises "Home Assistant or any 64-bit Linux computer: a Raspberry Pi 3 or newer, a mini PC, an old laptop".

Change

This finishes the draft of 10 November on current master. It keeps that draft's README opening, the dashboard and wizard pictures, docs/install.md with its Swedish copy, the Home Assistant button and the move of the driver-pin text to docs/device-repository.md.

  • README: five lines under Get started: Home Assistant, a Linux computer with the line, what FTW runs on, what a home needs, and the iPhone app (Android coming). Then one line for people who ran FTW before. No version history.
  • The line on every install page (docs/install.md, install-sv.md, the Pi guides in five languages, native-beta.md, update-sv.md): curl -fsSL https://ftw.energy/install.sh | bash -s -- --fresh-host. The pages say that it takes the newest stable, or the newest beta while there is none, that --beta and --tag exist, and that it prints the address to open.
  • After install: open the printed address. The setup page asks for the home (country, price zone, main fuse), the devices and a house password (none in Home Assistant).
  • docs/before.md, "Have you run FTW before?": one table from what runs now to what to do, then why to switch, what to save, the second card, the same computer and the old 3.x Home Assistant app. Each first-install page links to it in one line. Swedish pages link to update-sv.md.
  • Home Assistant pages (en + sv), written for the app after addons#56 and feat(ha): take Home Assistant's MQTT broker from the app #2096:
    • FTW (beta), version 0.x. Start on boot is on; the user turns on Watchdog.
    • Open Web UI opens FTW inside Home Assistant with its login, for admins. Show in sidebar pins it. The setup guide runs there and asks no house password.
    • Port 8080 is closed; a bookmark to it stops working.
    • The iPhone pairs by link or QR through FTW Cloud; the short code does not work there.
    • Entities appear with nothing typed once the Mosquitto broker app and the MQTT integration are in. If FTW started first, restart it once.
    • A stable app named FTW comes with the first stable. Moving to it is a new setup.
    • The old app's steps moved to before.md. The app name also changes in native-beta.md, update-sv.md and the first paragraph of ha-integration.md.
  • Pi guides: a Raspberry Pi 3 or newer; step 3 picks the model you have; step 5 no longer talks about an old card; step 11 has the line, the paste keys for PuTTY and Mac, and the printed address. The English, German, French and Spanish guides now link the English Discord invite.
  • native-beta.md and update-sv.md, kept small: a pointer to the short page at the top, the Install section, Pi 3 in the requirements, the curl: (22) row, the two app rows and one sentence about Home Assistant users.
  • AGENTS.md: the "single entry point" sentence now names docs/install.md for a first install and native-beta.md for every path and command.
  • scripts/test_install_docs.py: each install page must show the line exactly once. No page in README or docs/ may show another --fresh-host block, and a new page with the line must join the list. Two tests run the line with a fake curl: it pipes the installer to bash with --fresh-host, and a failed download runs nothing. The tests of the old tag block go; the Docker tests stay.
  • CI routing: classify-test-changes.sh now runs that test when README, docs/install.md or docs/setup-guide/*.md change, with a contract test. Before, only native-beta.md and update-sv.md did.

How #1530 rebases after this

#1530 also edits native-beta.md, update-sv.md and scripts/test_install_docs.py.

  • Keep the one line in both Install sections. Drop its tag=v0.X.Y change to the old --fresh-host block, which is gone, and follow feat(install): install the newest release with one line and print the real address #2095 there: without a tag the installer already takes the newest stable.
  • Keep its tag=v0.X.Y in the refresh and Docker blocks; recipe() still serves those.
  • In the test, drop its changes to test_native_success_runs_download_and_removes_temp_file and to the --fresh-host marker in test_rejects_placeholder_old_line_and_mistyped_tag_before_work; this PR replaced both.
  • Its new intro goes below the one pointer line this PR adds at the top of both pages.

Other open PRs on these files

Evidence

  • python3 scripts/test_install_docs.py: 12 tests OK. In a copy of the tree, each of these turns it red: -sSL for -fsSL in README, a second --fresh-host block in docs/install.md, the line cut from de.md, a new page with an old block, and a new page with the line that is not in the list.
  • bash .github/scripts/test-change-classifier.sh: passed.
  • .github/check-no-planning-docs.sh and .github/brand/check-brand-cleanup.sh against master: passed.
  • nice -n 10 env GOFLAGS=-p=3 make verify at fd82492 on macOS: "verify: vet + test + build clean", exit 0. It runs the install-docs test inside it.
  • Links: every relative link and heading anchor in all 76 tracked Markdown files resolves (598 links). The 24 external links in the changed pages answer 200, among them the App Store page, both Discord invites, the my.home-assistant.io button and redirect, and ftw.energy/#ai. stats.ftw.energy refuses HEAD and answers GET with 200.
  • https://ftw.energy/install.sh today ends at the home page (HTML), as ftw-web#45 says. That PR's Pages preview answers with the 302 to raw.githubusercontent.com/srcfl/ftw/master/scripts/install.sh.

Not tested

Found, not fixed here

For Fredrik

  1. The changeset gate fails, because scripts/test_install_docs.py sits outside the docs allowlist. Add the no-changeset label, or should this carry a changeset?
  2. The README tagline is the website's "Your home's energy, planned to cost less." from the first draft. Keep it?
  3. The pages no longer call the Home Assistant app a pilot, only a beta. Right?
  4. Swedish pages send returning users to update-sv.md, the Swedish switch guide, not to a Swedish copy of before.md. Enough?

Refs #2095, #2094, #2096, #1530, srcfl/ftw-web#45, srcfl/home-assistant-addons#56, srcfl/home-assistant-addons#57

🤖 Generated with Claude Code

frahlg and others added 2 commits November 28, 2026 06:30
A newcomer met the architecture first, then a warning about 2.x and 3.x,
and reached the install command on line 170 of a 541-line guide.

README now opens with what FTW does, a dashboard screenshot and Get
started: Home Assistant, then Raspberry Pi or Linux. docs/install.md is
the first-install page, with a Swedish copy. The switch guide keeps the
old-version material and is not changed here.

The Home Assistant guide describes the app as shipped: Open web UI goes
to port 8080. Core has an ingress mode, but the app does not turn it on
yet. Both guides gain the one-click "add repository" button.

The paragraphs about the bundled driver pin move from README to
docs/device-repository.md. The install-docs test now checks that the new
pages carry the same native block as docs/native-beta.md.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>
A newcomer met version history first and had to copy a tag from Releases
into a twelve-line block. With #2095 the installer picks the
release itself, so every install page now gives one line:

    curl -fsSL https://ftw.energy/install.sh | bash -s -- --fresh-host

README opens with five lines: Home Assistant, a Linux computer, what FTW
runs on, what a home needs, and the iPhone app. docs/before.md holds the
2.x/3.x, old Docker, second-card and old Home Assistant app material; each
first-install page links to it in one line.

The Home Assistant pages describe the app after
srcfl/home-assistant-addons#56 and #2096: FTW (beta) opens inside
Home Assistant behind its login, port 8080 is closed, entities need no
broker typed, and a stable app named FTW follows the first stable.

The Pi guides in five languages run the line in step 11, show the printed
address and list what the setup page asks. native-beta.md and update-sv.md
change only their install section, the hardware line and the app rows.

scripts/test_install_docs.py now requires the one line, exactly once, on
each page that installs, and no other --fresh-host block in README or
docs/. CI runs it when those pages change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>
@frahlg frahlg changed the title docs: a short first-install path, with Home Assistant first docs: one install line, Home Assistant first, old versions on their own page Nov 28, 2026
frahlg added a commit to srcfl/ftw-web that referenced this pull request Nov 28, 2026
The Linux path's "Step by step" now opens docs/install.md, the short
first-install page from srcfl/ftw#2002. The waitlist row asks for a
country again, optional, between the email and the button; at phone
width it stacks under the email. Tests check the link and that the
choices match the countries the worker accepts.

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@frahlg frahlg added the no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping) label Nov 28, 2026
@frahlg
frahlg marked this pull request as ready for review November 28, 2026 06:09
@frahlg
frahlg merged commit 590d993 into master Nov 28, 2026
16 of 17 checks passed
@frahlg
frahlg deleted the docs/simple-start branch November 28, 2026 06:09
frahlg added a commit to srcfl/ftw-web that referenced this pull request Nov 28, 2026
* Get FTW: two paths first, one install line and /install.sh

Section 05 now opens with the two ways to run FTW: the Home Assistant
button that adds srcfl/home-assistant-addons, and one line for a Linux
computer. It says what FTW runs on and what a home needs, links the
device catalog, and says the iPhone app needs FTW at home and Android
is coming. The box waitlist is one row after the paths.

_redirects sends /install.sh to scripts/install.sh on FTW's master with
a 302. Pages applies it because _routes.json keeps the path away from
_worker.js; a new test checks the rule, the routes and the page's line.

The English support page sent bug reports to the Swedish Discord
invite; it now uses the English one. The beta lines say "app beta" so
they still fit when FTW gets a stable channel. Both support pages point
to the two paths.

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Link docs/install.md and ask for a country on the waitlist row

The Linux path's "Step by step" now opens docs/install.md, the short
first-install page from srcfl/ftw#2002. The waitlist row asks for a
country again, optional, between the email and the button; at phone
width it stacks under the email. Tests check the link and that the
choices match the countries the worker accepts.

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Name the Home Assistant app FTW (beta), opened inside Home Assistant

srcfl/home-assistant-addons#56 renames the app "FTW (beta)" and opens it
inside Home Assistant through ingress. The home page and both support
pages now use that name, and say FTW opens from Open Web UI or the
sidebar. The pairing step on the support pages says the same. A test
keeps "0.x beta" off these pages.

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T06:11:22.397840Z fd82492 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd82492329

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/install.md
Log in to the computer, over SSH or at its own keyboard, and run:

```bash
curl -fsSL https://ftw.energy/install.sh | bash -s -- --fresh-host

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Land the tagless installer before replacing the working commands

On a fresh Linux host, the new command cannot install using the installer in this commit: scripts/install.sh still requires exactly three arguments, including --tag, and explicitly documents “There is no default tag.” Running it with the documented --fresh-host exits 2 with usage output. The new tests pass because they substitute a trivial installer rather than exercise that argument parser. Keep this documentation change blocked on the installer dependency, or retain the working tagged instructions until it lands.

AGENTS.md reference: AGENTS.md:L149-L151

Useful? React with 👍 / 👎.

Comment on lines +69 to +72
FTW's values appear as Home Assistant entities with nothing to type. Add the
**Mosquitto broker** app and the **MQTT** integration that Home Assistant then
offers. If FTW was already running when you added Mosquitto, restart FTW once.
The app log then shows `Home Assistant's MQTT broker is core-mosquitto:1883`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Retain manual MQTT setup until broker discovery is implemented

For a new Home Assistant installation, adding Mosquitto and restarting FTW does not enable the MQTT bridge in this revision. go/cmd/ftw/main.go passes cfg.HomeAssistant directly to haOwner.Apply, whose guard in go/cmd/ftw/ha_bridge_owner.go requires a non-nil configuration with Enabled set; there is no Supervisor broker discovery implementation in the reviewed tree. Replacing the manual configuration instructions with this automatic flow leaves users without entities regardless of restarts. Land the broker-discovery dependency first, or retain the manual setup link and mark automatic configuration as proposed.

AGENTS.md reference: AGENTS.md:L149-L151

Useful? React with 👍 / 👎.

Comment thread docs/native-beta.md
Comment on lines +192 to +193
stopped containers or data in a custom directory. A download that stops
partway runs nothing.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve download completion checks before executing the installer

If the script transfer fails after delivering complete shell statements, the new curl | bash command executes that prefix, contrary to this guarantee; unlike the removed temporary-file block, it does not wait for a successful download. curl --help all describes -f as “Fail fast with no output on HTTP errors,” which does not cover interrupted successful responses. A fake curl that prints echo PARTIAL_INSTALL_EXECUTED and then exits 18 reproduces execution and a pipeline exit status of 0. Buffer and validate the complete download before execution, and extend the new failure test beyond its current empty-response case.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant