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:
Gilles Soulier
2025-12-30 06:23:00 +01:00
parent b7e67c6501
commit c5381b7112
4453 changed files with 78647 additions and 0 deletions

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
69d1e50d862480f3

View File

@@ -0,0 +1 @@
{"rustc":4758242423518056681,"features":"[\"async\", \"futures-core\", \"futures-sink\"]","declared_features":"[\"async\", \"default\", \"eventual-fairness\", \"futures-core\", \"futures-sink\", \"nanorand\", \"select\", \"spin\"]","target":16191227632963893259,"profile":2241668132362809309,"path":6351682404427388180,"deps":[[2313368913568865230,"spin1",false,3531411305650160497],[7013762810557009322,"futures_sink",false,3855036536412416388],[7620660491849607393,"futures_core",false,8459390063132964111]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/flume-3656356a4fa2de4c/dep-lib-flume","checksum":false}}],"rustflags":[],"config":2069994364910194474,"compile_kind":0}