Homeassistant / Zigbee does not work after migrating z2m docker to HA OS

I migrated Homeassistant and Zigbee2Mqtt from Docker to HA OS through a backup and restore.

I can operate all of my Zigbee devices without errors in the Zigbee2Mqtt addon (version: 1.39.0-1) and the Mosquitto broker (version: 6.4.1).

However, I do not get the system operating from Homeassistant. All of the lamps switched stay greyed out.

I am using this zigbee2mqtt configuration.yaml file:

mqtt:
  server: mqtt://core-mosquitto:1883
  user: MQTT-user
  password: [****]
serial:
  port: /dev/ttyACM0
advanced:
  rtscts: false
  pan_id: 6755
  ext_pan_id:
    - 221
    - 221
    - 221
    - 221
    - 221
    - 222
    - 221
    - 221
  channel: 11
  network_key:
    - 220
    - 123
    - 244
    - 164
    - 234
    - 17
    - 254
    - 148
    - 102
    - 176
    - 232
    - 170
    - 123
    - 17
    - 18
    - 19
  availability_timeout: 30
  log_level: info
devices:
  '0x14b457fffe71b542':
    friendly_name: test_lamp

The addon shows this configuration:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  server: mqtt://core-mosquitto:1883
  user: MQTT-user
  password: [****]
serial:
  port: /dev/ttyACM0
frontend: true
advanced:
  pan_id: 6755

Btw, the device (in this case ‘test_lamp’) has this message in HA:
This entity is no longer being provided by the mqtt integration. If the entity is no longer in use, delete it in settings.

What am I missing?
Thanks for helping me out…

add

homeassistant: true

to Zigbee2MQTT’s configuration.yaml and restart Zigbee2MQTT

Thanks for your help. I added

homeassistant: true

but it does not change much though…
I am not sure it is placed in the right section.
I toggled yaml mode off and on and then it automatically placed it like this:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  server: mqtt://core-mosquitto:1883
  user: MQTT-user
  password: [****]
serial:
  port: /dev/ttyACM0
homeassistant: true
frontend: true
advanced:
  pan_id: 6755

It really does not matter where, as long as it totally left (no spaces in front)

If that does not work, I guess I would check your mqtt integration in HA.

mmm, I hear you but I wouldn’t know where to start checking MQTT.

Settings → Integrations → MQTT → Configure → Listen to a topic → Zigbee2MQTT/#

I couldn’t make sense of all this, so I started from scratch and everything is okay now.

Thanks for helping me out.