Skip to content

Commit

Permalink
Updates to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Lamoureux authored and Michael Lamoureux committed Aug 19, 2017
1 parent 3dbc795 commit 79facab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion August Home.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion August Home.indigoPlugin/Contents/Server Plugin/Events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<Name>Lock or Unlock by a unknown person</Name>
<ConfigUI>
<Field type="menu" id="lockUnlock" defaultValue="unlocked">
<Label>Popup Menu:</Label>
<Label>Lock Status:</Label>
<List>
<Option value="lock">Locked</Option>
<Option value="unlock">Unlocked</Option>
Expand Down
3 changes: 2 additions & 1 deletion August Home.indigoPlugin/Contents/Server Plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ def update_all_from_august_activity_log(self):
except ValueError:
lastSentIndigoUpdateTime = None

# IDENTIFY ACTIONS IN THE ACTIVITY LOG THAT CAME FROM INDIGO TO AVOID REDUNDANT PROCESSING
if lastSentIndigoUpdateTime is not None:
if activityItem.via == "via August App Remotely":
if activityItem.dateTime - datetime.timedelta(seconds = ACTIVITY_MATCHING_THRESHOLD) <= lastSentIndigoUpdateTime <= activityItem.dateTime + datetime.timedelta(seconds = ACTIVITY_MATCHING_THRESHOLD):
Expand Down Expand Up @@ -898,7 +899,7 @@ def update_all_from_august_activity_log(self):
self.logger.debug("Checking if trigger: \"" + trigger.name + "\" has occured. Max latency: " + str(trigger.pluginProps["maxLatency"]) + ", Event delta: " + str(delta_time.total_seconds()))
if int(delta_time.total_seconds()) <= int(trigger.pluginProps["maxLatency"]):
if trigger.pluginProps["lockUnlock"] == activityItem.action or trigger.pluginProps["lockUnlock"] == "any":
if activityItem.callingUser == "Unknown User" and trigger.id == "lockByUnknownPerson":
if activityItem.callingUser == "Unknown User" or activityItem.callingUser == "manually":
indigo.trigger.execute(trigger)

self.logger.debug("Completed processing lock triggers")
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ In addition to the August Lock, you will need either a August Doorbell or August
| Event | Description |
|:---------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| doorbell_motion_detected | Event that fires when a motion_detected, or call_missed. Requires a doorbell bridge for these events to occur. |
| lockByPerson | Event that can trigger upon a lock or unlock event by a known person. Options are available to exclude remote methods (HomeKid, August App Remote). Note that HomeKit is not possible to decipher if the user was on the local network or remote. |
| lockByUnknownPerson | Event that can trigger upon a lock or unlock event by a known person. |
| lockByPerson | Event that can trigger upon a lock or unlock event by a known person. Options are available to include remote methods (HomeKit, August App Remote). Note that HomeKit is not possible to decipher if the user was on the local network or remote. |
| lockByUnknownPerson | Event that can trigger upon a lock or unlock event by a unknown person. This will include manual unlocks. |
| invalidCode | Event that can trigger when a invalid key code is entered. Requires the August Keypad. |

# States #
Expand Down

0 comments on commit 79facab

Please sign in to comment.