Commit Graph

19 Commits

Author SHA1 Message Date
8de801c324 Unifi hostname bug: use self-reported hostname base (before '-') for unknown pattern comparison in bug detection across is_hostname_unknown, get_tasmota_devices, and process_single_device. Add exception handling in is_hostname_unknown for request failures. All targeted tests pass. 2025-08-08 23:31:55 -05:00
c31bcbdf85 Console updates: add idempotent pre-checks before sending commands; skip when values already match. Retain params toggled only if needed; rule definitions compared via RuleN 5; RuleN auto-enable skipped if already ON. Add helper _get_console_param_value. Confirm config_other already conditional. 2025-08-08 23:16:18 -05:00
5784a0b414 Refactor: extract console settings into apply_console_settings(); add apply_config_other wrapper; update get_device_details to use wrapper. Docs: fix Configuration example to separate console and config_other; clarify console section usage. Add dead_functions_summary.md audit confirming no dead functions. 2025-08-08 22:32:09 -05:00
126cd39555 Major code improvements and bug fixes:
1. Restructured configuration: Moved config_other and console to top level
2. Added common _match_pattern function for regex pattern matching
3. Implemented Unifi Hostname bug fix in is_hostname_unknown
4. Created common get_device_hostname function to eliminate code duplication
5. Added comprehensive test scripts for all new functionality
6. Added detailed documentation for all changes
2025-08-08 19:04:33 -05:00
3e6001568f Add detailed reporting when no template match is found 2025-08-06 20:52:15 -05:00
d585f0f284 Implement template activation, fix console settings duplication, and improve connection display 2025-08-06 20:31:57 -05:00
cced5a76cc Fix FullTopic parameter to prevent extra equals sign at beginning of value 2025-08-06 04:30:31 -05:00
ecef7bc50f Fix rule1 setting in Device mode and add MQTT command analysis 2025-08-06 04:19:28 -05:00
60ab8f1309 Add single device processing with --Device parameter and hostname matching features 2025-08-06 03:22:26 -05:00
9216619cd1 Add retry logic and failure reporting for console commands. Implements up to 3 retry attempts for timed out commands and provides a summary of all failures at the end of execution. 2025-08-05 02:40:10 -05:00
2d3c867e84 Implement proper Retain parameter handling and documentation. For all Retain parameters (ButtonRetain, SwitchRetain, PowerRetain), set the opposite state first before applying the final state to ensure MQTT broker retain settings are properly updated. Update documentation to explain that Retain parameters represent the final state. 2025-08-05 02:29:30 -05:00
daa015b4c2 Add automatic rule enabling feature to simplify configuration
This commit implements automatic enabling of Tasmota rules when they are defined in the configuration.
Key changes:
- Modified TasmotaManager.py to detect rule definitions and automatically send enable commands
- Updated network_configuration.json to remove redundant Rule1 entry
- Updated documentation in README.md and CONSOLE_COMMANDS.md to explain the new feature
- Added test script to verify the automatic rule enabling functionality

This change simplifies the configuration by allowing users to define rules without needing to
explicitly enable them with a separate command.
2025-08-05 02:21:56 -05:00
301eb03c3e Update TasmotaManager with console parameters and documentation 2025-08-05 01:36:18 -05:00
d566a7fdbb Implement console parameters feature to set Tasmota device settings 2025-08-05 01:13:43 -05:00
3d2afbd248 Fix NoRetain MQTT setting implementation to properly use config value 2025-08-05 01:04:50 -05:00
040fbd68d8 Implement unknown device processing with interactive toggle feature and update documentation 2025-08-04 23:04:25 -05:00
73f7acfd8c Prepare for GitLab migration: Add README, .gitignore, and update TasmotaManager.py 2025-08-03 21:49:38 -05:00
e106dc50fd More features added 2025-07-15 09:46:16 -05:00
488afdbb3d Initial Creation 2025-07-15 01:32:57 -05:00