Commit Graph

6 Commits

Author SHA1 Message Date
Cyborg2017
a3ed31b212 feat: update device mapping for T0x13(22222222) 2026-01-30 13:59:20 +08:00
Cyborg2017
c879f911d1 feat: enhance color temperature control for light devices with flexible range
- Updated device mapping configuration to support explicit device range specification
  - Changed from simple [min_kelvin, max_kelvin] format to structured format:
    {"kelvin_range": [min_kelvin, max_kelvin], "device_range": [min_device, max_device]}
  - This allows devices with non-standard (non-1-100) color temp ranges to be properly supported

- Improved color temperature conversion logic in light entity:
  - Added support for device-specific range mapping instead of hardcoded 1-100 range
  - Enhanced configuration detection to handle both direct and nested formats
  - Updated kelvin-to-device and device-to-kelvin conversion to use dynamic ranges
2026-01-30 13:58:21 +08:00
sususweet
8714549f90 feat: add support for fan-light. Fix #56. 2025-11-27 21:40:56 +08:00
sususweet
a680cd43b8 feat: update device mapping for T0xFA 2025-11-04 16:03:17 +08:00
sususweet
7ee22880ab feat: add support for T0xFA. 2025-10-28 22:44:58 +08:00
sususweet
187c46168c feat: add device support for T0x13. 2025-10-14 20:29:35 +08:00