Kerui D026

Hi all. Im new here. Trying to migrate from Pimatic to HA.
I am trying to add the KERUI D026 window /door sensors.
I see 2 codes when i set the binary automatic add to true. seems the sensor have a code for ope and a seperate code for close. How can i add these into 1 sensor?
Thanks for the help.

search here?

How do you receive the codes and how are they represented in HA?
Most likely you have to use template sensor.