homeos/database/migrations
HomeOS Bootstrap fef393954c feat(mqtt): Home-Assistant-style onboarding — shared account + auto-create
Addresses "I have to configure MQTT per device; HA just works":
- Shared device account `shelly` (one credential every Shelly uses) with a
  SCOPED ACL (status/events/online/rpc for any prefix; cannot touch homeos/,
  ring/ or $SYS). gen-passwd seeds it from MQTT_SHELLY_PASSWORD.
- Auto-onboarding: IngestShellyMessage creates the device on the first
  recognizable component (sys/wifi/cloud noise ignored), so pointing a Shelly
  at the broker is all it takes — no manual "Zuweisen". Partial unique index on
  config->>'mqtt_prefix' + race-safe create (merge-dedup migration).
- Settings → Geräte-MQTT card: server, username, reveal/copy password + steps
  (config/homeos.php, MQTT_DEVICE_HOST). Discovery "Zuweisen" now upserts by
  prefix (names/rooms an already-onboarded device, no duplicate) and no longer
  forces per-device creds.
- Per-device credentials kept as opt-in hardening: a "generate" button on the
  device page (pattern %u ACL retained).

Live-verified: publishing as `shelly` to a new prefix auto-creates the device
with switch+power state; a sys topic creates nothing. Suite 46 green, 12/12
tabs clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 08:20:57 +02:00
..
0001_01_01_000000_create_users_table.php Phase 1: bootstrap — Docker stack, Laravel 13, design system, auth 2026-07-17 21:06:20 +02:00
0001_01_01_000001_create_cache_table.php Phase 1: bootstrap — Docker stack, Laravel 13, design system, auth 2026-07-17 21:06:20 +02:00
0001_01_01_000002_create_jobs_table.php Phase 1: bootstrap — Docker stack, Laravel 13, design system, auth 2026-07-17 21:06:20 +02:00
2026_07_17_201001_create_rooms_table.php Home dashboard + Host tab: device state & warnings, server status split out 2026-07-17 21:20:38 +02:00
2026_07_17_201002_create_devices_table.php Home dashboard + Host tab: device state & warnings, server status split out 2026-07-17 21:20:38 +02:00
2026_07_17_201003_create_entities_table.php Home dashboard + Host tab: device state & warnings, server status split out 2026-07-17 21:20:38 +02:00
2026_07_17_201004_create_device_states_table.php Home dashboard + Host tab: device state & warnings, server status split out 2026-07-17 21:20:38 +02:00
2026_07_17_202001_create_commands_table.php Phase 3: MQTT ingest — Mosquitto bus, Shelly driver, live device state 2026-07-17 22:51:14 +02:00
2026_07_17_203001_add_observed_at_to_device_states.php Fix R15: reject out-of-order MQTT state updates (concurrency) 2026-07-17 23:01:32 +02:00
2026_07_17_203002_add_demo_to_devices.php Fix R15: per-device MQTT ACLs, monotonic presence, real-device online semantics 2026-07-17 23:08:29 +02:00
2026_07_18_000001_create_persons_discovery_automations_tables.php All sidebar tabs are real pages (zero console errors) 2026-07-18 00:16:16 +02:00
2026_07_18_010001_add_mac_to_persons.php Phase 5: UniFi presence — poll, person↔client mapping 2026-07-18 00:31:32 +02:00
2026_07_18_020001_create_metrics_table.php Charts: Chart.js MQTT + host traffic on the Host page 2026-07-18 00:40:32 +02:00
2026_07_18_030001_add_panel_to_entities.php Tablet control panel: touch tiles, drag-reorder, light colour modal 2026-07-18 00:58:24 +02:00
2026_07_18_040001_add_dry_run_to_automations.php feat(automations): trigger→condition→action engine with cooldown + dry-run 2026-07-18 01:11:02 +02:00
2026_07_18_050001_create_addons_table.php feat(addons): installable integrations framework + Ring connect UI 2026-07-18 01:47:02 +02:00
2026_07_18_060001_add_ring_id_unique_index_to_devices.php fix(addons): merge duplicate Ring devices' entities instead of dropping (R15) 2026-07-18 02:07:50 +02:00
2026_07_18_070001_add_mqtt_prefix_unique_index_to_devices.php feat(mqtt): Home-Assistant-style onboarding — shared account + auto-create 2026-07-18 08:20:57 +02:00