Items switch like button

help me create a rule that will work for the switch, like a button.
switch on - pause for 2 seconds, the switch becomes off

You can use the expire binding for that, or a rule with a timer.
Something like:
Item file:

Switch yourItem {somebinding="binding_configuration", expire="2s, command=OFF"}
1 Like

Switch SW_4 “Reley А [%s]” (Reley) { onewire=“deviceId=3A.50550C000000;propertyName=PIO.A;refreshinterval=10”, expire=“2s, command=OFF” }

for onewire its correct?