Pilot v2: Core implementation + battery telemetry
Major updates: - Complete Rust rewrite (pilot-v2/) with working MQTT client - Fixed MQTT event loop deadlock (background task pattern) - Battery telemetry for Linux (auto-detected via /sys/class/power_supply) - Home Assistant auto-discovery for all sensors and switches - Comprehensive documentation (AVANCEMENT.md, CLAUDE.md, roadmap) - Docker test environment with Mosquitto broker - Helper scripts for development and testing Features working: ✅ MQTT connectivity with LWT ✅ YAML configuration with validation ✅ Telemetry: CPU, memory, IP, battery (Linux) ✅ Commands: shutdown, reboot, sleep, screen (dry-run tested) ✅ HA discovery and integration ✅ Allowlist and cooldown protection Ready for testing on real hardware. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Lance pilot-v2 en mode local avec config.yaml dans le dossier courant.
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT_DIR/pilot-v2"
|
||||
|
||||
if [ ! -f "config.yaml" ]; then
|
||||
if [ -f "../config.yaml" ]; then
|
||||
cp ../config.yaml config.yaml
|
||||
echo "config.yaml copie depuis la racine"
|
||||
elif [ -f "../config/config.example.yaml" ]; then
|
||||
cp ../config/config.example.yaml config.yaml
|
||||
echo "config.yaml cree a partir de config/config.example.yaml"
|
||||
fi
|
||||
fi
|
||||
|
||||
cargo run
|
||||
Reference in New Issue
Block a user