Commit Graph

5 Commits

Author SHA1 Message Date
e486f0efc9 Update README for bash script version 2025-12-23 12:31:13 +11:00
5171723a05 Add pure bash template migration script (no Python dependencies)
Safe and reliable bash-only implementation:
- Works in SSH add-on without Python
- Uses awk for YAML parsing (reliable and fast)
- Automatic timestamped backups
- Extracts legacy template definitions
- Converts to modern template: syntax
- Removes legacy platform: template blocks
- Adds modern templates to configuration.yaml
- Generates restore script for rollback
- Exit on error for safety (set -e)
- Temp directory cleanup with trap

Fixes all 67 template deprecation warnings without Python dependencies.
2025-12-23 12:30:19 +11:00
d0421edcba Add comprehensive README with usage instructions and examples 2025-12-23 11:29:30 +11:00
4e3201c604 Add automated template migration script
Automatically migrates legacy template syntax to modern template: syntax:
- Scans all YAML files for platform: template definitions
- Converts sensors and binary_sensors to modern format
- Creates timestamped backups
- Removes legacy definitions
- Adds modern template: section to configuration.yaml
- Preserves all template features (icons, attributes, device_class, etc)
- Generates restore script for rollback

Fixes all 67 template deprecation warnings automatically.
2025-12-23 11:27:24 +11:00
28c1da4325 Initial commit 2025-12-23 11:26:38 +11:00