Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: How to put a LINK command into a MACRO? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: April 18 2020 at 17:55 | IP Logged Quote jeffw_00

Hi - Hope everyone is doing well during these trying times.   I use
Synchrolincs to watch the status of my washer and dryer.
I have several, since they aren't made anymore. I had one fail
today and I discovered that it, and all the ones that I had put aside,
now exhibit the same malady: When you unplug them they forget
their links. Relinking them after plugging them back in fixes it. So
something wore out with just the passage of time, and I now have
to relink them after very power failure. That would make me sad,
but I have Powerhome. PH knows when we come back from a
power failure (PC reboots, it runs its INITIALIZE MACRO) so all I
have to do is put commands in that MACRO to relink the devices. I
don't see a ph_link function, but I'm sure there's a way to do this?

Thanks!
/j

Edited by jeffw_00 - April 18 2020 at 17:57
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: April 18 2020 at 18:33 | IP Logged Quote dhoward

Jeff,

Hope you're doing well and staying safe.

Definitely an odd request but as usual with PowerHome, most things are possible by tweaking the backend database.

Doing some quick research on the Synchrolink, it would appear that it is pretty much always the controller with the PLM (or other devices) the responder.
The Insteon links are all contained and controlled from the INSTEONLINKS table so this is the table we'll update. The data in this table is stored by the
Insteon address vs the Insteon ID so you'll need to know that. The PH formula is:

Code:
ph_directsql("update insteonlinks set mcheck = 101,mrecno = 0 where sourceid = 'AA.BB.CC' ")


Just replace the 'AA.BB.CC' with the actual Insteon address of your Synchrolink. What this is doing is setting a flag to create a controller link (the
"mcheck" field) and zeroing out the "mrecno" field.

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: April 18 2020 at 19:12 | IP Logged Quote jeffw_00

Hey Dave - Doing fine thanks - hope you're doing well too, I've been
around a number of decades and -never- lived through anything like
this.   Thanks so much for the quick and 100% super-helpful
response. I will test this out tomorrow.

Best!
/j

Oh - and I have my Synchrolincs defined to PH as Controllincs
(Legacy) - seems to work :-)

Edited by jeffw_00 - April 18 2020 at 19:13
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: April 19 2020 at 11:12 | IP Logged Quote jeffw_00

works great - thanks!

maybe for a future improvement, create a specific function that uses
the name rather than the address?   But if and when :-)
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

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