Universal garage remote + Mini D1 - 1 "press" = 2 commands

Hi :slight_smile:

Not sure if the right place, so feel free to route this to a better topic if necessary.

I am using a Mini D1 with an universal garage remote control (JMA).

It used to work just fine, but recently (maybe an update to ESPHome?) the garage door doesn’t open at the first attempt. It raises only a bit and it immediately stops, as if it received 2 times the signal (open and then stop). Pressing a third time closes the garage door again and then it raises completely automatically (close and then open command).

Can anyone please review my config and tell me where I might have done this incorrectly?

esphome:
  name: garageremotecontrol
  platform: ESP8266
  board: d1_mini  

# Enable logging
logger:

api:

ota:
  password: "PASSWORD"

wifi:
  ssid: "WIFI_SSID"
  password: "WIFI_PASSWORD"

mqtt:
  broker: BROKER_IP
  client_id: GarageRemoteControl
  topic_prefix: garage/remote/control
  on_message:
    - topic: garage/remote
      payload: raise
      qos: 2
      then:
        - switch.turn_on: raise
        
switch:
  - platform: gpio
    pin: 
      number: D1 #OPEN
      inverted: true
    id: "raise"
    on_turn_on:
      - delay: 300ms
      - switch.turn_off: raise

Thanks!