How to invert a binary_sensor with customize?

Hello, I have flashed two new door sensors with Openbeken and integrated this via mqtt. Works so far, but the value open/close is passed as on/off. With :

homeassistant:
   customize:
      binary_sensor.door2_0:
        device_class: window
      binary_sensor.door1_0:
        device_class: window

I now already get closed/opened, but the wrong way around. Open window shows closed and closed window shows open.

How can I reverse it ? I have not found a setting in customizing