Commit graph

5 commits

Author SHA1 Message Date
9bb5645f8d Fix jumping field order, tidy labels/units on Dashboard field list
The unordered plant_asset_latest query could return rows in a different
order after every MQTT upsert, making the field list under each asset card
appear to shuffle. Added ORDER BY, plus a curated label/unit/order table
for the known water-softener fields (Salt Level 42%, Tank A Capacity
1850 L, Regeneration Active Yes/No, ...) with a title-case + alphabetical
fallback for anything not yet mapped.
2026-07-30 09:49:14 +00:00
4f048a9629 Add configurable water-softener diagram to Dashboard
Per-asset diagram_config (JSONB) maps live MQTT field_keys to brine/resin
tank roles, editable on the Assets page with dropdowns populated from that
asset's actual telemetry. Dashboard renders brine + 1-2 resin tanks with
color-coded fill levels, an "in service" tank indicator, and an animated
flow/regen indicator when regeneration is active.
2026-07-30 09:02:12 +00:00
bf538df2d9 Revert to fetching MQTT credentials from the shared integration
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-29 07:50:33 +00:00
251c3ead59 Fetch MQTT credentials from plant's own settings integration
Was reading the shared central mqtt integration, which meant plant
silently authenticated as whichever app's credentials were pasted
there (no plant/# ACL on any of them, so no telemetry ever arrived).
Now reads mqtt_plant instead, its own dedicated slug.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 22:46:52 +00:00
503b397dff Scaffold plant app - MQTT monitoring for boiler-room equipment
Read-only monitoring/alerting for boilers, water softener, calorifiers
and pumps via a generic MQTT-topic-prefix asset model, so new
equipment can be onboarded without new ingestion code. Threshold and
stale-data alert rules with email + in-app notification.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 21:16:02 +00:00