Skip to content

NetAlertX (Docker latest) - MQTT plugin missing / not exposed (GraphQL build) - Unable to integrate with Home Assistant via MQTT #1568

@Rishabh11200

Description

@Rishabh11200

What installation are you running?

Production (netalertx) 📦

Did I research?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Other (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

What I want to do

I am trying to integrate NetAlertX running on a Raspberry Pi (local network) with Home Assistant running on a VPS.

My architecture:

  • NetAlertX running locally on Raspberry Pi (Docker)
  • Home Assistant + Mosquitto running on VPS
  • VPN (WireGuard) connects Pi ↔ VPS

Goal:

  • Use NetAlertX to detect devices on LAN
  • Send device presence to Home Assistant via MQTT (as documented)

What I tried:

  1. Installed latest official Docker image:
    ghcr.io/netalertx/netalertx:latest

  2. Successfully:

    • Enabled scanning (ARP works)
    • Enabled GraphQL API
    • Verified devices query via GraphQL works
  3. Attempted to enable MQTT:

    • Checked UI → no MQTT option
    • Checked Publishers → only Email available
    • Tried ENV variables (MQTT_ENABLE, MQTT_SERVER, etc.) → no effect
    • Queried GraphQL → plugins field not available
    • Checked container filesystem → no MQTT plugin present

Conclusion:
MQTT plugin appears to be missing or not included in this image.


Expected behavior:

  • MQTT plugin should be available (as per docs)
  • Ability to enable MQTT and connect to Home Assistant

Actual behavior:

  • No MQTT plugin in UI
  • No MQTT via GraphQL
  • No MQTT functionality available at all

Question:
Is MQTT plugin intentionally removed/disabled in the current ghcr.io/netalertx/netalertx:latest image?

If yes:

  • What is the recommended way to integrate with Home Assistant?
  • Should we use GraphQL instead?

If not:

  • How can MQTT be enabled in this image?

Relevant settings you changed

Docker run command:

docker run -d
--name netalertx
--network=host
--restart unless-stopped
--cap-add NET_ADMIN
--cap-add NET_RAW
--cap-add NET_BIND_SERVICE
-v netalertx_data:/data
-v /etc/localtime:/etc/localtime:ro
--tmpfs /tmp
-e PORT=20211
-e APP_CONF_OVERRIDE='{"GRAPHQL_PORT":"20214"}'
ghcr.io/netalertx/netalertx:latest

GraphQL enabled and working:
http://PI_IP:20214/graphql

Working queries:

  • devices
  • settings
  • appEvents

Missing:

  • plugins query
  • MQTT functionality

docker-compose.yml

Not using docker-compose. Running container via docker run.

app.log

Key observations from logs:

  • GraphQL initialized successfully
  • Device scanning working
  • No references to MQTT in logs
  • No MQTT connection attempts
  • No plugin loading logs related to MQTT

Additionally:

  • No errors related to MQTT → suggests plugin not loaded at all

Debug enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Setup 📥These are probably setup or user environment related issues.Waiting for reply⏳Waiting for the original poster to respond, or discussion in progress.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions