Repository navigation
Conversation
|
Copying your questions over from Discord, with my responses.
I would prefer that this all stays within the https://github.com/emsesp project. It could be a new repo with downloadable assets. The reason is that I want to limit external dependencies, if possible, and keep everything together. I have an obligation to support those people who purchased a BBQKees gateway board. I can make admin and co-owner on ems-esp so you still have full control.
Also, I prefer adding the live web editor to https://github.com/emsesp/docs, like the other two editors: https://docs.emsesp.org/entity-translation-editor and https://docs.emsesp.org/webui-translation-editor. It keeps everything under one roof. And the scripts are there to ensure the styling is the same and the pages are automatically translated using DEEPL.
A few recommendations here
This way you can use the existing Download/Upload feature. Language files can be drag & dropped like any other supported JSON file and uploaded. That means removing the "Install from a file" in the Dashboard and only making a reference and link to the Download/Upload page. This keeps the Dashboard tidy, and we're not mixing system changes into a 'Dashboard' which is primarily used for looking at data. I believe this is a core principle we need to keep too. |
0a0dea0 to
f6da79c
Compare
|
Thanks, that all makes sense to me. Here's where things stand and what I'd suggest: Already done in this PR Pack files now start with a header ("type": "faultpack", plus format and version). The Download/Upload page recognizes them and installs them without a restart. All other JSON files go the old way. Lists and packs Happy to move the lists and packs into the emsesp org and to take you up on the co-owner offer. Editor I ported it to React in the style of the two existing editors (same toolbar, table, flag selects, translate-faultcodes.js next to the DeepL scripts) and will open a PR against emsesp/docs once the repo has moved, so it points to the right place by default. Questions Repo name OK as emsesp/faultcodes? |
asnwering your questions:
it makes sense to merge this PR when everything is in place correct? |
Fault code packs are files with the explanations of a manufacturer's fault codes in one language. The gateway stores them (gzip compressed) on the file system, so every browser can read them without internet: GET /rest/faultPacks, GET /rest/faultPack, POST /rest/uploadFaultPack and POST /rest/deleteFaultPack (admin). Size and names are checked by the gateway. The mock server has the same endpoints. faults/README.md specifies the format.
The last fault, the controller fault and the service code show their meaning, possible cause and remedy on the Dashboard tiles and on Maintenance & faults, from the pack of the brand of the device. A pack is installed from a file; it can have scopes (product series), flags for texts that are machine translated or not translated yet, and a lookup for a code. A pack is only used for devices of its brand. Without a pack the raw code is shown.
A fault code pack starts with "type": "faultpack", like the other files EMS-ESP creates. The Download/Upload page has a section for it with a drop zone, a description, the disclaimer and the link to the list of packs. A pack is stored on the gateway without a restart, and only when the system has a device of its brand. The Dashboard only lists the installed packs and links to that page, so it stays a place for looking at data. Texts in all 13 languages, English labels in title case.
…texts for the fault code keys
f6da79c to
dbdb5f3
Compare
|
Yes, merging this PR once everything is in place sounds right. Here is where things stand: Everything is in place now https://github.com/emsesp/faultcodes has the lists and the packs, and the first release (v2026-11-28) is published with every pack and index.json as a downloadable file. A new tag publishes a new release. Change suggestions arrive as issues with the label suggestion. For you Where should the editor be linked in the docs (navigation or sidebar)? For now it is at /faultcode-editor and mentioned in docs/Adding-Languages.md. Dashboard issues: a new GitHub issue assigned to me is fine, one issue per problem (or one issue with a checklist if they are tiny), with a screenshot and the page where you saw it. I will fix them in a separate PR against dev so this one stays focused on the fault code packs. If you prefer a list in this thread, that works too. |
What this adds
The Dashboard shows the fault codes of the devices as they are reported (for example
H08(1018)orA11(3071)). This PR adds the explanation: what the code means, the possible cause and what to do.The explanations are not part of the firmware or the Web UI. They are fault code packs: one JSON file per manufacturer and language. A pack is installed from a file on the gateway, which stores it, so every browser can use it afterwards, also without internet. Without a pack nothing changes: the raw code is shown as before.
In the Web UI (Dashboard)
H08,6A 227,H08(1018),1018).applies.unbranded_with_boiler).scopes: product ids or words in the device name), because one code can mean different things within a brand. An entry with a scope is only used for a matching device.In the firmware (
WebFaultPackService)GET /rest/faultPacks(installed packs and free space) andGET /rest/faultPack?brand=..&lang=..for signed-in users.POST /rest/uploadFaultPackandPOST /rest/deleteFaultPackfor administrators./faults/<brand>.<lang>.jsonwith a small.metafile (version, number of entries). The browser compresses the file before the upload, so a pack of 350 KB needs about 45 KB.brandandlangonlya-z0-9-(the file name is built from them, never taken from the upload), at most 256 KB compressed, at most 16 packs, at least 32 KB of free space must stay, written to a temporary file and renamed, so a failed upload leaves the old pack intact.The format is specified in
faults/README.md.Why
A fault code on its own is hard to understand for most users, and the explanations exist in the service documents of the manufacturers. Putting them into the firmware would need space and updates for every brand and language, and it would make EMS-ESP responsible for texts that belong to the manufacturers. As separate files they can be corrected and extended by anybody without a firmware release, and a user installs only what he needs.
How it works
lastcodeof the boiler and the thermostat,servicecode). The brand comes from the device.format,brand,lang,version,sourceandlicense(the origin of the texts is always visible), the structure ofclasses,scopesandcodes, and the size.Size
WebUI size from
pnpm build-webUI(compressed, as flashed):dev(3cd39b8)The firmware part is one service (
src/web/WebFaultPackService.*, about 440 lines, plus 3 lines inemsesp.cpp/.h). I haven't measured its size in the binary;pio run -e s_16M_Pbuilds.Tests
pnpm exec tsc --noEmit,pnpm exec eslint .(0 errors; the 4 existing warnings are in generated files) andpnpm build-webUIpass on top of currentdev(3.10.0-dev.11).pnpm check-layout: the English casing check runs and only reportsFW_RESTART_RESET, which is not from this PR. I haven't run the layout part of the script, it needs the Playwright browsers.pio run -e s_16M_Pbuilds. The native/standalone build was not compiled by me.pnpm standalone): the mock has the same four endpoints. Tried: installing a pack from a file, the cards and the Notes tile, the lookup, the scope of an entry (checked with a device name that matches and one that doesn't), the hints for machine translated texts, a file that is not a valid pack (refused). Removing a pack was not tried in the mock.H08(1018), the last controller faultA11(3071)and the service code-H(200)show their explanation on the cards and on the Notes tile; the lookup finds6A 227. Not tried on a device: removing a pack, a restart of the device with an installed pack, a board with a small file system, a pack of another brand, a pack with scopes.Translations
New keys (
SYS_FAULT_*) are in all 13 languages. English and German are by me; the other languages are drafts for review by a native speaker, marked// draft, please review. The new English strings follow the sentence case rule.Documentation
CHANGELOG_LATEST.mdhas two entries.faults/README.mdis the specification of the format and the API.Open points for review
https://github.com/beabel/EMS-ESP-faultcodes/tree/main/packs(FAULT_PACK_LIST_URLinfaultPacks.ts), a repository I maintain: Buderus (about 1200 entries, German; English and Dutch drafts), Junkers, Nefit and Worcester (small lists, made from the manufacturer documents). It also has a browser editor for people who don't program. The link is one line and can point anywhere else; the firmware doesn't depend on it.NOTICE.mdof that repository), and the Web UI says that the explanations come without a guarantee. I would like to know whether you are fine with linking to such packs, and whether you want them kept somewhere else.applies.brands) is accepted by the format, but the Web UI only looks up the installed pack of the device's own brand, so it has no effect yet.Checklist
devCHANGELOG_LATEST.md,faults/README.mdCONTRIBUTING.md