CommentStreams:6ab78ebd99833e51b8dca69d1d33fef0

I would like to add an additional function to the momentary switch when you push it for less than 1 second while the device is on. ( i.e. Execute a python script ). Is this possible? If yes, are there any examples?

Thanks in Advance.