Commit 882b903
authored
Adds support for LED switches to LED enabled managed UniFi devices and new real-time Trigger system (#66)
- Adds LED control for LED capable UniFi devices
- Adding a new `UnifiLedToggleSwitch` entity.
- Fetching LED states from the `/stat/device` endpoint.
- Allowing users to toggle the LED on/off via a switch entity.
- switch entity has additional meta data, including mac address and model id
- Extends LED toggle to other devices
- Enhance API operation queue with retry logic and device LED control
- Added `QueuedOperation` class for managing queued operations with retries.
- Enhanced `ApiOperationQueue` to include retry logic and queue management.
- Updated LED toggle handling for devices in `switch.py` and `rule.py`.
- Update version in manifest.json from 2.3.0-beta.1 to 2.3.0, promoting the beta release to stable.
- Refactor GitHub Actions workflows by removing the HACS validation from `hacs-integration.yml` and creating a new `hass-validation.yml` for dedicated Home Assistant validation. This improves workflow organization and clarity.
- Implement trigger system for UniFi Network Rules
- Addition of a `triggers.yaml` file defining various triggers for rule events (enabled, disabled, changed, deleted).
- Refactoring of the websocket message handling to integrate with the new trigger system, allowing for more efficient processing of rule-related events.
- Updates to the `coordinator.py` and `trigger.py` files to support the new trigger logic and improve logging for debugging purposes.
- Minor adjustments to the `manifest.json` to include the new trigger platform.
- Enhance UniFi Network Rules integration with real-time trigger system
- Added a new section in `README.md` detailing the real-time triggers, their features, and setup instructions.
- Updated `trigger.py` to support device automation style schemas and improved logging for better debugging.
- Enabled detailed logging for trigger detection and processing, enhancing the ability to monitor rule changes.
- Updated `const.py` to enable trigger logging for state-diff debugging.
- Incremented version in `manifest.json` to 3.0.0 to reflect the significant enhancements.1 parent e103642 commit 882b903
15 files changed
Lines changed: 1976 additions & 324 deletions
File tree
- .github/workflows
- custom_components/unifi_network_rules
- helpers
- translations
- udm
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments