ESPhome binary sensor state on 1602 display

Hi there.

Hoping someone can point me in the right direction.
I have an ESP32 setup and connected to a 1602 LCD display.
I have achieved displaying a static string.
I am now trying to display a formated string containing the state of my garage door binary sensor. The issue I am having is the state of the sensor displayed on the screen does not update. The home assistant entity state updates (in home assistant).
I am assuming the issue relates to how I have imported the sensor from home assistant as I have tried changing the sensor state and then powering off and on the device or re-uploading the code and the state isn’t changing.
Please see my code below:

esphome:
  name: usb-c-1
  friendly_name: USB_C_1
  on_boot:
    if:
      condition:
        time.has_time:
      then:
        - logger.log: Time has been set and is valid!


esp32:
  board: esp32dev
  framework:
    type: arduino

sensor:
  - platform: homeassistant
    name: "Garage Door Binary Sensor"
    entity_id: binary_sensor.garage_door_sensor
    id: door


# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: ""

ota:
  password: ""

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Usb-C-1 Fallback Hotspot"
    password: ""

time:
- platform: homeassistant
  id: my_time

i2c:
  sda: GPIO21
  scl: GPIO22

display:
  - platform: lcd_pcf8574
    dimensions: 16x2
    address: 0x27
    update_interval: 1s
    lambda: |-
      it.printf(0, 1, "Door is %s", id(door) ? "Open" : "Closed");

You can’t use sensor: to import a binary sensor from HA. You will get a Can't convert 'on' to number! error or similar.

If you use a text sensor, you will get the text ‘on’ or ‘off’ as states. Importing as a binary sensor gives you ON or OFF states.

So use whichever suits your logic.

[18:34:13][W][homeassistant.sensor:015]: ‘binary_sensor.office_pir’: Can’t convert ‘on’ to number!

Thank you, makes sense now I know.
Will have a play around when I can.

Cheers