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.

Little late to the part but check my post on how to do it with sonoff RF bridge

There are 2 ways to do that depends if you’re on official firmware or if you flashed custom firmware