Rpi_gpio binary_sensor and sensor_class help

I have a raspberry pi running HA and reading from a couple of door sensors (simple reed switches). I can put them up on the dash board just fine using binary_sensor and rpi_gpio. Everything works, they toggle appropriately.

I am, however, tearing my hair out trying to get them to display as open / closed instead of on / off on the status screen using sensor_class. I cant decide if my syntax is wrong (I’ve gone through about 1000 permutations) or it just doesnt work. I found this that has a workaround to create a sensor from the binary sensor but it feels like there should be a simpler / more elegant solution than a lot of code for every door sensor (I also loose the binary.sensor changing icon doing it this way. If sensor_class is wrong is there another way to exchange on/off for open/closed?

Any help would be really appreciated and it you are willing to be very explicit I would appreciate it…I’m very much new to all this. The configuration.yaml section reading from the rpi is:

binary_sensor:

  • platform: rpi_gpio
    ports:
    20: Front Door
    6: Garage Door 1
    13: Garage Door 2
    5: Liquor Cabinet
    pull_mode: “UP”

and then they are all put in a group:

group:
garage_doors:
- binary_sensor.Garage_Door_1
- binary_sensor.Garage_Door_2
- binary_sensor.Liquor_Cabinet
- binary_sensor.Front_Door