Door and windows with 2 magnetic sensors

Hello,

My doors ant windows have two magnets, one in top ant one in bottom. I can open only top of window/door for ventilation.

Magnetic sensors are connected to alarm panel ant by integration i can see them in Home Assistant.

How to configure one door with to sensors, for open for ventilation (if one sensors shows as open) and full open (if two sensors show open) ?

If i understand it correctly, you have two separate inputs in Home Assistant (magnet 1 & 2) and you want them to behave as one.

i think jou have to take at look at Template sensor intergration here you can create a separate sensor with for example three outputs calculated on de different inputs.