This Vera scene with LUA code into PLEG, how?

On this site there’s a working description for the zmw_wallc-s controller in UI7:

http://support.betaalbare-domotica.eu/how-to-use-wallc-s-remote-controller-with-ui7/

For this I made some Vera scenes (lamps on etc) and the Vera scene as described for the wallcontroller.
But I want this in PLEG, but I can’t get it to work.

I tried:
trigger: twallc (scene 0 actived)
condition: cwallc = twallc
action: the LUA code on that site (the same as in my Vera scene which is working)

I disabled the Vera scene, armed PLEG, but nothing happens.

What can be wrong? Does PLEG know about the Verascene numbers (SceneNum)

Beside this, I don’t want to use Vera scenes at all, but how could I start a scene/actions which are configures in PLEG?

Thanks.

You post is a little confusing. We ought to separate troubleshooting the trigger versus the action (Lua).
When you go to the action in PLEG, and click “Do It Now”, does the code work as expected?

Would also help if you post the status report as PDF…

Well maybe my question was not clear. It should be; how to convert the stuff on that website into PLEG?

Do it now: that won’t help (I guess), because the action that should happen, depends on the button that is pressed on the wall controller.

From the Website:

local lastSceneID= luup.variable_get("urn:micasaverde-com:serviceId:SceneController1", "LastSceneID", 135)

In PLEG:
You would have an input Device Parameter:

LastScene bound to the LasSceneID of the controller

You would then have conditions:
Button1On LastScene == 11
Button1Off LastScene == 12
Button2On LastScene == 21
Button2Off LastScene == 22
Button3On LastScene == 31
Button3Off LastScene == 32
Button4On LastScene == 41
Button4Off LastScene == 42

Great. Thank you very much. This works (as you would have expected ;-)).
And it even seems to be a bit faster as the Vera scene. A bit more configuration, but more flexible.

[quote=“RichardTSchaefer, post:5, topic:188478”]From the Website:

local lastSceneID= luup.variable_get("urn:micasaverde-com:serviceId:SceneController1", "LastSceneID", 135)

In PLEG:
You would have an input Device Parameter:

LastScene bound to the LasSceneID of the controller

You would then have conditions:
Button1On LastScene == 11
Button1Off LastScene == 12
Button2On LastScene == 21
Button2Off LastScene == 22
Button3On LastScene == 31
Button3Off LastScene == 32
Button4On LastScene == 41
Button4Off LastScene == 42[/quote]

Hi Richard, wanted to let you konw I found this post from you and it pointed me in the right direction. Thank you for that (this information from you) being on the forum.