Zigbee2mqtt and Auto discovery

zigbee2mqtt is installed and running without errors. I have added 5 devices. 2 of the 5 show up in mqtt devices with missing entities. The other 3 do not show up at all. zigbee2mqtt writes to /zigbee2mqtt but writes nothing to /homeassistant in mqtt.
homeassistant: true is in zigbee2mqtt config file and mqtt Auto discovery is enabled at /homeassistant.
Mqtt logs say auto discovery skipped because device already exists. I tried renaming them which didn’t work.
I was using ZHA , removed all devices which removed the integration. The devices are re-added by factory resetting them. The devices show up correctly and work in zigbee2mqtt.
Been at this for 5 days now and I am at a loss on what else to try.