Door lock with esphome

need help in setting the best toggle button for my door lock , it is working ok , but after using optimistic , there are two icons to open and close the door , one is to open the door and the other is to close the door , but i need only one button by which we can only open the lock , in my lock there is no option to close the lock electronically ,

this is my ha image

2019-03-01%2022_12_02-Home%20Assistant

this is my setting

  • platform: template
    name: “Door Lock”
    icon: “mdi:gate”
    optimistic: true
    assumed_state: true
    turn_on_action:
    • switch.turn_on: relay3
    • delay: 500ms
    • switch.turn_off: relay3

the above link is the details of my lock

Did you find a solution to this?