Yes, you will need to enable Scene Activation by setting parameter #28 to 1. The DTH will then update the scene attribute with the appropriate scene number (which a smartapp can then subscribe to):
As an example, I have what might be considered a fairly advanced setup for one of my bedside lights. With a double momentary switch connected to both inputs I get the following functionality:
S1: Bedside light control:
- Single-tap: Toggle bedside light on/off.
- Double-tap: Set level to 100%
- Triple-tap: N/A
- Hold: Dim up/down.
S2: Other devices:
- Single-tap: Cycle through colour presets for bedroom mood lighting (via Fibaro RGBW).
- Double-tap: Turn off mood lighting.
- Triple-tap: Activate Going to bed routine (turns off most lights and appliances in the house, enables nightmode for lighting, arms the alarm, etc).
- Hold: Adjust angle of the venetian window blinds (angle cycles slowly from +90 to -90 and back).
All S2 functionality is achieved with a custom smartapp that subscribes to the scene attribute.