Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: April 18 2020 at 17:55 | IP Logged
|
|
|
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 |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 18 2020 at 18:33 | IP Logged
|
|
|
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 |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: April 18 2020 at 19:12 | IP Logged
|
|
|
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 |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: April 19 2020 at 11:12 | IP Logged
|
|
|
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 |
|
|