Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: Boolean field in Trigger requires quotes Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: June 21 2009 at 14:07 | IP Logged Quote grif091

When the following statement is run through the Formula Builder the first 6 lines of the Insteon Raw Log are generated. Things look as expected. The two devices are queried and a response is received from each.

When this statement is executed as the Boolean field of a Trigger there are 6 TX lines in a row in the Raw Log reflecting 3 queries to each device, with a consistent 30 second delay from the first TX query to the first device before the RX lines are put into the Raw Log.
    
IF (ph_getinsteonlevelrt ("WINE BOTTLE LAMPLINC") >0 OR ph_getinsteonlevelrt ("ICON SWITCH TEST") >0, 1, 0)


2009-06-21 12:43:47.687     TX  &nbs p;  02 62 04 90 07 05 19 00
2009-06-21 12:43:47.718     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 90 07 05 19 00 06
2009-06-21 12:43:48.312     RX  &nbs p;  RECEIVEINSTEONRAW=04 90 07 0F 44 DC 22 00 00
2009-06-21 12:43:48.343     TX  &nbs p;  02 62 04 56 50 05 19 00
2009-06-21 12:43:48.375     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 56 50 05 19 00 06
2009-06-21 12:43:48.578     RX  &nbs p;  RECEIVEINSTEONRAW=04 56 50 0F 44 DC 21 00 00

2009-06-21 12:44:01.625     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 00 00 01 CB 13 00
2009-06-21 12:44:02.000     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 0F 44 DC 41 13 01
2009-06-21 12:44:04.500     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 00 00 01 CB 11 00

2009-06-21 12:44:04.562     TX  &nbs p;  02 62 04 90 07 05 19 00
2009-06-21 12:44:09.562     TX  &nbs p;  02 62 04 90 07 05 19 00
2009-06-21 12:44:14.562     TX  &nbs p;  02 62 04 90 07 05 19 00
2009-06-21 12:44:19.562     TX  &nbs p;  02 62 04 56 50 05 19 00
2009-06-21 12:44:24.562     TX  &nbs p;  02 62 04 56 50 05 19 00
2009-06-21 12:44:29.562     TX  &nbs p;  02 62 04 56 50 05 19 00

2009-06-21 12:44:34.578     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 90 07 05 19 00 06
2009-06-21 12:44:34.593     RX  &nbs p;  RECEIVEINSTEONRAW=04 90 07 0F 44 DC 22 00 00
2009-06-21 12:44:34.625     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 0F 44 DC 6B 11 01
2009-06-21 12:44:34.671     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 0F 44 DC 6B 11 01
2009-06-21 12:44:34.718     RX  &nbs p;  RECEIVEINSTEONRAW=0C AE 5F 0F 44 DC 6B 11 01
2009-06-21 12:44:34.781     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 90 07 05 19 00 06
2009-06-21 12:44:34.796     RX  &nbs p;  RECEIVEINSTEONRAW=04 90 07 0F 44 DC 21 00 00
2009-06-21 12:44:34.828     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 90 07 05 19 00 06
2009-06-21 12:44:34.843     RX  &nbs p;  RECEIVEINSTEONRAW=04 90 07 0F 44 DC 22 00 00
2009-06-21 12:44:34.875     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 56 50 05 19 00 06
2009-06-21 12:44:34.890     RX  &nbs p;  RECEIVEINSTEONRAW=04 56 50 0F 44 DC 21 00 00
2009-06-21 12:44:34.921     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 56 50 05 19 00 06
2009-06-21 12:44:34.937     RX  &nbs p;  RECEIVEINSTEONRAW=04 56 50 0F 44 DC 21 00 00
2009-06-21 12:44:34.968     RX  &nbs p;  SENTINSTEON=0F 44 DC 04 56 50 05 19 00 06
2009-06-21 12:44:34.984     RX  &nbs p;  RECEIVEINSTEONRAW=04 56 50 0F 44 DC 21 00 00


If the IF command is put into quotes ….

‘IF (ph_getinsteonlevelrt ("WINE BOTTLE LAMPLINC") >0 OR ph_getinsteonlevelrt ("ICON SWITCH TEST") >0, 1, 0)’

the first TX query has the result posted in the Insteon Raw Log immediately and is not retried.

Not sure if this is a bug or just a requirement that the Boolean field commands be quoted.


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum