16 Commits

Author SHA1 Message Date
Tony b52a95b50a Enhance bridge protocol support: add KNX protocol to BridgeProtocolKind and update conversion functions
Signed-off-by: Tony <tonylu@tony-cloud.com>
2026-05-08 18:19:54 +08:00
Tony 1550ab15d6 Enhance bridge operation handling and improve JSON conversion
- Added new bridge operations to the bridgeOperationToString and bridgeOperationFromString functions for better command recognition.
- Implemented a fromCjson function to convert cJSON objects to DaliValue, supporting various data types including arrays and objects.
- Introduced isKnownBridgeRequestKey function to filter out unknown keys in bridge requests.
- Refactored handleDownlink to utilize the new fromCjson function for value and metadata extraction, improving code clarity and maintainability.
- Updated response creation to use a more structured approach with DaliValue's toJson method.

Signed-off-by: Tony <tonylu@tony-cloud.com>
2026-05-04 09:45:15 +08:00
Tony fa4acef881 Refactor DALI component: remove BACnet bridge support and update related documentation
Co-authored-by: Copilot <copilot@github.com>
2026-05-04 02:25:39 +08:00
Tony 402d6a451b Refactor DALI component: remove Modbus bridge support, update documentation, and enhance bridge model handling 2026-05-04 01:19:24 +08:00
Tony 307c480aa0 Enhance DALI bridge: add BridgeOperation and BridgeDaliTarget support, refactor address resolution and provisioning methods 2026-05-02 21:33:57 +08:00
Tony 16907857c0 Enhance DALI interface: add gateway parameter to scene and color methods for improved command handling 2026-05-02 21:32:39 +08:00
Tony 9f9628db39 Refactor DALI command handling: update DALI_DT1 and DALI_DT6 methods for improved command execution and status querying 2026-05-01 04:39:17 +08:00
Tony ba536768e4 Add physical mirek limits to DaliDt8State and implement color temperature limit methods in DaliDT8 2026-05-01 02:10:46 +08:00
Tony 84b3d29ed8 Add support for power-on and system failure level snapshots in DaliDT8 2026-04-29 19:39:23 +08:00
Tony 4c20fc2ae3 Add support for scene snapshot storage with color mode handling in DaliDT8 2026-04-28 19:08:55 +08:00
Tony 9e1244712d Refactor DALI command handling: streamline send methods and enhance scene color reporting
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 17:32:32 +08:00
Tony 32e7329b3e Enhance DALI device type discovery and query handling
- Introduce DaliDeviceTypeDiscovery struct for managing device type queries.
- Implement discoverDeviceTypes method in DaliBase for improved device type detection.
- Update DaliComm to handle query responses more robustly, including handling multiple device replies.
- Add setDetectedDeviceTypes method in DaliDevice to manage detected device types and capabilities.
2026-04-25 12:59:16 +08:00
Tony bbcfcd11f6 Add support for DT4, DT5, and DT6 devices
- Updated CMakeLists.txt to include new source files for DT4, DT5, and DT6.
- Modified dali.hpp to include headers for DT4, DT5, and DT6.
- Added command definitions for DT4, DT5, and DT6 in dali_define.hpp.
- Enhanced DaliDeviceCapabilities to support DT4, DT5, and DT6 detection.
- Implemented DT4 and DT5 classes with methods for device control and status querying.
- Created DT6 class with methods for device control and status querying.
- Updated decode.cpp to include new device types in the deviceTypeName mapping.
- Enhanced device.cpp to handle new device capabilities.
2026-04-24 13:36:08 +08:00
Tony 21afc6b942 Implement DALI Bridge Engine and Model Management
- Added `bridge.cpp` to handle DALI bridge operations including model management, command execution, and response formatting.
- Introduced `bridge_model.cpp` for defining bridge models, value transformations, and JSON serialization/deserialization.
- Created `bridge_provisioning.cpp` for managing bridge configuration storage and retrieval using NVS on ESP platform.
- Enhanced `gateway_cloud.cpp` to integrate DALI bridge requests and responses with cloud communication.
- Introduced `modbus_bridge.cpp` to handle Modbus-specific operations and register management.
- Implemented utility functions for converting between DaliValue and cJSON formats.
- Added error handling and metadata management in bridge responses.
2026-04-22 10:14:42 +08:00
Tony a8a82f9627 Add cloud bridge and provisioning support for ESP32 gateway
- Introduced DaliCloudBridge for MQTT communication with backend.
- Added GatewayProvisioningStore for persisting cloud connection settings using NVS.
- Updated CMakeLists.txt to include new source files.
- Enhanced README.md with usage examples and configuration details.
2026-03-31 08:44:30 +08:00
Tony 7e8ac7f566 initial commit 2026-03-26 12:04:08 +08:00