From ee47d9de5af1810733fd984def88ef06dcf71e2b Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 11:49:41 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=AA=AD=20improve=20for=20zhimi.fan.fb?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 30 +------------------ .../xiaomi_miot/core/miot_specs_extend.json | 30 ++++++++++++++++++- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index bf7390ca6..0e9d99fda 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1793,35 +1793,7 @@ 'brightness_for_off': 2, }, 'zhimi.fan.fb1': { - 'extend_miot_specs': [ - { - 'iid': 2, - 'properties': [ - {'iid': 5, 'value-range': [30, 120, 30]}, - {'iid': 6, 'value-range': [30, 90, 30]}, - ], - }, - { - 'iid': 5, - 'properties': [ - { - 'iid': 6, - 'value-list': [ - {'value': 'left', 'description': 'Turn Left'}, - {'value': 'right', 'description': 'Turn Right'}, - ], - }, - { - 'iid': 7, - 'value-list': [ - {'value': 'up', 'description': 'Turn Up'}, - {'value': 'down', 'description': 'Turn Down'}, - ], - }, - ], - }, - ], - 'switch_properties': 'alarm,horizontal_swing,vertical_swing,oscillating,h_swing_back,v_swing_back', + 'switch_properties': 'alarm,horizontal_swing,vertical_swing,oscillating,h_swing_back,v_swing_back,brightness', 'number_properties': 'timing', 'percentage_property': 'stepless_fan_level', 'select_properties': 'mode,horizontal_angle,vertical_angle', diff --git a/custom_components/xiaomi_miot/core/miot_specs_extend.json b/custom_components/xiaomi_miot/core/miot_specs_extend.json index b16e46ad0..4d4d20ab2 100644 --- a/custom_components/xiaomi_miot/core/miot_specs_extend.json +++ b/custom_components/xiaomi_miot/core/miot_specs_extend.json @@ -1681,6 +1681,34 @@ } ], + "zhimi.fan.fb1": [ + { + "iid": 2, + "properties": [ + {"iid": 5, "value-range": [30, 120, 30]}, + {"iid": 6, "value-range": [30, 90, 30]} + ] + }, + { + "iid": 5, + "properties": [ + { + "iid": 6, + "value-list": [ + {"value": "left", "description": "Turn Left"}, + {"value": "right", "description": "Turn Right"} + ] + }, + { + "iid": 7, + "value-list": [ + {"value": "up", "description": "Turn Up"}, + {"value": "down", "description": "Turn Down"} + ] + } + ] + } + ], "zhimi.fan.za4": [ { "iid": 2, @@ -1692,7 +1720,7 @@ ] } ], - + "zhimi.humidifier.ca4": [ { "iid": 2, From 5aaa1ddeeea4ac5f800cd74ab8a291f26ad516d9 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 13:57:05 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E2=9C=8D=EF=B8=8F=20update=20issue=20templ?= =?UTF-8?q?ate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/device-issue.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/device-issue.yml b/.github/ISSUE_TEMPLATE/device-issue.yml index 80420c598..a5f54ecbb 100644 --- a/.github/ISSUE_TEMPLATE/device-issue.yml +++ b/.github/ISSUE_TEMPLATE/device-issue.yml @@ -59,3 +59,4 @@ body: description: | > [⚙️ Settings > System > ✍️ Logs](https://my.home-assistant.io/redirect/logs) > 🔍 Filter `miot` > [⚙️ 配置 > 系统 > ✍️ 日志](https://my.home-assistant.io/redirect/logs) > 🔍 筛选 `miot` + > [🐞 获取调试日志](https://github.com/al-one/hass-xiaomi-miot/issues/500#debug) From 775c6fb7c3a45c4f478d990733c4df714623b223 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 17:47:11 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=AA=AD=20improve=20for=20leishi.light?= =?UTF-8?q?.eps125?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 2 +- custom_components/xiaomi_miot/core/miot_local_devices.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 0e9d99fda..2d3eab964 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -823,7 +823,7 @@ 'leishi.light.*': { 'exclude_miot_services': 'scenes,scene,scens,remote', 'exclude_miot_properties': 'default.user_save,professional_setting.delay', - 'switch_properties': 'flex_switch', + 'switch_properties': 'flex_switch,wind_reverse', 'select_properties': 'default.default', }, 'leshi.light.wy0b01': { diff --git a/custom_components/xiaomi_miot/core/miot_local_devices.py b/custom_components/xiaomi_miot/core/miot_local_devices.py index 217226aa0..a8b27368b 100644 --- a/custom_components/xiaomi_miot/core/miot_local_devices.py +++ b/custom_components/xiaomi_miot/core/miot_local_devices.py @@ -373,6 +373,7 @@ 'leishi.light.eps112', 'leishi.light.eps118', 'leishi.light.eps121', + 'leishi.light.eps125', 'leishi.light.eps126', 'leishi.light.eps127', 'leishi.light.nvc001', From bd52d3199ed9e6ae5224f1add2efe907ff25e3ce Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 21:59:03 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=92=A1=20improve=20for=20devcea.light?= =?UTF-8?q?.ls2307=20(#1933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 2d3eab964..43399b1ff 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -520,6 +520,14 @@ 'sensor_properties': 'realtime_heart_rate,realtime_breath_rate,realtime_sleepstage', 'switch_properties': 'fast_update_switch', }, + 'devcea.light.ls2307': { + 'interval_seconds': 60, + 'exclude_miot_properties': 'update,colorful_set', + 'switch_properties': 'flex_switch,ac_status,power_on_state,custom_sleep_aid,custom_weak_up', + 'select_properties': 'ambient_light.mode', + 'number_properties': 'default_brightness,default_temperature,sleep_aid_time,wake_up_time,' + 'gradient_duration_on,gradient_duration_of,gradient_duration_aj,ambient_light.color', + }, 'deye.derh.u20a3': { 'target_humidity_ratio': 9.0909, }, From c23fcd8e9b22ebcf8f7ae41b7f6afc5a5c174257 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 22:14:38 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E2=AC=86=20new=20version=20v0.7.23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/manifest.json b/custom_components/xiaomi_miot/manifest.json index 66aa3111f..62367fe36 100644 --- a/custom_components/xiaomi_miot/manifest.json +++ b/custom_components/xiaomi_miot/manifest.json @@ -17,5 +17,5 @@ "python-miio>=0.5.12", "micloud>=0.5" ], - "version": "0.7.22" + "version": "0.7.23" }