Commit Graph

274 Commits

Author SHA1 Message Date
Cyborg2017
77f8e59358 feat: update device mapping for T0xFD(202Z219V) 2026-02-02 13:43:04 +08:00
Cyborg2017
234b4d6e4b feat: update device mapping for T0xFC(571Z307F) 2026-01-31 13:59:09 +08:00
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
Cyborg2017
81b8a509bc fix: correct brightness mapping for 0-255 configured light devices
Removed the erroneous brightness value mapping (1-100 ↔ 0-255) for devices
configured with brightness range [0, 255]. The previous logic incorrectly
assumed these devices actually operated in a 1-100 range, causing inaccurate
brightness values.
2026-01-30 13:58:05 +08:00
Cyborg2017
3cc231d65f feat: update device mapping for T0xB6(7300073N) 2026-01-30 13:14:58 +08:00
Cyborg2017
8e21f39b30 feat: update device mapping for T0xAC(22040023/22270043) 2026-01-30 13:13:02 +08:00
Yingqi Tang
b25f19bb96 Merge pull request #99 from Cyborg2017/staging
feat: add device mapping for T0xED(63000629)
v0.2.4
2026-01-21 09:21:51 +08:00
Cyborg2017
e67be126e7 feat: add device mapping for T0xED(63000629)
* Device type: T0xED, Sn8: 63000629, model: YD1906S-X.
2026-01-20 23:36:12 +08:00
Yingqi Tang
dff1d91975 Merge pull request #98 from Cyborg2017/staging
feat: Update device mapping for T0xB6
2026-01-20 14:19:49 +08:00
Cyborg2017
24bc3172c7 feat: Update device mapping for T0xB6
- Add device support for CXW-140-AK5 MAX (sn8: 730007GC)
- Create status translation files for "b7_left_status" and "b7_right_status"
2026-01-19 19:21:25 +08:00
Yingqi Tang
1b5283fa4e Minor fixes and improvements (#97)
* fix: correct voltage device class to battery for T0xBC

* fix: support of wind_pressure sensor for T0xB6(730007H8)

* also update translation_key

* fix: add PM2.5 threshold settings support for T0xFC(571Z3081)

* fix: Use correct rationale values for T0xD9 child_lock switch

* fix: Correct return type from string to number for T0xD9

---------

Co-authored-by: Yingqi Tang <tyq9702@sina.com>
2026-01-19 11:45:48 +08:00
Yingqi Tang
bf34991169 Merge branch 'master' into staging 2026-01-19 11:41:25 +08:00
zy900906
c92467f7d9 feat: add device mapping for CAX350GC1Ⅱ(T0xAC) (#93)
* Add files via upload

适配CAX350GC1Ⅱ

* Add files via upload

适配CAX350GC1Ⅱ

* Update T0xAC.py

* Update T0xAC.py

* Update en.json

* Update zh-Hans.json
2026-01-19 11:38:42 +08:00
Cyborg2017
023243297b fix: Correct return type from string to number for T0xD9 2026-01-19 10:45:04 +08:00
Cyborg2017
07c8fd32f0 fix: Use correct rationale values for T0xD9 child_lock switch 2026-01-19 10:44:52 +08:00
Cyborg2017
1f0b914d4d fix: add PM2.5 threshold settings support for T0xFC(571Z3081) 2026-01-18 20:07:17 +08:00
Cyborg2017
9f6cf15763 fix: support of wind_pressure sensor for T0xB6(730007H8)
* also update translation_key
2026-01-18 20:07:17 +08:00
Yang Cyborg
d19036f0db fix: correct voltage device class to battery for T0xBC 2026-01-18 20:07:05 +08:00
K
d9c36920e9 Add Water Model Support for T0xED (#94)
添加COLMO A36S 前置过滤器和美的 MRO1012-R 净热一体机及对应实体翻译
2026-01-17 23:02:15 +08:00
Yingqi Tang
6e85665bfb Merge pull request #92 from Cyborg2017/staging
update translations and device mapping for T0xDB
2026-01-13 22:43:20 +08:00
Cyborg2017
df70a7caf7 fix: update device mapping for T0xD9 2026-01-10 13:11:48 +08:00
Cyborg2017
1c67f8e780 feat: add device mapping for T0xDB(38133671)
* Device type: T0xDB, Sn8: 38133671T, model: TG10VE40/TG10VE40W.
2026-01-10 13:09:24 +08:00
Cyborg2017
be8148f337 feat: update translations for T0xDB 2026-01-10 13:09:06 +08:00
sususweet
2c4b35a4f1 feat: add support to Water Model SFEN-180/N1X-A(T0xAC). 2026-01-09 20:58:22 +08:00
sususweet
522198ba18 feat: fix translations missing. 2026-01-09 20:49:29 +08:00
Yingqi Tang
f8e8cccd31 Update manifest.json v0.2.3 2026-01-08 22:19:06 +08:00
sususweet
d4e7acae31 feat: update translation. 2026-01-08 22:15:12 +08:00
sususweet
bdfc65d922 feat: update device mapping for T0xB2. 2026-01-08 22:12:10 +08:00
sususweet
e85e83a681 feat: update device mapping for T0xE7. Fix #89 2026-01-08 16:46:47 +08:00
sususweet
39932a2d2d feat: update device mapping for T0xE7. Fix #89 2026-01-07 21:04:24 +08:00
sususweet
77b3af3168 feat: update device mapping for T0x24. Fix #82 2026-01-07 20:53:05 +08:00
Yingqi Tang
06ee534873 Merge pull request #88 from Cyborg2017/master
Fix functionality gaps for several specific devices; add support for two new device models T0xB6 and T0xB8Master
2026-01-07 11:52:50 +08:00
Cyborg2017
38c42318cc feat: add device mapping for T0xB8(750004AT)
* Device type: T0xB8, Sn8: 750004AT, model: V12.
2026-01-07 11:23:58 +08:00
Cyborg2017
27b9522851 feat: add device mapping for T0xB6(730007H8)
* Device type: T0xB6, Sn8: 730007H8, model: CXW-140-AK7 PRO.
2026-01-07 11:23:51 +08:00
Cyborg2017
2ac5880eb6 feat: add command template support for device control
- Add command field support to MideaNumberEntity and MideaSelectEntity
- Command templates allow defining fixed parameters in configuration
- Options/values are merged with command template before sending to device
- Backward compatible - existing configurations continue to work

Examples in device_mapping:

1. For NUMBER platform - brightness control with protocol template:
```yaml
Platform.NUMBER: {
    "lightness": {
        "min": 10,
        "max": 100,
        "step": 5,
        "command": {
            "electronic_control_version": 2,
            "type": "b6",
            "b6_action": "setting",
            "setting": "light",
            "lightness": "{value}"  # {value} placeholder for actual number value
        }
    }
}

2.For SELECT platform - gesture selection with protocol template:
```yaml
Platform.SELECT: {
    "gesture": {
        "options": {
            "off": {"gesture": "off"},
            "on": {"gesture": "on"}
        },
        "command": {  # Protocol template for gesture control
            "electronic_control_version": 2,
            "type": "b6",
            "b6_action": "setting",
            "setting": "gesture"
            # {gesture} value from options will be merged automatically
        }
    }
}
2026-01-07 11:22:04 +08:00
Cyborg2017
dded4485d6 fix: support of cur_humidity for T0xFD(202Z310H) 2026-01-07 00:19:34 +08:00
Cyborg2017
696b2b17e7 fix: support of deep_filter_percent for T0xFC(571Z3081) 2026-01-07 00:19:34 +08:00
Cyborg2017
8820dbe8b1 fix: move gear setting to preset_mode for T0xFB(570667EC)
* also add support for cur_temperature sensor
2026-01-07 00:19:33 +08:00
Cyborg2017
a68ceb3104 fix: support of radar_induction_closing_time for T0x26(M0100040) 2026-01-07 00:19:30 +08:00
Cyborg2017
c91898621f fix: support of custom_timing for T0x17 2026-01-07 00:18:06 +08:00
sususweet
c55fc36119 feat: update device mapping for T0xED. Fix #85 2026-01-07 00:04:30 +08:00
Yingqi Tang
4a9183f486 Update FUNDING.yml 2026-01-06 15:29:10 +08:00
Yingqi Tang
f83056fd82 Create FUNDING.yml 2026-01-06 15:28:02 +08:00
sususweet
d94bbc06ac Merge remote-tracking branch 'origin/master' 2026-01-06 12:04:22 +08:00
sususweet
0a5dd1afde feat: update device mapping for T0xC2. Fix #80 2026-01-06 12:04:06 +08:00
sususweet
0341b9d105 feat: update device mapping for T0xC2. Fix
#80
2026-01-06 12:01:40 +08:00
sususweet
9a594777a6 feat: update device mapping for MHSR180N8-Z1 真暖热泵主机. v0.2.2 2026-01-05 21:13:43 +08:00
sususweet
2c0322d2a9 feat: version 0.2.2 2026-01-05 20:27:12 +08:00
sususweet
008d6a69bb feat: update device mapping for T0xBC. 2026-01-05 20:25:31 +08:00