ESPEasy with PCF8574 does not retain status

I had ESPEasy to monitor my doors and windows, but I needed a couple of additional Pins, so I decided to add PCF8574. The problem that I have is when I reboot HA, it displays incorrect status for some of the my doors and windows.

This is what I had in my binary_sensors file:

  - platform: mqtt
    state_topic: "ADTConnect/Garage Entry/Status"
    name: "Garage Entry"
    payload_on: 1
    payload_off: 0
    device_class: opening

How to fix it?
Thank you.