Shutter STOP after activity

Hi,

I would like to make an automation, to STOP shutter after 25 seconds, if open or close it. Because after opening/closing the shutter relay stayed hold position. I know it is not a problem, but I would like to do it.
But something is wrong, because my code doesn’t work: does nothing. Whats wrong?
Automations.yaml:

- id: '1641452055735'
  alias: Redőny STOP1
  description: ''
  trigger:
  - platform: device
    device_id: 96c877366989d0190c8c9042885c1104
    domain: cover
    entity_id: cover.shutter_curtain
    type: opening
    for:
      hours: 0
      minutes: 0
      seconds: 25
  condition: []
  action:
  - device_id: 96c877366989d0190c8c9042885c1104
    domain: cover
    entity_id: cover.shutter_curtain
    type: stop
  mode: single
  max: 2
- id: '1641452090862'
  alias: Redőny STOP2
  description: ''
  trigger:
  - platform: device
    device_id: 96c877366989d0190c8c9042885c1104
    domain: cover
    entity_id: cover.shutter_curtain
    type: closing
    for:
      hours: 0
      minutes: 0
      seconds: 25
  condition: []
  action:
  - device_id: 96c877366989d0190c8c9042885c1104
    domain: cover
    entity_id: cover.shutter_curtain
    type: stop
  mode: single
  max: 2

Hello! Anybody?

Hello,

I want to do the same thing. did you find a solution ?

Thanks