Author Topic: PLTS Basics - An Introduction to the Program Logic Timer Switch  (Read 15518 times)

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #15 on: February 04, 2014, 01:16:31 pm »
Quote
I am getting an error message that states: version mismatch. PLEG version 5.7, PLC version 5.8. How do I correct this?

Enter this into your browser - with your Vera IP addess in place of <veraip>:
Code: [Select]
http://<veraip>:3480/data_request?id=update_plugin&Plugin=3066
Quote
I am also getting an error message that says: TIMER   NOT TIMER, is an invalid expression.

If you post a Status report from your PLEG, we can probably help you with this.

Offline ih8gates

  • Full Member
  • ***
  • Posts: 207
  • Karma: +8/-1
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #16 on: February 04, 2014, 01:26:04 pm »
Here's details on how to force the plugins to update:
http://forum.micasaverde.com/index.php?topic=14446.0

Offline rtt3821

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #17 on: February 04, 2014, 02:05:14 pm »
I cannot get a status report after updating the PLEG.

Offline rtt3821

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #18 on: February 04, 2014, 02:16:03 pm »
This is the status before the PLEG was updated. After the update NO Status.

Program Logic Event Generator
Device ID: 172014-02-04 11:58:00.831 PLC Version: 5.8
Triggers
Name   Description   State   Last True   Last False
t1_TIMERON   Appliance Module #1 is turned on   false   0   0
t2_TIMEROFF   Appliance Module #1 is turned off   false   0   0
t2_TIMERON   _Appliance Module #2 is turned on   false   0   0
t3_TIMEROFF   _Appliance Module #2 is turned off   false   0   0
Schedules
Name   Type   Time   Days   Random On Delay   Off After Type   Off Time   Off Days   Random Off Delay   State   Last On   Last Off
s1   Weekly   +00:15:00r   1,2,3,4,5,6,7   None   Weekly   20:00:00   1,2,3,4,5,6,7   None   true   2014-02-04 07:35:48.492    0
s2   Weekly   19:00:00   1,2,3,4,5,6,7   None   Weekly   21:00:00   1,2,3,4,5,6,7   None   false   2014-02-03 19:00:00.100    2014-02-03 21:00:00.451
Device Properties
Name   Device Name   Device Variable   Value   Last Change   Previous Change
p2   _Appliance Module #2   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.101    0
p1   Appliance Module #1   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.104    0
Conditions
Name   Expression   State   Last True   Last False
c1   TimerOn Timer   null   0   2014-02-04 11:02:17.786
c2   TimerOff    null   0   2014-02-04 11:02:17.787
Actions
Actions for Condition: c1
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1
Actions for Condition: c2
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #19 on: February 04, 2014, 02:58:18 pm »
Quote
I cannot get a status report after updating the PLEG.

Did you try refreshing your browser page?

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #20 on: February 04, 2014, 03:02:55 pm »
This is the status before the PLEG was updated. After the update NO Status.

Program Logic Event Generator
Device ID: 172014-02-04 11:58:00.831 PLC Version: 5.8
Triggers
Name   Description   State   Last True   Last False
t1_TIMERON   Appliance Module #1 is turned on   false   0   0
t2_TIMEROFF   Appliance Module #1 is turned off   false   0   0
t2_TIMERON   _Appliance Module #2 is turned on   false   0   0
t3_TIMEROFF   _Appliance Module #2 is turned off   false   0   0
Schedules
Name   Type   Time   Days   Random On Delay   Off After Type   Off Time   Off Days   Random Off Delay   State   Last On   Last Off
s1   Weekly   +00:15:00r   1,2,3,4,5,6,7   None   Weekly   20:00:00   1,2,3,4,5,6,7   None   true   2014-02-04 07:35:48.492    0
s2   Weekly   19:00:00   1,2,3,4,5,6,7   None   Weekly   21:00:00   1,2,3,4,5,6,7   None   false   2014-02-03 19:00:00.100    2014-02-03 21:00:00.451
Device Properties
Name   Device Name   Device Variable   Value   Last Change   Previous Change
p2   _Appliance Module #2   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.101    0
p1   Appliance Module #1   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.104    0
Conditions
Name   Expression   State   Last True   Last False
c1   TimerOn Timer   null   0   2014-02-04 11:02:17.786
c2   TimerOff    null   0   2014-02-04 11:02:17.787
Actions
Actions for Condition: c1
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1
Actions for Condition: c2
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1
The terms in your Condition expressions are not valid Triggers, Device Properties or Schedules Also your Actions only Arm the PLEG.

Maybe you should explain what it is you want to happen?
 

Offline rtt3821

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #21 on: February 04, 2014, 06:27:00 pm »
What I want to do is turn a light ON at sundown and OFF at approx 22:30. Also I want to turn a battery charger ON for 1 hour on The 5th of each month.  Can anyone held me to a program that will work?  The times noted in the status were only to see if the program works, no the times I want to eventually set.  I have an appliance module for each set of conditions. HELP!
This is the status after the update.

Program Logic Event Generator
Device ID: 172014-02-04 16:33:51.748 PLC Version: 5.8
Triggers
Name   Description   State   Last True   Last False
t1_TIMERON   Appliance Module #1 is turned on   false   0   0
t2_TIMEROFF   Appliance Module #1 is turned off   false   0   0
t2_TIMERON   _Appliance Module #2 is turned on   false   0   0
t3_TIMEROFF   _Appliance Module #2 is turned off   false   0   0
Schedules
Name   Type   Time   Days   Random On Delay   Off After Type   Off Time   Off Days   Random Off Delay   State   Last On   Last Off
s1   Weekly   +00:15:00r   1,2,3,4,5,6,7   None   Weekly   20:00:00   1,2,3,4,5,6,7   None   true   2014-02-04 07:35:48.492    0
s2   Weekly   19:00:00   1,2,3,4,5,6,7   None   Weekly   21:00:00   1,2,3,4,5,6,7   None   false   2014-02-03 19:00:00.100    2014-02-03 21:00:00.451
Device Properties
Name   Device Name   Device Variable   Value   Last Change   Previous Change
p2   _Appliance Module #2   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.101    0
p1   Appliance Module #1   ManufacturerInfo   5,2,3   2014-02-04 11:24:08.104    0
Conditions
Name   Expression   State   Last True   Last False
c1   TimerOn Timer   null   0   2014-02-04 11:02:17.786
c2   TimerOff    null   0   2014-02-04 11:02:17.787
Actions
Actions for Condition: c1
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1
Actions for Condition: c2
Immediate
Device   Action   Arguments
Program Logic Event Generator   SetArmed   newArmedValue=1
« Last Edit: February 04, 2014, 06:36:08 pm by rtt3821 »

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #22 on: February 04, 2014, 07:26:46 pm »
I would start by deleting everything you have created and then create these:

Schedules
Evening      Start Type: DayofWeek  Days 1,2,3,4,5,6,7  At sunset  Stop Type: DayofWeek  Days 1,2,3,4,5,6,7  22:30
Day5           Start Type: DayofMonth  Day 5  Time 12:00  Stop Type: Interval  1 Hour

Conditions
LightOn       Evening
LightOff       !Evening
ChargeOn   Day5
ChargeOff   !Day5

Actions
LightOn       Appliance Module #1 On
LightOff       Appliance Module #1 Off
ChargeOn   Appliance Module #2 On
ChargeOff   Appliance Module #2 Off

BTW: This thread is really about the PLTS rather than PLEG. Have you seen PLEG Basics?
« Last Edit: February 04, 2014, 07:35:41 pm by RexBeckett »

Offline rtt3821

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #23 on: February 04, 2014, 07:52:26 pm »
Rex THANKS VERY MUCH!
I'll do what you said and make a new program as you wrote. I'll let you know the result. Again thanks! No I didn't know PLEG Basics was available
« Last Edit: February 04, 2014, 07:55:23 pm by rtt3821 »

Offline rtt3821

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #24 on: February 12, 2014, 01:23:46 pm »
OK the LightOn & the LightOff schedules are working. The ChargeOn and the ChargeOff are not. The programs should be similar so I'll take a look and compare them.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #25 on: February 12, 2014, 02:53:16 pm »
You will have to wait until Friday's schedule before it will get a value ... or you can click the Do It Now button to cause the schedule to run immediately.

Offline chacquie

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #26 on: February 15, 2014, 12:50:14 pm »
Very basic question here.  So do I understand PLTS correctly in that it creates a new virtual device every time I set it up for a task or do all the tasks reside under one PLTS device?  I've seen some screen shots where the name was very specific which suggested someone could have several of these.  If it does create a new virtual device each time, how do I do this?  I have set one up as a test and I lost my "no room" PLTS device when I did that.

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #27 on: February 15, 2014, 01:52:17 pm »
Yes you need to create a new PLTS for each task. You do that like so:

Click on Vera's APPS tab. Click on the text Program Logic Timer Switch. Click the Create another button. Click Vera's Reload button, refresh your browser page and you should find a new PLTS.

Offline chacquie

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: PLTS Basics - An Introduction to the Program Logic Timer Switch
« Reply #28 on: February 15, 2014, 04:43:38 pm »
Thank you RexBeckett.  I clicked on that several times and completely overlooked the "Create New" button.  I guess I was just focused on the tabs.  Thanks again!

Offline RexBeckett

  • Master Member
  • *******
  • Posts: 3891
  • Karma: +482/-12
PLTS Basics - New Version for PLTS 6.2
« Reply #29 on: March 07, 2014, 09:04:29 am »
There is a new version of PLTS Basics. It has been updated to reflect the changes in PLTS 6.2. See the first post to download the pdf (now in a zip because it has outgrown the upload limit).