I can't seem to find this in the forums, so I'd appreciate any help.
I have a simple event that triggers if one of a group of locks changes state to unlocked. If that happens, I want to send the identification of the lock as well as the last code entered on the keypad. The keypad code is reported on a different device than the lock status, but the reference # of that device is always +1 to the reference number of the lock.
So I have a simple event that triggers on the group, and then sends an email message using the following global variables to report on the lock itself:
$$GLOBALVAR:ETDeviceLocation2:,
$$GLOBALVAR:ETDeviceLocation1:
$$GLOBALVAR:ETDeviceName:
$$GLOBALVAR:ETDeviceStatus:
In order to get the keypad code, I used $$GLOBALVAR:ETDeviceRef: and add +1 and try and get that value like:
$$DVR:$$GLOBALVAR:ETDeviceRef: + 1:
But the message ends up showing something like
$$DVR:640 + 1:
In other words, it doesn't do the math, add the two numbers, and use the resulting sum as the reference.
Am I doing something wrong, or is this use of simply math in a $$DVR: : function just not allowed? If not, any simple workarounds that people know of?
I have a simple event that triggers if one of a group of locks changes state to unlocked. If that happens, I want to send the identification of the lock as well as the last code entered on the keypad. The keypad code is reported on a different device than the lock status, but the reference # of that device is always +1 to the reference number of the lock.
So I have a simple event that triggers on the group, and then sends an email message using the following global variables to report on the lock itself:
$$GLOBALVAR:ETDeviceLocation2:,
$$GLOBALVAR:ETDeviceLocation1:
$$GLOBALVAR:ETDeviceName:
$$GLOBALVAR:ETDeviceStatus:
In order to get the keypad code, I used $$GLOBALVAR:ETDeviceRef: and add +1 and try and get that value like:
$$DVR:$$GLOBALVAR:ETDeviceRef: + 1:
But the message ends up showing something like
$$DVR:640 + 1:
In other words, it doesn't do the math, add the two numbers, and use the resulting sum as the reference.
Am I doing something wrong, or is this use of simply math in a $$DVR: : function just not allowed? If not, any simple workarounds that people know of?
Comment