Mercurial > code > home > repos > front-door-lock
diff front_door_lock.py @ 3:89d47e203fc2
redo the plan
author | drewp@bigasterisk.com |
---|---|
date | Sun, 27 Aug 2023 13:18:06 -0700 |
parents | 3b82ee3b9d79 |
children | d0fa3638de2a |
line wrap: on
line diff
--- a/front_door_lock.py Sun Aug 27 13:17:50 2023 -0700 +++ b/front_door_lock.py Sun Aug 27 13:18:06 2023 -0700 @@ -1,20 +1,16 @@ """ -When a client requests - PUT /output - body room:unlocked - head x-foaf-agent: <uri> - -Then send +Output mqtt messages: frontdoorlock/switch/strike/command 'ON' - -Then after a time send frontdoorlock/switch/strike/command 'OFF' -Also report on - frontdoorlock/status 'online' --- +Simple command mode: + PUT /api/simple/unlock + PUT /api/simple/lock + PUT /api/simple/stayUnlocked -Plus, for reliability, a simpler web control ui. +Planned rdf mode: + Watch a collector graph that includes the graph from the fingerprint service. + When that graph contains 'unlockRequest' and an agent, we do our unlock command. """ import asyncio