Since your example differs from the code in the 3.017 and 3.024 switchaction, I’m not sure what changes need to be made. Can you explain how to make the edits using the code @Bonami provided above?