comparison 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
comparison
equal deleted inserted replaced
2:76cec592435c 3:89d47e203fc2
1 """ 1 """
2 When a client requests 2 Output mqtt messages:
3 PUT /output
4 body room:unlocked
5 head x-foaf-agent: <uri>
6
7 Then send
8 frontdoorlock/switch/strike/command 'ON' 3 frontdoorlock/switch/strike/command 'ON'
9
10 Then after a time send
11 frontdoorlock/switch/strike/command 'OFF' 4 frontdoorlock/switch/strike/command 'OFF'
12 5
13 Also report on 6 Simple command mode:
14 frontdoorlock/status 'online' 7 PUT /api/simple/unlock
15 -- 8 PUT /api/simple/lock
16 9 PUT /api/simple/stayUnlocked
17 Plus, for reliability, a simpler web control ui. 10
11 Planned rdf mode:
12 Watch a collector graph that includes the graph from the fingerprint service.
13 When that graph contains 'unlockRequest' and an agent, we do our unlock command.
18 """ 14 """
19 15
20 import asyncio 16 import asyncio
21 import logging 17 import logging
22 import time 18 import time