Skip to content

[BUG] MQTT auto discovery (HA) seems not to work #5431

@networxnet

Description

@networxnet

Describe the bug
MQTT documentation tells:
_

MQTT - Auto Discovery
(AutoDiscovery related settings added 2025/06/28)

Enable Auto Discovery: When checked, the controller will send discovery data for all connected and enabled tasks to the MQTT server on first startup, and when receiving an online message in the Discovery Trigger Topic, when configured.

_

But where is the mentioned "Enable Auto Discovery" checkbox? I can't find on april release nor on the november nightly i tried yesterday.
As the documentation has been updated in june i'm a bit confused.

Image

In addition, the config message that is sent and that Home Assistant needs for discovery and entity creation appears to be empty or incorrectly filled.
If I understand correctly, these functions should have been updated or implemented with #5199 .

What you see here is what I managed to achieve with a lot of tinkering and adding "/config" to the "Controller Subscribe" and "Controller Publish" topics. However, no config message with the necessary information is sent here on its own. Therefore, the MQTT integration in HA does not create any entities.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'controllers/MQTT'
  2. check for Auto Discovery checkbox or feature
  3. check mqtt messages send, i. e. in MQTT Explorer integration

Expected behavior
Aktivierung der MQTT Autodiscovery Funktion möglich, damit die nötigen Messages gesendet werden.

Used platform (please complete the following information):

  • ESP type: ESP8266
  • Build version: [ESP_Easy_mega_20251105_custom_312_ESP8266_4M2M_LittleFS Nov 5 2025]

Platform Specifics (when applicable, please complete the following information):

  • Flash size: 4M
  • Brand/Model: NodeMCU
  • Browser + OS Win10 + Brave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions