Scene controller plugin help

I’m trying to build a plugin for a scene controller, but I am running in to some confusion about how it is supposed to work. It appears that when a scene is triggered I should be setting sl_SceneActivated or sl_SceneDeactivated to the scene number that was triggered.

For example, if I push a button on a controller that should enable scene 3, I would send a command like this :

luup.variable_set(“urn:schemas-micasaverde-com:device:SceneController1”, “sl_SceneActivated”, 3, device)

Then, I could use the UI to create a new scene that should be triggered when a scene is activated and the scene number is 3. However, when I set that trigger up and activate the scene with the above “variable_set” call, nothing happens.

I must be missing some detail, but I am not sure what. Any help would be appreciated.