Raspberry PI GPIO Switch with pulse length

I plan to trigger a latching switch via a (inverted) raspberry pi GPIO switch, How can I implement a switch with generate one pulse with a length of one sencond?

Use an automation to turn off your switch one second after it turns on:

trigger:
  platform: state
  entity_id: switch_your_switch
  to: 'on'
  for:
    seconds: 1
action:
  service: switch.turn_off
  entity_id: switch_your_switch

Alternatively you may be able to use this custom component:

Thanks, that solutions works for me.