vtmikel wrote:@rapamatic - I finally installed my DoorSense and configured it. I now have a beta of the plugin with a new device to indicate the state of the door. Reach out if you want early access. I need to test it and improve the state on startup before I publish.
vtmikel wrote:If you mean that you wish August would allow to bypass the auto-lock, I agree. I would not be able to implement that in the plugin. My own use has found that I prefer to disable August's auto lock and I've implemented my own through Indigo. I personally have a simple python script that determines when to lock the door, taking into account the time of day, activity (motion and opening/closing of the door) in the front of the house, the season of the year, and amount of time that the door has been unlocked. I use a Indigo variable to control the lock time and change it based on the time of the day.
auto_lock_debug = indigo.variables[1756882648].getValue(bool) # "auto_lock_debug"
auto_lock_lastchanged_status_action = indigo.variables[1143764889].value # "auto_lock_lastchanged_status_action"
auto_lock_minutes = indigo.variables[961001126].getValue(int) # "auto_lock_minutes"
auto_lock_enabled = indigo.variables[559454321].getValue(bool) # "auto_lock_enabled"
auto_lock_use_extended_presence_threshhold = indigo.variables[564324677].getValue(bool) # "auto_lock_use_extended_presence_threshhold"
extended_presence = bool(indigo.devices[1828588738].states["onOffState"]) # State "onOffState" of "Front Door and Porch Presence"
front_door_lock_id = 1545960088
front_door_lock_locked = indigo.devices[front_door_lock_id].onState # "Front Door Lock"
try:
unlocked_minutes = indigo.variables[554776568].getValue(int) # "Front_Door_Lock_via_Cloud_locked_minutes"
except:
unlocked_minutes = 100
garage_door_closed = indigo.devices[1969968999].onState # "Garage Door"
front_door_open = indigo.devices[502552913].onState # "Front Door Sensor"
front_porch_active = indigo.devices[1864611295].onState # "Front Porch Motion Sensor"
foyer_active = indigo.devices[1059102247].onState # "Foyer Motion Sensor"
if auto_lock_debug:
indigo.server.log("auto lock event: " + auto_lock_lastchanged_status_action)
if auto_lock_enabled and not front_door_lock_locked:
if unlocked_minutes > auto_lock_minutes:
if (auto_lock_use_extended_presence_threshhold and not extended_presence and garage_door_closed) or (not auto_lock_use_extended_presence_threshhold and not foyer_active and not front_porch_active and garage_door_closed and not front_door_open):
indigo.server.log("auto locking the front door; it has been unlocked for " + str(unlocked_minutes) + " minute(s)")
indigo.device.lock(front_door_lock_id)
elif auto_lock_debug:
indigo.server.log("the front door has been unlocked for " + str(unlocked_minutes) + " minute(s), and will lock once the foyer, front porch, garage are inactive and the front door is closed.")
indigo.server.log("Foyer Active: " + str(foyer_active))
indigo.server.log("Front Porch Active: " + str(front_porch_active))
indigo.server.log("Garage Door Closed: " + str(garage_door_closed))
indigo.server.log("Front Door Open: " + str(front_door_open))
elif auto_lock_debug:
indigo.server.log("the front door has been unlocked for " + str(unlocked_minutes) + " minute(s), which is less than the auto lock setting of " + str(auto_lock_minutes) + " minutes")
elif auto_lock_debug:
indigo.server.log("auto lock disabled or the door is already locked")
if auto_lock_debug:
indigo.server.log("auto_lock_enabled: " + str(auto_lock_enabled))
indigo.server.log("unlocked_minutes: " + str(unlocked_minutes))
indigo.server.log("auto_lock_minutes: " + str(auto_lock_minutes))
indigo.server.log("auto_lock_use_extended_presence_threshhold: " + str(auto_lock_use_extended_presence_threshhold))
indigo.server.log("extended_presence: " + str(extended_presence))
indigo.server.log("foyer_active: " + str(foyer_active))
indigo.server.log("front_porch_active: " + str(front_porch_active))
indigo.server.log("garage_door_closed: " + str(garage_door_closed))
indigo.server.log("front_door_open: " + str(front_door_open))
Dec 9, 2018 at 9:37:01 PM
August Home sent "August Door Sense" status request
August Home Error Response HTTP Status Code: 400
August Home Error Response HTTP Response Body: {"code":"BadRequest","message":"1755508267 is not a valid lockid"}
August Home Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 377, in actionControlUniversal
KeyError: ('LockStatus',)
bighop wrote:I’m looking at the August lock pro. Will I still need a WiFi bridge if indigo is comparable with the product?
Users browsing this forum: No registered users and 1 guest