Commit Graph

238 Commits

Author SHA1 Message Date
sususweet
2ff714d0d5 Merge branch 'master' of github.com:sususweet/midea-meiju-codec 2026-02-07 14:49:03 +08:00
sususweet
8e160c53f7 chore: download_plugin issue in msmartapp. 2026-02-07 14:46:39 +08:00
Yingqi Tang
c77dd6939e Merge pull request #108 from Cyborg2017/staging
feat: Add wind swing angle controls and prevent super cool switch for…
2026-02-07 12:11:00 +08:00
yangsiyuan.rengar
cfabc390f3 fix: write lua files with utf-8 encoding,the env as below:haos 17.0,core 2026.1.3 2026-02-06 14:51:49 +08:00
Cyborg2017
21b29f1a51 feat: Add wind swing angle controls and prevent super cool switch for AC devices 2026-02-05 11:11:19 +08:00
sususweet
0fedc10342 fix: file encoding misread. Fix #103. 2026-02-04 23:42:16 +08:00
sususweet
d5c1f3dce9 fix: prevent straight wind feature for T0xAC (22040023). Fix #75. 2026-02-04 23:34:11 +08:00
sususweet
e3f0bf9dfc fix: local buzzer control for T0xAC. Fix #102. 2026-02-04 23:33:42 +08:00
sususweet
d3cfb57dc2 feat: dump version to v0.2.5 2026-02-04 16:08:42 +08:00
sususweet
8eb2a71c3b fix: use lower case unique id for entity. 2026-02-04 16:05:27 +08:00
Cyborg2017
5082c3c202 feat: add support for new T0xDB device(38124914) 2026-02-02 23:41:24 +08:00
Cyborg2017
20d34729f1 fix: Correct return type from string to number for T0xDB 2026-02-02 23:00:25 +08:00
Cyborg2017
80fc4f7ce7 feat: add support for new T0xE1 device(7600V1E7) 2026-02-02 22:40:20 +08:00
Cyborg2017
5212eb7002 feat: add support for new T0xAC devices(22012369/22251077) 2026-02-02 21:37:42 +08:00
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
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
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
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
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 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
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