I’m using a HM-LC-Sw1-Ba-PCB on my garage door, to trigger open/close the garage.
What I need here is a short keypress to start the motor (external switch input like a button) and lift the garage door. If i turn on the switch in the UI, it stays the whole time in status “ON” and i have to turn it off and on again to trigger the motor the second time.
Is it possible to trigger a switch with an on-for timer (got that one in FHEM) to simulate a 1 second keypress of the switch button?
The cleaner solution would be to check if your switch can be configured to work like this on its own. Have a look at the settings with the configuration utility where it looks something like this:
You don’t have to do anything with that automation-UI-element. When you turn on the switch (the one you want to automatically turn off again), it should flip back to off a second later automatically. If I understood correctly you only want to trigger the switch for a short time, and everytime it is turned on the garage-motor gets activated.