HoneyAlarmServer icon indicating copy to clipboard operation
HoneyAlarmServer copied to clipboard

Error: Smartthings.py, line 114, in partitionStatus

Open managecontent opened this issue 9 years ago • 1 comments

In setting a "Stay" mode and then triggering an alarm, a partition status of ALARM_IN_MEMORY was generated. This seems to me like the equivalent of IN_ALARM. I believe it can be added to the dscCodes array as status 654.

Also, the following change (starting around line 84) should remove the error:

    dscCodes = {
        'READY': 650,
        'NOT_READY': 651,
        'IN_ALARM': 654,
        'EXIT_ENTRY_DELAY': 656,
        'ARMED_STAY': 652,
        'ARMED_AWAY': 652,
        'ARMED_MAX': 652,
        'READY_BYPASS': 702
        }

    # Better error handling..
    try:
      dscCodes[status]
    except:
      logging.debug("Status code we received was not in the map, please add it and map to a proper number if you want to act on it")
      return

managecontent avatar Feb 08 '16 20:02 managecontent

Thanks for submitting this. Your suggested changes make sense and I pushed up the changes. I did not write the smart things plugin nor do I use it personally - so give it a try and let me know if you run into anything.

MattTW avatar Feb 12 '16 17:02 MattTW