Commit Graph

14 Commits

Author SHA1 Message Date
1640754df8 Add $hostname variable substitution in config
This commit adds support for automatic hostname substitution in configuration files.
Users can now use $hostname in device.name, device.identifiers, and mqtt.client_id
to automatically use the system's hostname.

Changes:
- Add hostname crate dependency (v0.4)
- Implement expand_variables() to replace $hostname with actual hostname
- Add get_hostname() helper function
- Update config.example.yaml to demonstrate $hostname usage
- Add test for hostname substitution
- Update config.yaml to use $hostname by default
- Add test_command.sh script for testing MQTT commands

This makes deployment easier across multiple machines without manual config changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-30 06:52:41 +01:00
Gilles Soulier
c5381b7112 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>
2025-12-30 06:23:00 +01:00
b7e67c6501 Supprimer README.html 2024-09-02 12:40:58 +02:00
8409fc41b6 h 2024-09-02 12:40:28 +02:00
b72d3f82c0 version multi computer 2024-09-02 12:38:05 +02:00
9c25191f0d version multi pc 2024-09-02 12:37:13 +02:00
3878d2431f Téléverser un nouveau fichier 2024-04-30 17:42:49 +00:00
5a446a0ca2 Update file main.py 2024-04-20 10:55:31 +00:00
b5ac7620c8 1.1 2024-04-14 07:58:42 +02:00
05d1106ba1 correction requirements.txt 2024-04-14 07:45:02 +02:00
7a03c09f5a add gitignore 2024-04-14 07:43:10 +02:00
e4396418c8 v1 2024-04-14 07:34:53 +02:00
c14ea74287 premier envoie 2024-04-14 07:13:49 +02:00
537f1acde4 Initial commit 2024-04-14 04:07:14 +00:00