Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: PLM Questions Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 24 2009 at 08:38 | IP Logged Quote BeachBum

Scott,this one is a good example written by Jeff.

http://www.power-home.com/forum/forum_posts.asp?TID=1557&KW= PH%5FGETINSTEONLEVELRT

For every Insteon command it checks its status and then does a retry if bad. The one I wrote is more complex and is more intense to maintain. It is fired a few minutes after an Insteon device change and issues an GETINSTEONRT to every device and compares it to the CMD value that was stored in a Global. I also fire it periodically to check the values because noise can also turn on a light.



__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
k2zs
Senior Member
Senior Member
Avatar

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: November 26 2009 at 11:02 | IP Logged Quote k2zs

BeachBum wrote:
Scott,this one is a good example written by Jeff.

http://www.power-home.com/forum/forum_posts.asp?TID=1557&KW= PH%5FGETINSTEONLEVELRT

For every Insteon command it checks its status and then does a retry if bad. The one I wrote is more complex and is more intense to maintain. It is fired a few minutes after an Insteon device change and issues an GETINSTEONRT to every device and compares it to the CMD value that was stored in a Global. I also fire it periodically to check the values because noise can also turn on a light.



But how do you implement something like that? is it entered into "Triggers" as a raw formula that triggers on any insteon out to any device, do you use multi edit and save it as a file... ? I am totally new here. I just ordered PH2 for myself and a few devices to start experiment with without blowing up the home I hake care of.

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 26 2009 at 12:03 | IP Logged Quote BeachBum

If you are referring to how to get the macro into PH then copy the complete macro to the clip board and go to Maintenance –PowerHome Multi-Editor and paste it. NOTE: make sure you are in SQL if not Shift and F5. Next go to Edit- Execute Script and the macro will be added. Check the return to make sure it went correctly. If you then edit the macro you will see what parameters are passed to the macro. The macro can be called from a Trigger, Timed Event or another macro. The bottom line is all Insteon device commands go through this macro which in turn checks to make sure the device in fact did what is was suppose to do. If you eliminate most of the noise in the circuits you most likely would not have to use this approach. There is also a logging function you may or may not want to implement.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
k2zs
Senior Member
Senior Member
Avatar

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: November 26 2009 at 20:26 | IP Logged Quote k2zs

Thanks Pete,

I am just using the software (no plm or devices yet) and was able to generate the 2 macros. So for the trigger I went to the powerhome explorer and creeated a trigger:
ID: RETRY_DEVICE
Action Type: Macro
Action: SEND_INSTEON
Trigger Type: Insteon NAK
Trigger ID; [ANY]
Trigger ID Number: Direct - From Any
Trigger Value: (Any)

Would that work?

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 26 2009 at 22:48 | IP Logged Quote BeachBum

k2zs wrote:
I manage a PowerHome installation and there is a macro that runs every night to perform an "Insteon Check". Every morning I find the PLM is listed in the "Devices" screen with the "Clear Failed" check-box highlighted red and the "Disabled" check-box is checked. I also see in the devices window that the "Comm Reliability" value is 0% and always has been since switching from a PLC to a PLM. What could be causing this to happen?


Scott, you have me confused. I thought you were up and running.


The trigger you gave as an example will not achieve what the intent is. To use the macro you are basically issuing an Insteon command specifying the device and level by passing parameters. Since I personally don’t use this approach I can’t give any examples without testing them myself. My method is to set a variable to the value I expect the device to be then check it at a later time and correct it if not equal. If you need more detail I’d be glad to share it with you.


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
k2zs
Senior Member
Senior Member
Avatar

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: November 26 2009 at 23:00 | IP Logged Quote k2zs

Actually I am, maintaining another system. I just purchased PowerHome2 and some I/O devices to start proto typing ideas for the other system. I expect it this weekend.

My main problems with the other system is communications and that the "Device Status" window doesn't always depict what is actually on. After that my goal is to replace the Stargate integration with the direct I/O.

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 

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

<< Prev Page of 2
  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