Author Topic: How to Debug PLEG  (Read 420 times)

Offline gniknalu

  • Full Member
  • ***
  • Posts: 189
  • Karma: +3/-2
How to Debug PLEG
« on: March 01, 2018, 11:13:05 am »
I'm trying to create a modified version of the script/scene on the PLEG website: http://rts-services.com/Vera/Plugin/PLEG/example/smartswitch.html but am getting this critic but incomplete error in my Vera:

Code: [Select]
Program Logic Event [69] : ( cMultiOn_Stairs AND ( t_stair_lightON; NOW > 00:10:00) OR ((NOT cMultiOn_Stairs) AND (t_stair_lightON; NOW > 15:00): Invalid Expression Operator: CMULTION_STAIRS in:( cMultiOn_Stairs AND TMP_1 OR ( TMP_3 AND TMP_4
Is there an FAQ on debugging PLEG? Can I ssh to the Vera and tail something to get the full error?

The goal is to turn on the stairwell light when the light level drops below XXX but only have it on for 10 minutes.

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: +29/-13
Re: How to Debug PLEG
« Reply #1 on: March 01, 2018, 03:15:31 pm »
When you starting seeing these temp expressions like "TMP_1", that means the logic didn't get saved correctly.  I would re-type that condition...

You would likely get faster responses to PLEG questions in its sub-forum.  http://forum.micasaverde.com/index.php/board,48.0.html
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline gniknalu

  • Full Member
  • ***
  • Posts: 189
  • Karma: +3/-2
Re: How to Debug PLEG
« Reply #2 on: March 01, 2018, 04:24:07 pm »
When you starting seeing these temp expressions like "TMP_1", that means the logic didn't get saved correctly.  I would re-type that condition...

You would likely get faster responses to PLEG questions in its sub-forum.  http://forum.micasaverde.com/index.php/board,48.0.html

THANK YOU!