Update docs: relay command, battery status, 5s delay

This commit is contained in:
UA1ZBE
2026-07-22 09:45:47 +03:00
parent db8a358573
commit 287da12a83
2 changed files with 17 additions and 3 deletions

View File

@@ -112,11 +112,18 @@ All commands are processed in `onGroupDataRecv()`:
| `relay1 off` | relay1 OFF (direct) | `relay1 off ok` |
| `relay2 on` | relay2 ON | `relay2 on ok` |
| `relay2 off` | relay2 OFF | `relay2 off ok` |
| `status` | report state | `status:armed/off temp:±X.XC hall:trig/ok motion:trig/ok` |
| `relay` | state of both relays | `relay:1on 2off` |
| `status` | report state | `status:armed/off temp:±X.XC hall:trig/ok motion:trig/ok bat:X.XXV/USB` |
| `ver` | build date | `build:Mon DD YYYY HH:MM:SS` |
| `scan` | noise floor | `noise:-XXXdBm` |
| `security_conf <name>` | change channel | `channel:<name>` |
### Response Delay
All command responses are sent with a **5-second delay** (non-blocking, via `defer_response`).
The action (relay toggle, armed state change) happens immediately — only the reply text is deferred.
Alerts (`alert:hall`, `alert:motion`) and startup (`poweron`) are sent immediately without delay.
### Auto-Sent Messages
- **Startup:** `poweron Mon DD YYYY HH:MM:SS` — sent 10s after boot.
- **Hall alert:** `alert:hall` — when armed and reed opens.