v2.5 - Usability pass
What's New
Consistent summary box
Summary fields now display in a stable, predictable order every run (was randomized due to a hashtable ordering bug).
Better log file defaults
Log file now defaults to the database folder with a timestamp in the filename (matching HTML report and undo script). Previously it went to the script directory without a timestamp, overwriting on every run.
Rules file error handling
When -RulesFile points to a malformed or missing file, the script now shows an error and exits instead of silently falling back to built-in defaults.
Auto-loading rules
rename_rules.json is now automatically loaded from the script directory when present and -RulesFile is not specified. This gives users the full 29-rule set (including switchType/customImage for smoke detectors, motion sensors, etc.) without needing to pass -RulesFile explicitly. Falls back to 7 built-in rules for standalone .ps1 downloads.
Smarter exit codes
Exit code now considers TypeChanged and ImageChanged in addition to Renamed. A run that only changes switch types no longer incorrectly reports "no changes needed."
Cleaner summary and log output
- Removed the non-actionable "Missing" count from the summary box (was showing thousands of expected Z-Wave config parameters that don't map to Domoticz devices).
- Consolidated thousands of individual MISSING log lines into a single summary line, reducing log size from ~5400 lines to ~1000.
Informed confirmation prompt
The confirmation prompt now appears after analysis and shows actual change counts (renames, type changes, image changes) instead of a raw value-entry count.
Full Changelog: v2.4...v2.5