See attached the html/js code.
The JS code would need to be updated a but and replace:
WS_CALL12, WS_CALL34, WS_CALLONOFF with the right API calls - they will sent 1/2 for option1 or option2, 3/4 for option 3/4 and 0/1 for off/on.
Also replace:
PROPERTY1, PROPERTY2, PROPERTY3, PROPERTY4, PROPERTY5 for the properties that the code will be waiting for to fill in the text for lines 1-5.
not sure how to take advantage of it, never used it from a Application but something similar to this works fine for another widget that I built for a DoorLock Widget - but that one uses z-wave