Binary_sensor does not appear

Hi folks,

I’m trying a little to transfer the telemetry data collected via a separate CAN-BUS controller to the Home Assistant via MQTT.

That works quite well so far, only I fail when creating a binary_sensor.

Here is my configuration:

binary_sensor:
  - platform: mqtt
    name: "Heizungsbrenner"
    unique_id: "heatronic_brenner"
    state_topic: "home/heizung/brenner"
    payload_on: "1"
    payload_off: "0"

The data (0 and 1) arrive at the MQTT broker in any case.
What am I doing wrong?

You restarted HA, or did a reload of manually configured mqtt entnties ?

Yes, I did several restarts

Do you have other mqtt entities ?

yes, but no binaries

I don’t see anything wrong with the definition.
Are you sure you only have binary_sensor: 1 time in your configuration.yaml ?

why are you using this?

device map (optional)
Information about the device this binary sensor is a part of to tie it into the device registry.
 Only works through MQTT discovery and when unique_id is set. 
At least one of identifiers or connections must be present to identify the device.

Is this condition satisfied?

There is nothing wrong with using unique_id :

Thank you!
That was the problem