diff --git a/LICENSE b/LICENSE
index 0401ec35..0387ca43 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-# MIT License
+MIT License
Copyright (c) 2021 George Zhao
diff --git a/README.md b/README.md
index 2765d454..b67caff2 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,10 @@
# Midea AC LAN
-
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/hacs/integration)
[![Donate](https://img.shields.io/badge/donate-BuyMeCoffee-yellow.svg)](https://www.buymeacoffee.com/georgezhao2010)
[![Stable](https://img.shields.io/github/v/release/wuwentao/midea_ac_lan)](https://github.com/wuwentao/midea_ac_lan/releases/latest)
-[![Super-Linter](https://github.com/wuwentao/midea_ac_lan/actions/workflows/linter.yml/badge.svg)](https://github.com/marketplace/actions/super-linter)
-> :warning: **This is a fork of midea_ac_lan done by Georgezhao**
+> :warning: **This is a fork of Midea_ac_lan done by Georgezhao **: As the project is in a vegetative state we have done a fork and merged some pending fixes.
+I'm trying to get in touch with the maintainer at the moment to find a solution, and at the same time we're looking for people available to maintain the project, which is actively used by the community. please contact me if you can help !
English | [简体中文](README_hans.md)
@@ -23,18 +22,13 @@ Thanks also to [@NeoAcheron](https://github.com/NeoAcheron/midea-ac-py).
***❗Note: Home Assistant 2023.1 or higher required for this integration***
-## Supported brands
+# Supported brands
-![ariston](brands/ariston.png) ![beverly](brands/beverly.png) ![bugu](brands/bugu.png) \
-![carrier](brands/carrier.png) ![colmo](brands/colmo.png) ![comfee](brands/comfee.png) \
-![electrolux](brands/electrolux.png) ![invertor](brands/invertor.png) ![littleswan](brands/littleswan.png) \
-![midea](brands/midea.png) ![netsu](brands/netsu.png) ![ProBreeze](brands/probreeze.png) \
-![rotenso](brands/rotenso.png) ![toshiba](brands/toshiba.png) ![vandelo](brands/vandelo.png) \
-![wahin](brands/wahin.png)
+![ariston](brands/ariston.png) ![beverly](brands/beverly.png) ![bugu](brands/bugu.png) ![carrier](brands/carrier.png) ![colmo](brands/colmo.png) ![comfee](brands/comfee.png) ![electrolux](brands/electrolux.png) ![invertor](brands/invertor.png) ![littleswan](brands/littleswan.png) ![midea](brands/midea.png) ![netsu](brands/netsu.png) ![ProBreeze](brands/probreeze.png) ![rotenso](brands/rotenso.png) ![toshiba](brands/toshiba.png) ![vandelo](brands/vandelo.png) ![wahin](brands/wahin.png)
And more.
-## Supported appliances
+# Supported appliances
| Type | Name | Documents |
|------|----------------------------|--------------------|
@@ -73,28 +67,12 @@ And more.
| FC | Air Purifier | [FC.md](doc/FC.md) |
| FD | Humidifier | [FD.md](doc/FD.md) |
-## Installation
-
-**Search `Midea AC LAN` in HACS not available now, it will be ready later**
-
-Please use manual install as below:
-
-Option 1:
-
-1. make sure you have installed HACS to Home Assistant [HACS install guide](https://hacs.xyz/docs/setup/download)
-2. open HACS, click [Custom repositories], Repository input: `https://github.com/wuwentao/midea_ac_lan`, Category select [Integration]
-3. **Restart Home Assistant**.
+# Installation
+Search 'Midea AC LAN' in HACS and install, or copy all files in `custom_components/midea_ac_lan` from [Latest Release](https://github.com/georgezhao2010/midea_ac_lan/releases/latest) to your `/custom_components/midea_ac_lan` in Home Assistant manually.
-Option 2:
-
-1. Download `midea_ac_lan.zip` from [Latest Release](https://github.com/wuwentao/midea_ac_lan/releases/latest)
-2. copy `midea_ac_lan.zip` to `/custom_components/midea_ac_lan` in Home Assistant.
-3. **Restart Home Assistant**.
-
-Once it done, open `[Settings]`, `[Device & services]`, `[Integrations]`, `[Midea AC Lan]`, do init config and add all your devices.
-
-## Add device
+Restart Home Assistant.
+# Add device
***❗Note: First, set a static IP address for your appliance in the router, in case the IP address of the appliance changes after set-up.***
After installation, search and add component Midea AC LAN in Home Assistant integrations page.
@@ -105,18 +83,15 @@ Or click [![Configuration](https://my.home-assistant.io/badges/config_flow_start
After the account is configured, Click 'ADD DEVICE' once more to add new device. You could repeat the above action to add multiple devices.
-### Discover automatically
-
+## Discover automatically
Using this option, the component could auto-discover and list Midea M-Smart appliances in network or specified IP address, select one and add it in.
You can also use an IP address to search within a specified network, such as `192.168.1.255`.
***❗Note: Discovery automatically requires your appliances and your Home Assistant must be in the same sub-network. Otherwise, devices may not be auto-discovered. Check this by yourself.***
-### Configure manually
-
+## Configure manually
If you already know following information, you could add the appliance manually.
-
- Appliance code
- Appliance type (one of [Supported appliances](README.md#supported-appliances))
- IP address
@@ -125,39 +100,30 @@ If you already know following information, you could add the appliance manually.
- Token
- Key
-### List all appliances only
-
+## List all appliances only
Using this option, you can list all discoverable Midea M-Smart devices on the network, along with their IDs, types, SNs, and other information.
***❗Note: For certain reasons, not all supported devices may be listed here.***
-## Configure
+# Configure
Configure can be found in `Settings -> Devices & Services -> Midea AC LAN -> Devices -> CONFIGURE`.
You can re-set the IP address when device IP changed.
You can also add extra sensor and switch entities or customize your own device.
-### IP address
-
+## IP address
Set the IP address of device. You can reset this when your device IP is changed.
-### Refresh interval
-
+## Refresh interval
Set the interval for actively refreshing the status of a single device (the unit is second) (30 by default and 0 means not refresh actively)
-Mostly the status update of Midea devices relies on the active information notification of the device, \
-in which condition the status update in HA still works normally even if the refresh interval is set to be "0". \
-This component will also actively query the device status at regular intervals, and the default time is 30 seconds. \
-Some devices do not have active information notifications when their status changed, so synchronization with the status in HA will be slower. \
-If you are very concerned about the synchronization speed of the status, you can try to set a shorter status refresh interval.
+Mostly the status update of Midea devices relies on the active information notification of the device, in which condition the status update in HA still works normally even if the refresh interval is set to be “0”. This component will also actively query the device status at regular intervals, and the default time is 30 seconds. Some devices do not have active information notifications when their status changed, so synchronization with the status in HA will be slower. If you are very concerned about the synchronization speed of the status, you can try to set a shorter status refresh interval.
***❗Note: shorter refresh interval may mean more power consumption***
-### Extra sensor and switch entities
-
+## Extra sensor and switch entities
After configuration, one of few main entity (e.g. climate entity) may be generated . If you want to make the attributes to extra sensor and switch entities, click CONFIGURE in Midea AC LAN integration card to choose (if your devices supported).
-### Customize
-
+## Customize
Some types of device have their own configuration items, if your device does not work properly, you may need to customize it. Refer to the device documentation for specific information.
The format of customizations must be JSON.
@@ -165,15 +131,13 @@ The format of customizations must be JSON.
If multiple customization items need to be configured, the settings must comply with the JSON format.
Example
-
```json
{"refresh_interval": 15, "fan_speed": 100}
```
-## Debug
+# Debug
Turn on the debug log out,config in configuration.yaml
-
```yaml
logger:
default: warn
@@ -181,7 +145,7 @@ logger:
custom_components.midea_ac_lan: debug
```
-## Support my works
+# Support my works
If you like this integration, why do not you support my works by buying me a coffee?
diff --git a/README_hans.md b/README_hans.md
index 3853e00e..bcf132a7 100644
--- a/README_hans.md
+++ b/README_hans.md
@@ -1,9 +1,7 @@
# Midea AC LAN
-
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/hacs/integration)
[![Donate](https://img.shields.io/badge/donate-BuyMeCoffee-yellow.svg)](https://www.buymeacoffee.com/georgezhao2010)
[![Stable](https://img.shields.io/github/v/release/wuwentao/midea_ac_lan)](https://github.com/wuwentao/midea_ac_lan/releases/latest)
-[![Super-Linter](https://github.com/wuwentao/midea_ac_lan/actions/workflows/linter.yml/badge.svg)](https://github.com/marketplace/actions/super-linter)
[English](README.md) | 简体中文
@@ -21,17 +19,13 @@
***❗注意: 本集成需要Home Assistant 2023.1或更高版本***
-## 已支持的品牌
+# 已支持的品牌
-![beverly](brands/beverly.png) ![bugu](brands/bugu.png) ![carrier](brands/carrier.png) \
-![colmo](brands/colmo.png) ![comfee](brands/comfee.png) ![electrolux](brands/electrolux.png) \
-![invertor](brands/invertor.png) ![littleswan](brands/littleswan.png) ![midea](brands/midea.png) \
-![netsu](brands/netsu.png) ![ProBreeze](brands/probreeze.png) ![rotenso](brands/rotenso.png) \
-![toshiba](brands/toshiba.png) ![vandelo](brands/vandelo.png) ![wahin](brands/wahin.png)
+![beverly](brands/beverly.png) ![bugu](brands/bugu.png) ![carrier](brands/carrier.png) ![colmo](brands/colmo.png) ![comfee](brands/comfee.png) ![electrolux](brands/electrolux.png) ![invertor](brands/invertor.png) ![littleswan](brands/littleswan.png) ![midea](brands/midea.png) ![netsu](brands/netsu.png) ![ProBreeze](brands/probreeze.png) ![rotenso](brands/rotenso.png) ![toshiba](brands/toshiba.png) ![vandelo](brands/vandelo.png) ![wahin](brands/wahin.png)
以及更多。
-## 已支持的设备
+# 已支持的设备
| 类型 | 名称 | 文档 |
|----|-------------------|------------------------------|
@@ -70,28 +64,12 @@
| FC | 空气净化器 | [FC_hans.md](doc/FC_hans.md) |
| FD | 加湿器 | [FD_hans.md](doc/FD_hans.md) |
-## 安装
-
-**在HACS中搜索`Midea AC LAN`并安装的方式当前还不可用**,请耐心等待HACS审核和处理流程。
-
-请先使用以下二种方式手工安装:
-
-方式1:
-
-1. 确保`Home Assistant`中已安装HACS [HACS install docs](https://hacs.xyz/docs/setup/download)
-2. 打开`HACS`, 点击`[Custom repositories]`, `Repository` 输入: `https://github.com/wuwentao/midea_ac_lan`, `Category` 选择 `[Integration]`
-3. **重启Home Assistant**.
+# 安装
+在HACS中搜索'Midea AC LAN'并安装, 或者从[Latest release](https://github.com/georgezhao2010/midea_ac_lan/releases/latest)下载最新的Release版本, 将其中的`custom_components/midea_ac_lan`放到你的Home Assistant的`custom_components/midea_ac_lan`中。
-方式2:
-
-1. 从[Latest Release](https://github.com/wuwentao/midea_ac_lan/releases/latest) 下载 `midea_ac_lan.zip`
-2. 复制 `midea_ac_lan.zip` 到 `/custom_components/midea_ac_lan`.
-3. **重启 Home Assistant**.
-
-重启完成后, 打开 `[Settings]`, `[Device & services]`, `[Integrations]`, `[Midea AC Lan]`, 进行初始化设置并添加所有设备.
-
-## 添加设备
+重启Home Assistant
+# 添加设备
***❗注意: 首先, 在路由器上为你的设备设置一个静态IP地址, 以防设置后设备的IP地址发生改变。***
安装之后, 在Home Assistant的集成界面搜索添加集成Midea AC LAN, 如果需要添加多台设备, 多次添加本集成并执行自动配置即可。
@@ -102,18 +80,15 @@
完成美的账户配置之后, 点击'添加设备'进行设备添加。你可以多次重复操作以添加多台设备。
-### Discover automatically / 自动搜索
-
+## Discover automatically / 自动搜索
使用此选项, 组件会列出网络上或者指定IP地址上的设备, 选择一个并进行添加。
你也可以使用IP地址在指定网络中搜索, 比如`192.168.1.255`
***❗注意: 自动配置要求设备必须与HA在同一网段, 否则可能搜索不到设备, 请自行确认这点***
-### Configure manually / 手动配置
-
+## Configure manually / 手动配置
如果之前你已经通过其它集成手工配置过设备, 并知道以下信息, 也可以进行手动配置
-
- 设备ID
- 设备类型 ([已支持的设备](README_hans.md#%E5%B7%B2%E6%94%AF%E6%8C%81%E7%9A%84%E8%AE%BE%E5%A4%87)之一)
- IP地址
@@ -122,23 +97,20 @@
- Token
- Key
-### List all appliances only / 仅列出所有设备
+## List all appliances only / 仅列出所有设备
使用此选择, 可以列出网络中所有可以被搜索到的美的M-Smart设备, 以及他们的ID, 类型, SN等信息
***❗注意: 出于某些原因, 可能不是所有受支持的设备都能于此列出***
-## 配置
-
+# 配置
集成配置位于`配置 -> 设备与服务 -> Midea AC LAN -> 设备 -> 选项`。
在配置中, 你可以在设备IP改变后重新指定IP地址, 也可以增加扩展的传感器或开关等实体或者自定义你的设备
-### IP地址
-
+## IP地址
指定设备的IP地址。当你的设备IP地址变动后, 可以重新设定它
-### 刷新间隔
-
+## 刷新间隔
指定单台设备的主动状态刷新间隔 (单位为秒) (默认值为30, 设0代表不进行主动刷新)
大部分的美的设备在自身状态改变时会主动发送通知, 在这种情况下, 即使将改值设为0, 也不会影响HA中的设备状态更新。组件默认每间隔30秒会进行主动刷新。部分设备没有状态改变时主动通知的机制, 状态同步就会表现得很慢, 这种情况下可以尝试更短的主动状态更新间隔。
@@ -146,11 +118,9 @@
***❗注意: 更小的更新间隔意味着更多的能源消耗***
## 额外的传感器及开关实体
-
配置完成后, 可能会默认生成一个或几个主要实体(比如climate实体)。如果需要其它属性生成为扩展的传感器及开关实体, 在Midea AC LAN集成卡片上点击'选项', 并选择要生成的传感器及开关(如果你的设备支持该属性)。
-### 自定义
-
+## 自定义
某些类型的设备有它们自己的自定义项, 可以通过自定义项定制设备的特点。如果你的设备无法正常工作, 也许你需要自定义它。请参阅设备文档以获取具体信息。
自定义的格式必须是JSON。
@@ -158,15 +128,12 @@
如果要设置多个自定义项, 请注意遵循JSON的格式要求
示例
-
```json
{"refresh_interval": 15, "fan_speed": 100}
```
-## 调试
-
+# 调试
要打开调试日志输出, 在configuration.yaml中做如下配置
-
```yaml
logger:
default: warn
@@ -174,8 +141,7 @@ logger:
custom_components.midea_ac_lan: debug
```
-## 支持我的工作
-
+# 支持我的工作
如果喜欢这个集成, 可以使用支付宝或者微信支付赞助我来支持我的工作。
-![alipay](doc/images/alipay.png) ![wechatpay](doc/images/wechatpay.png)
+![alipay](doc/images/alipay.png) ![wechatpay](doc/images/wechatpay.png)
\ No newline at end of file
diff --git a/doc/AC.md b/doc/AC.md
index 972231a4..6a058270 100644
--- a/doc/AC.md
+++ b/doc/AC.md
@@ -1,7 +1,5 @@
# Air Conditioner
-
## Features
-
- Supports target temperature
- Supports run mode
- Supports fan mode
@@ -10,7 +8,6 @@
- Supports build-in fresh air system
### Supported Run-Modes
-
- Comfort Mode
- ECO Mode
- Boost Mode
@@ -34,9 +31,7 @@
```
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|----------------------------|---------|----------------|
| climate.{DEVICEID}_climate | climate | Climate entity |
@@ -94,7 +89,6 @@ Set the attribute of appliance. Service data:
| value | Range 1 to 100 or "auto" |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -109,4 +103,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: fan_speed
value: auto
-```
+```
\ No newline at end of file
diff --git a/doc/C3.md b/doc/C3.md
index f7438269..7fb75463 100644
--- a/doc/C3.md
+++ b/doc/C3.md
@@ -1,14 +1,10 @@
# Heat Pump Wi-Fi Controller
-
## Features
-
- Supports target temperature
- Supports run mode
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|--------------------------------------|--------------|----------------------|
| climate.{DEVICEID}_climate_zone1 | climate | Zone1 climate entity |
@@ -24,7 +20,7 @@
| binary_sensor.{DEVICEID}_zone1_room_temp_mode | binary_sensor | Zone1 Room Temperature Mode |
| binary_sensor.{DEVICEID}_zone2_room_temp_mode | binary_sensor | Zone2 Room Temperature Mode |
| binary_sensor.{DEVICEID}_status_dhw | binary_sensor | DHW Status |
-| binary_sensor.{DEVICEID}_status_tbh | binary_sensor | TBH Status |
+| binary_sensor.{DEVICEID}_status_tbh | binary_sensor | TBH Status |****
| binary_sensor.{DEVICEID}_status_ibh | binary_sensor | IBH Status |
| binary_sensor.{DEVICEID}_status_heating | binary_sensor | Heating Status |
| sensor.{DEVICEID}_error_code | sensor | Error Code |
@@ -58,11 +54,10 @@ Set the attribute of appliance. Service data:
| value | true or false |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: zone1_curve
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/C3_hans.md b/doc/C3_hans.md
index 2feed9d2..1974af15 100644
--- a/doc/C3_hans.md
+++ b/doc/C3_hans.md
@@ -1,14 +1,10 @@
# 热泵空调Wi-Fi线控器
-
## 特性
-
- 支持目标温度设定
- 支持运行模式设定
## 生成实体
-
### 默认生成实体
-
| 实体ID | 类型 | 描述 |
|--------------------------------------|--------------|----------|
| climate.{DEVICEID}_climate_zone1 | climate | 区域1恒温器实体 |
@@ -58,11 +54,10 @@
| value | true 或 false |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: zone1_curve
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E2.md b/doc/E2.md
index efb72367..2ed23381 100644
--- a/doc/E2.md
+++ b/doc/E2.md
@@ -1,11 +1,9 @@
# Electric Water Heater
-
## Features
-
- Supports target temperature
-## Customize
+## Customize
- Set the protocol of device ("auto" by default).
There are 2 different protocol version to control Electric Water Heater, "old protocol" or "new protocol".
If you can't control your device, try change this item and see if it works.
@@ -16,9 +14,7 @@ The options include true, false, and "auto".
```
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|--------------------------------------|--------------|---------------------|
| water_heater.{DEVICEID}_water_heater | water_heater | Water heater entity |
@@ -39,6 +35,7 @@ The options include true, false, and "auto".
## Services
+
### midea_ac_lan.set_attribute
[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_ac_lan.set_attribute)
@@ -52,11 +49,10 @@ Set the attribute of appliance. Service data:
| value | true or false |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: variable_heating
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E3.md b/doc/E3.md
index 420f740b..e9afee87 100644
--- a/doc/E3.md
+++ b/doc/E3.md
@@ -1,9 +1,8 @@
# Gas Water Heater
-
## Features
-
- Supports target temperature
+
## Customize
- Set the temperature precision for whole or halves (false for whole and true for halves, default by false)
@@ -15,9 +14,7 @@
```
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|--------------------------------------|--------------|---------------------|
| water_heater.{DEVICEID}_water_heater | water_heater | Water heater entity |
@@ -36,6 +33,7 @@
## Services
+
### midea_ac_lan.set_attribute
[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_ac_lan.set_attribute)
@@ -49,11 +47,10 @@ Set the attribute of appliance. Service data:
| value | true or false |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: smart_volume
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E3_hans.md b/doc/E3_hans.md
index 35eeb79f..53864e2a 100644
--- a/doc/E3_hans.md
+++ b/doc/E3_hans.md
@@ -1,7 +1,5 @@
# 燃气热水器
-
## 特性
-
- 支持温度设定
## 自定义
@@ -15,9 +13,7 @@
```
## 生成实体
-
### 默认生成实体
-
| 实体ID | 类型 | 描述 |
|--------------------------------------|--------------|-------|
| water_heater.{DEVICEID}_water_heater | water_heater | 热水器实体 |
@@ -49,11 +45,10 @@
| value | true or false |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: smart_volume
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E6.md b/doc/E6.md
index f54964e9..677f32f0 100644
--- a/doc/E6.md
+++ b/doc/E6.md
@@ -1,9 +1,7 @@
# Gas Boilers
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|----------------------------------------------|--------------|-----------------------------|
| water_heater.{DEVICEID}_water_heater_heating | water_heater | Heating water heater entity |
@@ -22,6 +20,7 @@
## Service
+
### midea_ac_lan.set_attribute
[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_ac_lan.set_attribute)
@@ -35,11 +34,10 @@ Set the attribute of appliance. Service data:
| value | true or false |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: main_power
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E6_hans.md b/doc/E6_hans.md
index 6d481ab8..1f3ca6a8 100644
--- a/doc/E6_hans.md
+++ b/doc/E6_hans.md
@@ -1,9 +1,7 @@
# 壁挂炉
## 生成实体
-
### 默认实体
-
| 实体ID | 类型 | 描述 |
|----------------------------------------------|--------------|---------|
| water_heater.{DEVICEID}_water_heater_heating | water_heater | 取暖热水器实体 |
@@ -35,11 +33,10 @@
| value | true or false |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: main_power
value: true
-```
+```
\ No newline at end of file
diff --git a/doc/E8.md b/doc/E8.md
index e2c75c6b..0af848e3 100644
--- a/doc/E8.md
+++ b/doc/E8.md
@@ -1,9 +1,7 @@
# Electric Slow Cooker
## Entities
-
### Default entity
-
No default entity.
### Extra entities
@@ -19,6 +17,6 @@ No default entity.
| sensor.{DEVICEID}_target_temperature | sensor | Target Temperature |
| sensor.{DEVICEID}_current_temperature | sensor | Current Temperature |
-## Service
-No services.
+## Service
+No services.
\ No newline at end of file
diff --git a/doc/E8_hans.md b/doc/E8_hans.md
index 605603c3..05755269 100644
--- a/doc/E8_hans.md
+++ b/doc/E8_hans.md
@@ -1,9 +1,7 @@
# 慢炖锅
## 实体
-
### 默认实体
-
无默认实体
### 扩展实体
@@ -19,6 +17,6 @@
| sensor.{DEVICEID}_target_temperature | sensor | Target Temperature | 设定温度 |
| sensor.{DEVICEID}_current_temperature | sensor | Current Temperature | 当前温度 |
-## 服务
-无服务
+## 服务
+无服务
\ No newline at end of file
diff --git a/doc/EA.md b/doc/EA.md
index 1e51d4d9..b07c5e6d 100644
--- a/doc/EA.md
+++ b/doc/EA.md
@@ -1,9 +1,7 @@
# Electric Rice Cooker
## Entities
-
### Default entity
-
No default entity.
### Extra entities
@@ -20,5 +18,4 @@ No default entity.
| sensor.{DEVICEID}_top_temperature | sensor | Top Temperature |
## Service
-
-No services.
+No services.
\ No newline at end of file
diff --git a/doc/EA_hans.md b/doc/EA_hans.md
index 8fb91828..5e79971b 100644
--- a/doc/EA_hans.md
+++ b/doc/EA_hans.md
@@ -1,9 +1,7 @@
# 电饭煲
## 生成实体
-
### 默认实体
-
无默认实体
### 额外生成实体
@@ -20,5 +18,4 @@
| sensor.{DEVICEID}_top_temperature | sensor | Top Temperature | 顶部温度 |
## 服务
-
-无服务
+无服务
\ No newline at end of file
diff --git a/doc/EC.md b/doc/EC.md
index ed9d7bec..f4907aae 100644
--- a/doc/EC.md
+++ b/doc/EC.md
@@ -1,9 +1,7 @@
# Electric Pressure Cooker
## Entities
-
### Default entity
-
No default entity.
### Extra entities
@@ -20,5 +18,4 @@ No default entity.
| sensor.{DEVICEID}_top_temperature | sensor | Top Temperature |
## Service
-
-No services.
+No services.
\ No newline at end of file
diff --git a/doc/EC_hans.md b/doc/EC_hans.md
index 5dcf98f6..d65529b7 100644
--- a/doc/EC_hans.md
+++ b/doc/EC_hans.md
@@ -1,9 +1,7 @@
# 电压力锅
## 生成实体
-
### 默认实体
-
无默认实体
### 额外生成实体
@@ -20,5 +18,4 @@
| sensor.{DEVICEID}_top_temperature | sensor | Top Temperature | 顶部温度 |
## 服务
-
-无服务
+无服务
\ No newline at end of file
diff --git a/doc/ED.md b/doc/ED.md
index fffd2401..cfce3672 100644
--- a/doc/ED.md
+++ b/doc/ED.md
@@ -1,9 +1,7 @@
# Water Drinking Appliance
## Entities
-
### Default entity
-
No default entity.
### Extra entities
@@ -23,5 +21,4 @@ No default entity.
| switch.{DEVICEID}_power | switch | Power |
## Service
-
-No services.
+No services.
\ No newline at end of file
diff --git a/doc/ED_hans.md b/doc/ED_hans.md
index 711d9e9e..4bfd17c4 100644
--- a/doc/ED_hans.md
+++ b/doc/ED_hans.md
@@ -1,9 +1,7 @@
# 饮用水设备
## 生成实体
-
### 默认实体
-
无默认实体
### 额外生成实体
@@ -23,5 +21,4 @@
| switch.{DEVICEID}_power | switch | Power | 电源开关 |
## 服务
-
-无服务
+无服务
\ No newline at end of file
diff --git a/doc/FA.md b/doc/FA.md
index cfc8d86b..e8f7323d 100644
--- a/doc/FA.md
+++ b/doc/FA.md
@@ -1,7 +1,5 @@
# Fan
-
## Features
-
- Supports fan speed
- Supports preset mode
- Supports oscillation
@@ -16,9 +14,7 @@ Set the levels of the fan device except "Off" (3 by default).
```
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|--------------------|-------|-------------|
| fan.{DEVICEID}_fan | fan | Fan entity |
@@ -67,8 +63,7 @@ Set the attribute of appliance. Service data:
| value | "Off"
"30"
"60"
"90"
"120"
"180"
"360"
"+60"
"-60"
"40" |
Example
-
-```yaml
+```
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
@@ -76,10 +71,10 @@ data:
value: true
```
-```yaml
+```
service: midea_ac_lan.set_attribute
data:
device_id: XXXXXXXXXXXX
attribute: oscillation_angle
value: "90"
-```
+```
\ No newline at end of file
diff --git a/doc/FA_hans.md b/doc/FA_hans.md
index 33426dd0..962f14b2 100644
--- a/doc/FA_hans.md
+++ b/doc/FA_hans.md
@@ -1,7 +1,5 @@
# 电风扇
-
## 特性
-
- 支持风速调节
- 支持预设模式
- 支持水平摆头
@@ -16,9 +14,7 @@
```
## 生成实体
-
### 默认生成实体
-
| 实体ID | 类型 | 描述 |
|--------------------|-----|------|
| fan.{DEVICEID}_fan | fan | 风扇实体 |
@@ -67,7 +63,6 @@
| value | "Off"
"30"
"60"
"90"
"120"
"180"
"360"
"+60"
"-60"
"40" |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -82,4 +77,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: oscillation_angle
value: "90"
-```
+```
\ No newline at end of file
diff --git a/doc/FB.md b/doc/FB.md
index a09062fc..222b6d9c 100644
--- a/doc/FB.md
+++ b/doc/FB.md
@@ -1,14 +1,11 @@
# Electric Heater
## Features
-
- Supports target temperature
- Supports preset mode
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|----------------------------|---------|----------------|
| climate.{DEVICEID}_climate | climate | Climate entity |
@@ -43,7 +40,6 @@ Set the attribute of appliance. Service data:
| value | 1 - 10 |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -58,4 +54,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: heating_level
value: 9
-```
+```
\ No newline at end of file
diff --git a/doc/FB_hans.md b/doc/FB_hans.md
index a5a84463..217dd5eb 100644
--- a/doc/FB_hans.md
+++ b/doc/FB_hans.md
@@ -1,14 +1,11 @@
# 电取暖器
## Features
-
- 支持目标温度设定
- 支持预设模式设定
## 生成实体
-
### 默认生成实体
-
| 实体ID | 类型 | 描述 |
|----------------------------|---------|-------|
| climate.{DEVICEID}_climate | climate | 恒温器实体 |
@@ -43,7 +40,6 @@
| value | 1 - 10 |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -58,4 +54,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: heating_level
value: 9
-```
+```
\ No newline at end of file
diff --git a/doc/FC.md b/doc/FC.md
index e71b41bd..d02e20c6 100644
--- a/doc/FC.md
+++ b/doc/FC.md
@@ -9,9 +9,7 @@ Set the high/low value of PM2.5 to automatically turn standby mode on or off.
```
## Entities
-
### Default entity
-
No default entity.
### Extra entities
@@ -35,6 +33,7 @@ No default entity.
## Service
+
### midea_ac_lan.set_attribute
[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_ac_lan.set_attribute)
@@ -72,7 +71,6 @@ Set the attribute of appliance. Service data:
| value | "Bright"
"Dim"
"Off" |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -87,4 +85,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: fan_speed
value: Auto
-```
+```
\ No newline at end of file
diff --git a/doc/FC_hans.md b/doc/FC_hans.md
index f6dc04ae..e1cdfc13 100644
--- a/doc/FC_hans.md
+++ b/doc/FC_hans.md
@@ -9,9 +9,7 @@
```
## 生成实体
-
### 默认生成实体
-
无默认实体
### 额外生成实体
@@ -86,4 +84,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: fan_speed
value: Auto
-```
+```
\ No newline at end of file
diff --git a/doc/FD.md b/doc/FD.md
index 325d4728..c71371be 100644
--- a/doc/FD.md
+++ b/doc/FD.md
@@ -1,15 +1,11 @@
# Humidifier
-
## Features
-
- Supports preset mode
- Supports fan mode
- Supports humidity setting
## Entities
-
### Default entity
-
| EntityID | Class | Description |
|----------------------------------|------------|-------------------|
| humidifier.{DEVICEID}_humidifier | humidifier | Humidifier entity |
@@ -28,6 +24,7 @@
## Service
+
### midea_ac_lan.set_attribute
[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_ac_lan.set_attribute)
@@ -53,7 +50,6 @@ Set the attribute of appliance. Service data:
| value | "Bright"
"Dim"
"Off" |
Example
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -68,4 +64,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: fan_speed
value: Medium
-```
+```
\ No newline at end of file
diff --git a/doc/FD_hans.md b/doc/FD_hans.md
index 3cd9f5fe..ba6be127 100644
--- a/doc/FD_hans.md
+++ b/doc/FD_hans.md
@@ -1,15 +1,11 @@
# 加湿器
-
## 特性
-
- 支持运行模式
- 支持风扇模式设定
- 支持湿度设定
## 生成实体
-
### 默认生成实体
-
| 实体ID | 类型 | 描述 |
|----------------------------------|------------|-------|
| humidifier.{DEVICEID}_humidifier | humidifier | 加湿器实体 |
@@ -53,7 +49,6 @@
| value | "Bright"
"Dim"
"Off" |
示例
-
```yaml
service: midea_ac_lan.set_attribute
data:
@@ -68,4 +63,4 @@ data:
device_id: XXXXXXXXXXXX
attribute: fan_speed
value: Medium
-```
+```
\ No newline at end of file
diff --git a/scripts/run.sh b/scripts/run.sh
index 035649a3..1c529a66 100755
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -6,8 +6,8 @@ cd "$(dirname "$0")/.."
# Create config dir if not present
if [[ ! -d "${PWD}/config" ]]; then
- mkdir -p "${PWD}/config"
- hass --config "${PWD}/config" --script ensure_config
+ mkdir -p "${PWD}/config"
+ hass --config "${PWD}/config" --script ensure_config
fi
# Set the path to custom_components
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 43421316..692cc8b7 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -8,6 +8,6 @@ python3 -m pip install --requirement requirements.txt
# Create config dir if not present
if [[ ! -d "${PWD}/config" ]]; then
- mkdir -p "${PWD}/config"
- hass --config "${PWD}/config" --script ensure_config
-fi
+ mkdir -p "${PWD}/config"
+ hass --config "${PWD}/config" --script ensure_config
+fi
\ No newline at end of file