MQTT Discovery not working properly with zigbee2mqtt

Hi,

I am trying to add a Tradfri zigbee bulb to homeassistant via zigbee2mqtt. For some reason, the main “light” entity is not being discovered. The device does exists, there is just no entity for it.

This is what is being sent to homeassistant/light/0x8c6fb9fffe1b47ab/light/config:

{
    "availability": [
        {
            "topic": "zigbee2mqtt/bridge/state"
        }
    ],
    "brightness": true,
    "brightness_scale": 254,
    "color_mode": true,
    "command_topic": "zigbee2mqtt/living_room_ceiling_light/set",
    "device": {
        "identifiers": [
            "zigbee2mqtt_0x8c6fb9fffe1b47ab"
        ],
        "manufacturer": "IKEA",
        "model": "TRADFRI LED bulb E27 1055 lumen, dimmable, white spectrum (LED2201G8)",
        "name": "living_room_ceiling_light",
        "sw_version": "2.4.5"
    },
    "effect": true,
    "effect_list": [
        "blink",
        "breathe",
        "okay",
        "channel_change",
        "finish_effect",
        "stop_effect"
    ],
    "json_attributes_topic": "zigbee2mqtt/living_room_ceiling_light",
    "max_mireds": 454,
    "min_mireds": 250,
    "name": null,
    "object_id": "living_room_ceiling_light",
    "origin": {
        "name": "Zigbee2MQTT",
        "sw": "1.33.2",
        "url": "https://www.zigbee2mqtt.io"
    },
    "schema": "json",
    "state_topic": "zigbee2mqtt/living_room_ceiling_light",
    "supported_color_modes": [
        "xy",
        "color_temp"
    ],
    "unique_id": "0x8c6fb9fffe1b47ab_light_zigbee2mqtt"
}

Any help is appreciated

Have you solved your issue? I have another problem. It blinks twice when turned on, keep the brightness and color from previous state until after about 5s when turns on. Turning on/off works without any issues from zigbee2mqtt, the problem seems to be between HA and the addon Z2M.