Zigbee2MQTT / WLAN connection problem

Home Assistant OS
Zigbee2MQTT
Mosquitto broker
Shelly 2PM Gen4

(Using the latest versions and firmware)

After pairing the Shelly (factory reset followed by 5 presses), it can

join Zigbee2MQTT and is also displayed in the overview.

The Shelly is then functional, but the Wi-Fi remains active.

If I deactivate the Shelly’s Wi-Fi connection, this
error message is displayed:

Setup error, retrying: A device communication error occurred for shelly2pmg4-98a3167xxxx.

It still works in the Zigbee2MQTT interface.

How can I assign devices to rooms using Zigbee2MQTT without Wi-Fi?

If you look at your mqtt integration is the device listed there?

Hello,
yes, the device is listed there.