MQTT Light entities lost after HA restart

Hi All,

I have turned off retain on Hub side and HA site because sometimes retained messages are still in broker and give me some issues. But when I remove those retains I lost my light entities in HA after a restart.

Below the config of one of my lights:

light:
  - name: "Balcony All"
    unique_id: "2b23416c-0030-4d99-af4d-99b8d8cf78ad"
    command_topic: "milight/0xAAA4/rgb_cct/1"
    state_topic: "milight/states/0xAAA4/rgb_cct/1"
    schema: "json"
    availability_topic: "milight/client_status"
    payload_available: "connected"
    payload_not_available: "disconnected"
    brightness: true
    rgb: true
    color_temp: true
    max_mireds: 370
    min_mireds: 153
    retain: false
    effect: true
    effect_list:
      - "night_mode"
      - "white_mode"
      - "0"
      - "1"
      - "2"
      - "3"
      - "4"
      - "5"
      - "6"
      - "7"
      - "8"

When I restart HA all lights are “unknown” but when I check the MQTT Broker with MQTT Explorer on my Macbook all topics are still there.

What can I do to solve this or what do I need to do to let this work. In all documentation I see that retain is by default false.