I had my garage door status set up to use a series of resistors and a couple of magnetic reed switches. Depending upon position of door, CMAX code would read a value between 0 and 255 representing a relative value of the resistance which then corresponds to the position of the door.
I use CMAX code to loads a unique value into a variable (that HomeSeer monitors) depending upon the range of the value accounting for slight variations in the analog reading resulting from the resistance being measured. I have an event that is triggered when the value of that variable changes and the event makes sure that the device string is updated.
This all worked before and I am having problems since I reloaded my CMAX code into a new Ocelot. I have good documentation on how I calculated the value ranges as they relate to the resistance changes.
However, I must be missing something. It appears that the Secu16I is seeing >250 which my CMAX code considers as a short. It does not appear that anything changes within the Secu16I as I move the garage door. I do measure appropriate resistances using a multimeter so the circuit itself is fine.
Within CMAX, I am using the analog reading of Input #0 (Analog #0), I have the jumper ON since I am not inputting voltage. Inputs #8-#15 are working as supervised and work fine.
Any suggestions?
Jim Doolittle
I use CMAX code to loads a unique value into a variable (that HomeSeer monitors) depending upon the range of the value accounting for slight variations in the analog reading resulting from the resistance being measured. I have an event that is triggered when the value of that variable changes and the event makes sure that the device string is updated.
This all worked before and I am having problems since I reloaded my CMAX code into a new Ocelot. I have good documentation on how I calculated the value ranges as they relate to the resistance changes.
However, I must be missing something. It appears that the Secu16I is seeing >250 which my CMAX code considers as a short. It does not appear that anything changes within the Secu16I as I move the garage door. I do measure appropriate resistances using a multimeter so the circuit itself is fine.
Within CMAX, I am using the analog reading of Input #0 (Analog #0), I have the jumper ON since I am not inputting voltage. Inputs #8-#15 are working as supervised and work fine.
Any suggestions?
Jim Doolittle
Comment