- Remove null error field from successful command responses for cleaner JSON
- Fix client_id consistency between MqttClient and MqttHandler for reliable publishing
- Add comprehensive command system documentation to CLAUDE.md:
* User-configurable commands via systant.toml
* Enterprise security features (whitelist-only, parameter validation, timeouts)
* Simple command interface: {"command":"trigger","params":[...]}
* Built-in commands and response format examples
* Complete MQTT topic structure documentation
Command system now production-ready with:
✅ Secure execution (no arbitrary shell commands)
✅ Clean JSON responses (no null fields)
✅ Comprehensive logging and audit trail
✅ User-customizable command definitions
✅ Request/response correlation with auto-generated IDs
Ready for Home Assistant integration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| application.ex | ||
| command_executor.ex | ||
| config.ex | ||
| mqtt_client.ex | ||
| mqtt_handler.ex | ||
| system_metrics.ex | ||