Fix Orion AMS mapping and show printer health details
This commit is contained in:
@@ -21,7 +21,9 @@ The configured swipe order is:
|
||||
2. Polly-Pocket — A1 mini, Office, external spool.
|
||||
3. Ds-Turd-Flinger — A1, Upstairs, four-slot AMS.
|
||||
4. Jordyns-Layer-Slayer — A1, Upstairs, four-slot AMS.
|
||||
5. Constipation-Orion — Office, left/right nozzles and four-slot AMS.
|
||||
5. Constipation-Orion — Office, left/right nozzles and both four-slot AMS units.
|
||||
AMS A uses `constipation_orion_ams_1`; AMS B retains its original
|
||||
`h2c_31b8ap5a2200288_ams_2` entity prefix.
|
||||
|
||||
Swipe left for the next printer or right for the previous printer. Navigation wraps
|
||||
from the last page to the first. Previous/Next buttons provide the same navigation.
|
||||
@@ -34,9 +36,25 @@ stage, fan speeds and filament colors/types. The layout follows BambuHelper's
|
||||
classic gauges: black background, bright green accents, six arc gauges and a
|
||||
vertical AMS column. Nozzle arcs are orange and the bed arc is cyan. For dual-nozzle
|
||||
printers the auxiliary-fan position becomes the right-nozzle gauge. The active
|
||||
filament slot has a green outline. Print errors
|
||||
and HMS alerts change the status badge to red; paused prints use amber. The display
|
||||
shows an alert badge rather than the detailed HMS diagnostic text.
|
||||
filament slot has a green outline. Print errors use red; paused prints use amber.
|
||||
|
||||
**HMS means Health Management System.** Its binary sensor means the Bambu integration
|
||||
has one or more printer health notifications, which can include information or
|
||||
maintenance messages as well as faults. Tap the status in the upper-right corner
|
||||
or the scrolling message above the footer to open the health-details panel. It
|
||||
shows the codes, severities and descriptions reported by Home Assistant, for up to
|
||||
three current HMS notices, plus print-error details. Scroll vertically for long
|
||||
messages and tap Close to return. If more than three notices exist, the panel says
|
||||
how many additional notices are available in Home Assistant.
|
||||
|
||||
The status uses **HEALTH INFO** (cyan) for information-only notifications,
|
||||
**HEALTH NOTICE** (amber) for common/unknown severities or incomplete details, and
|
||||
**HEALTH ERROR** (red) for fatal/serious severities. Severity comes from the Bambu
|
||||
integration's `N-Severity` attributes. Missing or unloaded messages never establish
|
||||
an information-only status. The display does not dismiss or clear printer alerts.
|
||||
The [`hms_errors` sensor attributes](https://github.com/greghesp/ha-bambulab/blob/main/custom_components/bambu_lab/pybambu/models.py)
|
||||
provide `Count`, `1-Code`, `1-Error`, `1-Severity`, and the corresponding numbered
|
||||
fields for subsequent notices. Stale attributes are ignored when the sensor is off.
|
||||
|
||||
When Home Assistant disconnects or a printer is offline, its live metrics are cleared
|
||||
to `--` rather than continuing to show cached values as live. Unknown individual
|
||||
@@ -140,7 +158,8 @@ python esphome/bambu-display/preview.py
|
||||
```
|
||||
|
||||
`preview.py` compiles the same generated LVGL widgets for ESPHome's SDL host with
|
||||
clearly synthetic telemetry, then captures all five pages into `previews/`. It needs
|
||||
clearly synthetic telemetry, then captures all five pages and a synthetic health
|
||||
notice into `previews/`. The demo notice is not a diagnosis of any real printer. It needs
|
||||
ESPHome, Pillow, a C++ compiler and SDL2 (`sdl2-config` on PATH). It runs headlessly,
|
||||
without connecting to Home Assistant or any printer. It also injects LVGL pointer
|
||||
samples to check left/right swipes, page wraparound and consumption of a swipe that
|
||||
|
||||
Reference in New Issue
Block a user