Light.turn_off toggles light

I have a bunch of mqtt based lights at my placee. These are working fine, but if they are turned off by the light.turn_off while already off, thy are turnd on. Even the history says “eingeschaltet ausgelöst durch Aktion Leuchte: Ausschalten” (german, translates to: turnd on due to action light: turn off).
Since I observed this issue for abbot a year now, I dont think this is a bug. I guess there might be somthing wrong with my light definition:

mqtt:
  light:
    - unique_id: Z3_licht
      name: "Licht Arbeitszimmer"
      state_topic: "a18/OG/Z3/Licht"
      command_topic: "a18/OG/Z3/Licht/set"
      payload_on: "ON"
      payload_off: "OFF"

is sombody abled to assist?

command_topic is missing close quote.

Toggle only works correctly if the sensor knows in which state it is.
So the state_topic need to be he correct path: MQTT Light and the correct message.

So using MQTT Explorer for example, what is the message you get at: "a18/OG/Z3/Licht"?

Hi,
state in general works, since HA recognizes external state changes of the lights, but I will check the exact replies. I will need to install mqtt explorer. Tomorrow.

Hy there and thanks fror the hint. Turns out I hed en error on mit programming of the lights itself (they are atualy controlled by a SPS).