Stepper motor component in deep sleep

I’m using a D1 Mini ardunio in combination with a ULN2003 stepper motor contoller. The problem is when i place the arduino in deep sleep the stepper motor is no longer put to sleep acording to the sleep_when_done attribute.
Is there a way around this?

mqtt:
  broker: 192.168.30.32
  username: 
  password: ""
  client_id: 
  topic_prefix: catdoor
  log_topic: catdoor/status
  on_message:
    - topic: catdoor/action
      payload: "-200"
      qos: 0
      then:
      - stepper.set_target:
          id: stepper2
          target: -200
      - mqtt.publish:
          topic: catdoor/log
          payload: "Close IN"
    - topic: catdoor/action
      payload: "200"
      qos: 0
      then:
      - stepper.set_target:
          id: stepper2
          target: 200
      - mqtt.publish:
          topic: catdoor/log
          payload: "Close BOTH"
    - topic: catdoor/action
      payload: "0"
      qos: 0
      then:
      - stepper.set_target:
          id: stepper2
          target: 0
      - mqtt.publish:
          topic: catdoor/log
          payload: "OPEN"
stepper:
  - platform: uln2003
    id: stepper2
    pin_a: D6
    pin_b: D7
    pin_c: D3
    pin_d: D1
    max_speed: 200
    sleep_when_done: yes
    
deep_sleep:
  run_duration: 15s
  sleep_duration: 3min

Update ish
Thinking of just using a relay :slight_smile: