MQTT 'binary_sensor' type Item showing NULL instead of data in OH3


I am using window sensors that communicate with OH3 via MQTT.

All “sensor” channels work and receive data, e.g link quality or battery level

But the “binary_sensor” item always shows NULL instead of true or false.
The ‘contact’ Item is also not listed in the openhab.log file.

From MQTT.fx:

OH Thing Config:

UID: mqtt:homeassistant_zigbee2mqtt_5F0x00158d0002b568a1:a30de226db:zigbee2mqtt_5F0x00158d0002b568a1
label: Window Contact LivingRoom
thingTypeUID: mqtt:homeassistant_zigbee2mqtt_5F0x00158d0002b568a1
    - sensor/0x00158d0002b568a1/battery
    - sensor/0x00158d0002b568a1/voltage
    - sensor/0x00158d0002b568a1/temperature
    - sensor/0x00158d0002b568a1/linkquality
    - binary_sensor/0x00158d0002b568a1/contact
  basetopic: homeassistant
bridgeUID: mqtt:broker:a30de226db

Any ideas?
Do I have to assign a specific Profile to the Channel?


Issue solved

I need to configure the Item as “Switch” not “Contact”.