Skip to content

Add compile-time custom MQTT connector via custom/ overlay#1204

Merged
gskjold merged 1 commit into
mainfrom
feature/custom-mqtt
Jun 12, 2026
Merged

Add compile-time custom MQTT connector via custom/ overlay#1204
gskjold merged 1 commit into
mainfrom
feature/custom-mqtt

Conversation

@gskjold

@gskjold gskjold commented Jun 12, 2026

Copy link
Copy Markdown
Member

Adds an optional compile-time custom MQTT connector, enabled via the custom/ overlay (CUSTOM_MQTT_* defines in custom/config.h; see custom-example/config.h). When the overlay isn't present the build is unchanged.

  • custom-example/config.h: documents the CUSTOM_MQTT_* options.
  • scripts/generate_includes.py: surfaces the defines into CustomDefaults.h.
  • AmsToMqttBridge.cpp: wires the second/custom MQTT connector behind the defines.

Builds: esp8266 + esp32 pass (default, overlay absent).

Wires custom/config.h into the build through a generated CustomDefaults.h
and runs a second MQTT handler in parallel with the web-configured one,
gated by CUSTOM_MQTT_HOST. Mirrors every publish the primary handler
emits: meter data, system, firmware, temperatures, prices.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: f0b5a1e

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold gskjold merged commit 639911d into main Jun 12, 2026
7 checks passed
@gskjold gskjold deleted the feature/custom-mqtt branch June 12, 2026 10:03
gskjold added a commit that referenced this pull request Jun 12, 2026
Re-adds ws.setCustomMqttHandler() in handleCustomMqtt() and the
CUSTOM_MQTT_NAME overlay option, decoupled earlier while the custom-MQTT
connector was a separate PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
gskjold added a commit that referenced this pull request Jun 12, 2026
…ine (#1205)

Per-service status tile on the status page, header services badge colored by worst state, and the Localazy source-of-truth pipeline (localazy/source/en.json). Custom MQTT row wired now that #1204 is merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant