hvac/backend/src/routes
jtricerolph d7cbb0c452 hvac: add gateway delete (retire the old Modbus gateway config)
There was no way to remove an mhi_gateways row either, alongside the
already-fixed device-delete gap — exposed by the same Modbus->MQTT
switchover. Adds DELETE /api/mhi-gateways/:id (manage_devices cap) and a
'Delete gateway' button. Devices referencing the gateway are NOT deleted
(mhi_gateway_id just goes NULL per the existing ON DELETE SET NULL FK) —
the confirm dialog says so and points at the separate device-delete flow
for retiring the stale mhi_modbus rows too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-13 14:19:02 +00:00
..
config.js Scaffold Phase 1 hvac app — NewBook-driven room TRV heating scheduler 2026-07-26 18:00:42 +00:00
devices.js hvac: add device delete (retire stale mhi_modbus rows after MQTT switch) 2026-08-13 13:51:41 +00:00
mhi-gateways.js hvac: add gateway delete (retire the old Modbus gateway config) 2026-08-13 14:19:02 +00:00
override.js hvac: native MQTT driver for MHI aircon (replaces Modbus for control/status) 2026-08-13 13:31:01 +00:00
settings.js Scaffold Phase 1 hvac app — NewBook-driven room TRV heating scheduler 2026-07-26 18:00:42 +00:00
status.js Redesign dashboard zone card with live temps, AC status, and per-radiator state 2026-07-27 20:25:50 +00:00
zones.js Scaffold Phase 1 hvac app — NewBook-driven room TRV heating scheduler 2026-07-26 18:00:42 +00:00