This is awesome! Can you add custom descriptions? I’ve created the pref’s to do this, but can’t figure out how to get them implemented via the (1…4) repetition thing?
preferences {
input("ButtonPress1", "text", title: "Label for Button 1 Press?", required: false, defaultValue: "Button 1 Press", description: "Label for the first button pressed.")
input("ButtonHold1", "text", title: "Label for Button 1 Hold?", required: false, defaultValue: "Button 1 Hold", description: "Label for the second button held.")
input("ButtonPress2", "text", title: "Label for Button 2 Press?", required: false, defaultValue: "Button 2 Press", description: "Label for the third button pressed.")
input("ButtonHold2", "text", title: "Label for Button 2 Hold?", required: false, defaultValue: "Button 2 Hold", description: "Label for the fourth button held.")
input("ButtonPress3", "text", title: "Label for Button 3 Press?", required: false, defaultValue: "Button 3 Press", description: "Label for the first button pressed.")
input("ButtonHold3", "text", title: "Label for Button 3 Hold?", required: false, defaultValue: "Button 3 Hold", description: "Label for the second button held.")
input("ButtonPress4", "text", title: "Label for Button 4 Press?", required: false, defaultValue: "Button 4 Press", description: "Label for the third button pressed.")
input("ButtonHold4", "text", title: "Label for Button 4 Hold?", required: false, defaultValue: "Button 4 Hold", description: "Label for the fourth button held.")
}
Disclaimer: I have no idea what I’m doing.