MrWorf Posted December 1, 2016 Posted December 1, 2016 I have a similar issue as the person in this thread, my 2477S (Wall switch) has been corrupted with a device link record of type AA and the address of one of my motion sensors. Now, I could go through the remove/readd, but I don't feel that is the proper way, so I've done some digging in the ISY (since that's the source of the corruption) and it seems possible to backup the isy, edit the record manually (replacing AA with A2 which is responder) and then restore. This should correct the incorrect value in the ISY and a subsequent "Restore Device" should then replace the faulty link with a responder link which ISY will allow me to remove. I'll let you know how it works (might be doomed if ISY produces a checksum for its backups) BUT! If anyone from Universal Devices are reading this, we need a way to find errors like this (you should know what's considered valid values) and issue warnings and also allow a manual "erase" of such links. Because editing a backup and the restoring it makes me feed uncomfortable Quote
LeeG Posted December 1, 2016 Posted December 1, 2016 (edited) MrWorf The AA flag is a valid active record. Bits 3 & 4 are now used and can change over time. Edited December 1, 2016 by LeeG Quote
MrWorf Posted December 1, 2016 Posted December 1, 2016 Yes, I know (product specific) but in this case it's not valid. It causes ISY to hide the link, it makes the switch turn on when there is motion, and I cannot remove it or block it. So while valid, it's not valid for this product (2477S) Quote
MrWorf Posted December 1, 2016 Posted December 1, 2016 @LeeG: If you happen to have a list of all Record Types, that would be awesome I found two more odd ones (value 62) and it would be great to know if it was expected or not. Also, this script in bash can be used to probe the *.REC files in the ISY backup: #!/bin/bash function getrecord() { BASE=$((180 + $2 * ) hexdump -v -s $BASE -n 8 -e '8/1 "%02x " "\n"' $1 } FILE=$1 HIDE=$2 HIDE=${HIDE:=false} I=0 TYPE="" while [ "$TYPE" != "00" ]; do REC=$(getrecord $FILE $I) TYPE="${REC:0:2}" case "$TYPE" in e2|a2|22|02|00) if ! $HIDE ; then printf "%02d: %s - OK\n" $I "$REC" fi ;; *) if $HIDE ; then printf "%02d: %s - WARNING (%s)\n" $I "$REC" "$FILE" else printf "%02d: %s - WARNING\n" $I "$REC" fi ;; esac I=$(($I+1)) done like so: for F in *.REC ; do ./screen-rec.sh $F true ; done 1st argument is the file to probe, 2nd argument is true to only show odd values or false (or skipped) to show all records. Quote
LeeG Posted December 1, 2016 Posted December 1, 2016 MrWorf The 62 is an inactive record. The AA is valid for the SwitchLinc Relay device. SmartLabs use to have a link that showed the possible values in bits 3 & 4. The SmartLabs page has changed making it more difficult to find the document. I may have a copy locally which I will post if available. Quote
MrWorf Posted December 1, 2016 Posted December 1, 2016 If AA is a valid one, then why can't I remove it? It has broken our house setup right now. Going to try my hack tonight and see if it works, because now the lights go on/off at random based on the motion sensor which is annoying, wasteful and generally displeasing Moving this discussion to http://forum.universal-devices.com/topic/20453-what-is-an-aa-record-for-2477s-and-why-cant-i-remove-it Quote
LeeG Posted December 1, 2016 Posted December 1, 2016 MrWorf What are you using to remove the link and from what device? A Motion Sensor sleeps (being battery powered) so removing a link from a MS takes additional effort. Quote
MrWorf Posted December 1, 2016 Posted December 1, 2016 LeeG, The link is on the Switch, it's kinda half-linked, so the switch listens to events from motion, but motion does not care about switch. And the problem is that ISY has a record of it. My plan is to backup, edit the <insteon id>.REC file with a hex editor and replace AA with 22 (deleted) and restore the backup. After that, I should be able to issue a restore device to the switch and presto, motion sensor should no longer trigger my switch. I'll let you know about my result later tonight Quote
G W Posted December 1, 2016 Posted December 1, 2016 It is much easier to add the motion sensor to the switch and then remove it. I'm Gary Funk. Pay no attention to this message. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.