Endpoint | Function |
---|---|
POST /lock/:id | Lock a device, entry point, or node |
POST /unlock/:id | Unlock the same |
GET /lock/status/:id | Query current lock state |
- Optional auth/token check
- Integration with existing device alias/MAC routing
- Wireless Lock Types:
Wi-Fi locks (e.g., smart deadbolts, Tuya, August, Yale)
Bluetooth/BLE locks (e.g., padlocks, eBike, drawer systems)
LoRa-based smart locks (low-power remote access)
Zigbee/Z-Wave gateways (via bridge or USB dongle)
RF-based relay locks (433MHz garage, mailbox, or cabinet)
GPIO-controlled relays (physical Pi-connected lock systems)
API Commands:POST /lock/:device_id
POST /unlock/:device_id
GET /lock/status/:device_id
POST /lock/broadcast
→ Lock multiple devices at once by tag/group
Each supported lock will be defined in the device_registry.json
with:
type
,mac
,comm_protocol
,control_command
, andrelay_code
if RF