ESP32 + CC1101 no autodiscovery of devices in HAOS

i have succesfully build an omg gateway with an ESP32 and CC1101.

compiled with platformio

these are my env. settings.

platform = ${com.esp32_platform}
board = esp32dev
`
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.rc-switch}
  ${libraries.wifimanager32}
  ${libraries.smartrc-cc1101-driver-lib}
build_flags =
  ${com-esp.build_flags}
  '-DZradioCC1101="CC1101"'
  '-DGateway_Name="OpenMQTTGateway_ESP32-CC1101"

and in my user_config.h i enabled these 2 lines.

#define ZgatewayRF "RF" //ESP8266, Arduino, ESP32 #define ZradioCC1101 "CC1101" //ESP8266, ESP32

in the serial monitor i can see that is is recieving data but there are no new switches added to home assistant

N: Send on /433toMQTT msg {"value":25720124,"protocol":1,"length":27,"delay":339,"tre_state":"-","binary":"001100010000111010100111100","raw":"65313,401,1134,371,1123,1151,378,1103,405,368,1127,378,1126,372,1150,1134,367,398,1122,380,1130,372,1123,383,1128,1121,400,1109,398,1126,375,372,1132,1128,398,374,1128,1129,370,397,1125,381,1128,1120,380,1132,398,1122,378,1134,371,373,1144,375,1128,","mhz":433.92} N: no pub. dupl N: [ MQTT->OMG ]: {"value":25720124,"protocol":1,"length":27,"delay":339,"tre_state":"-","binary":"001100010000111010100111100","raw":"65313,401,1134,371,1123,1151,378,1103,405,368,1127,378,1126,372,1150,1134,367,398,1122,380,1130,372,1123,383,1128,1121,400,1109,398,1126,375,372,1132,1128,398,374,1128,1129,370,397,1125,381,1128,1120,380,1132,398,1122,378,1134,371,373,1144,375,1128,","mhz":433.92} N: Send on /SYStoMQTT msg {"uptime":487,"version":"version_tag","freemem":254140,"mqttport":"1883","mqttsecure":false,"freestack":4632,"rssi":-67,"SSID":"ag netwerk","BSSID":"D8:07:B6:5F:EE:26","ip":"192.168.1.16","mac":"30:C6:F7:29:31:5C","actRec":2,"mhz":433.92,"modules":["RF"]}

Take a look with MQTT Explorer, do you see anything on the homeassistant topic ?

Also the compiler definition for this feature is mqttDiscovery and RFmqttDiscovery, which should be enabled by default

PS Rather than editing users_config.h, you can just add the definitions to your environment

ie

build_flags =
  ${com-esp.build_flags}
; *** OpenMQTTGateway Config ***
;  '-UZmqttDiscovery'          ; disables MQTT Discovery
  '-DvalueAsASubject=true'
  '-DLOG_LEVEL=LOG_LEVEL_TRACE'
; *** OpenMQTTGateway Modules ***
  '-DZgatewayRF="RF"'
  '-DZgatewayRF2="RF2"'
  '-DZgatewayRTL_433="rtl_433"'
  '-DZgatewayPilight="Pilight"'
  '-DZradioCC1101="CC1101"'