diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c04204bc..41564ac8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "name": "midea_ac_lan", + "name": "midea_lan", "build": { "dockerfile": "Dockerfile", "context": ".." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1693979..e88939c2 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: id: check_version run: | # Extract the version from manifest.json - manifest_version=$(grep -oP '(?<="version": ")[^"]*' custom_components/midea_ac_lan/manifest.json) + manifest_version=$(grep -oP '(?<="version": ")[^"]*' custom_components/midea_lan/manifest.json) echo "Manifest.json version: $manifest_version" # Extract the release tag release_tag="${GITHUB_REF#refs/tags/}" @@ -50,21 +50,21 @@ jobs: uname -a echo "show runner pwd file list" ls - ls -alht "custom_components/midea_ac_lan/" || exit 1 + ls -alht "custom_components/midea_lan/" || exit 1 echo "show manifest.json for debug" - cat "custom_components/midea_ac_lan/manifest.json" || exit 1 + cat "custom_components/midea_lan/manifest.json" || exit 1 dst_dir="/github/workspace/artifacts" sudo mkdir -p "$dst_dir" || exit 1 sudo chown -R "$(id -u):$(id -g)" "$dst_dir" || exit 1 sudo chmod -R 755 "$dst_dir" || exit 1 - cd "custom_components/midea_ac_lan/" || exit 1 - zip -r ../midea_ac_lan.zip ./* || exit 1 - cp ../midea_ac_lan.zip "$dst_dir/" || exit 1 + cd "custom_components/midea_lan/" || exit 1 + zip -r ../midea_lan.zip ./* || exit 1 + cp ../midea_lan.zip "$dst_dir/" || exit 1 ls -alht "$dst_dir" || exit 1 - name: Upload Artifacts uses: actions/upload-artifact@v4 with: - name: midea_ac_lan.zip + name: midea_lan.zip path: /github/workspace/artifacts upload_release: @@ -77,7 +77,7 @@ jobs: uses: actions/download-artifact@v4 with: path: artifacts - pattern: midea_ac_lan.zip + pattern: midea_lan.zip merge-multiple: true - name: Display Structure of Artifacts Files @@ -105,6 +105,6 @@ jobs: - name: Upload images to Release Asset uses: softprops/action-gh-release@v2 with: - files: artifacts/midea_ac_lan.zip + files: artifacts/midea_lan.zip env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a2bd38b9..8e9ec50d 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -15,9 +15,10 @@ jobs: - uses: "actions/checkout@v4" - name: HACS Action - uses: hacs/action@main + uses: wuwentao/hacs_action@main with: category: "integration" + ignore: "brands" - name: Hassfest validation uses: "home-assistant/actions/hassfest@master" diff --git a/.gitignore b/.gitignore index 251016ad..d375daf3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,10 +4,6 @@ config/ #Sensitive files sensitive/ -#exclude -custom_components/midea_ac_lan/midea/devices/b2/ -Wcustom_components/midea_ac_lan/midea/devices/b7/ - # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] @@ -106,7 +102,7 @@ celerybeat.pid .env .venv env/ -custom_components/midea_ac_lan/venv/ +custom_components/midea_lan/venv/ ENV/ env.bak/ venv.bak/ @@ -123,8 +119,6 @@ venv.bak/ # Rope project settings .ropeproject - - # Pyre type checker .pyre/ @@ -136,4 +130,4 @@ test.py cloud_extend.py # todo list -TODO.md \ No newline at end of file +TODO.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9505cf0a..8932f2aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,7 +50,7 @@ repos: hooks: - id: codespell args: ["-L hass,lookin,nam", "-w"] - exclude: "custom_components/midea_ac_lan/translations/de.json" # only de.json can't work with codespell + exclude: "custom_components/midea_lan/translations/de.json" # only de.json can't work with codespell - repo: local hooks: - id: mypy diff --git a/custom_components/midea_ac_lan/__init__.py b/custom_components/midea_lan/__init__.py similarity index 90% rename from custom_components/midea_ac_lan/__init__.py rename to custom_components/midea_lan/__init__.py index 0e3716d3..9c83f05f 100644 --- a/custom_components/midea_ac_lan/__init__.py +++ b/custom_components/midea_lan/__init__.py @@ -14,6 +14,7 @@ import homeassistant.helpers.config_validation as cv import homeassistant.helpers.device_registry as dr +import homeassistant.helpers.entity_registry as er import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( @@ -28,7 +29,7 @@ MAJOR_VERSION, MINOR_VERSION, ) -from homeassistant.core import HomeAssistant +from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.typing import ConfigType from midealocal.device import DeviceType, ProtocolVersion from midealocal.devices import device_selector @@ -278,6 +279,31 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> _LOGGER.debug("Migration to configuration version 2 successful") + # 2 -> 3: migrate domain + if config_entry.version == 2: # noqa: PLR2004 + _LOGGER.debug("Migrating configuration from version 2") + + # Migrate config entry + new_data = {**config_entry.data} + new_data["domain"] = DOMAIN + if (MAJOR_VERSION, MINOR_VERSION) >= (2024, 3): + hass.config_entries.async_update_entry(config_entry, version=2) + else: + config_entry.version = 2 + hass.config_entries.async_update_entry(config_entry) + + # Migrate device. + await _async_migrate_device_identifiers(hass, config_entry) + + # Migrate entities. + await er.async_migrate_entries( + hass, + config_entry.entry_id, + _migrate_entities_domain, + ) + + _LOGGER.debug("Migration to configuration version 3 successful") + return True @@ -316,3 +342,9 @@ async def _async_migrate_device_identifiers( # Leave outer for loop if device entry is already found. if device_entry_found: break + + +@callback +def _migrate_entities_domain(entity_entry: er.RegistryEntry) -> dict[str, Any]: # noqa: ARG001 + """Migrate entities domain to the new name.""" + return {"platform": DOMAIN} diff --git a/custom_components/midea_ac_lan/binary_sensor.py b/custom_components/midea_lan/binary_sensor.py similarity index 100% rename from custom_components/midea_ac_lan/binary_sensor.py rename to custom_components/midea_lan/binary_sensor.py diff --git a/custom_components/midea_ac_lan/climate.py b/custom_components/midea_lan/climate.py similarity index 100% rename from custom_components/midea_ac_lan/climate.py rename to custom_components/midea_lan/climate.py diff --git a/custom_components/midea_ac_lan/config_flow.py b/custom_components/midea_lan/config_flow.py similarity index 99% rename from custom_components/midea_ac_lan/config_flow.py rename to custom_components/midea_lan/config_flow.py index 3004e518..184f8f37 100644 --- a/custom_components/midea_ac_lan/config_flow.py +++ b/custom_components/midea_lan/config_flow.py @@ -101,7 +101,7 @@ class MideaLanConfigFlow(ConfigFlow, domain=DOMAIN): # type: ignore[call-arg] ConfigFlow will manage the creation of entries from user input, discovery """ - VERSION = 2 + VERSION = 3 MINOR_VERSION = 1 def __init__(self) -> None: diff --git a/custom_components/midea_ac_lan/const.py b/custom_components/midea_lan/const.py similarity index 96% rename from custom_components/midea_ac_lan/const.py rename to custom_components/midea_lan/const.py index 9a21b780..25efbbd0 100644 --- a/custom_components/midea_ac_lan/const.py +++ b/custom_components/midea_lan/const.py @@ -4,7 +4,7 @@ from homeassistant.const import Platform -DOMAIN = "midea_ac_lan" +DOMAIN = "midea_lan" COMPONENT = "component" DEVICES = "devices" diff --git a/custom_components/midea_ac_lan/fan.py b/custom_components/midea_lan/fan.py similarity index 100% rename from custom_components/midea_ac_lan/fan.py rename to custom_components/midea_lan/fan.py diff --git a/custom_components/midea_ac_lan/humidifier.py b/custom_components/midea_lan/humidifier.py similarity index 100% rename from custom_components/midea_ac_lan/humidifier.py rename to custom_components/midea_lan/humidifier.py diff --git a/custom_components/midea_ac_lan/light.py b/custom_components/midea_lan/light.py similarity index 100% rename from custom_components/midea_ac_lan/light.py rename to custom_components/midea_lan/light.py diff --git a/custom_components/midea_ac_lan/lock.py b/custom_components/midea_lan/lock.py similarity index 100% rename from custom_components/midea_ac_lan/lock.py rename to custom_components/midea_lan/lock.py diff --git a/custom_components/midea_ac_lan/manifest.json b/custom_components/midea_lan/manifest.json similarity index 88% rename from custom_components/midea_ac_lan/manifest.json rename to custom_components/midea_lan/manifest.json index 8cde87fb..0142b2f5 100644 --- a/custom_components/midea_ac_lan/manifest.json +++ b/custom_components/midea_lan/manifest.json @@ -1,6 +1,6 @@ { - "domain": "midea_ac_lan", - "name": "Midea AC LAN", + "domain": "midea_lan", + "name": "Midea LAN", "codeowners": ["@wuwentao", "@rokam", "@chemelli74", "@Necroneco"], "config_flow": true, "dependencies": [], diff --git a/custom_components/midea_ac_lan/midea_devices.py b/custom_components/midea_lan/midea_devices.py similarity index 100% rename from custom_components/midea_ac_lan/midea_devices.py rename to custom_components/midea_lan/midea_devices.py diff --git a/custom_components/midea_ac_lan/midea_entity.py b/custom_components/midea_lan/midea_entity.py similarity index 100% rename from custom_components/midea_ac_lan/midea_entity.py rename to custom_components/midea_lan/midea_entity.py diff --git a/custom_components/midea_ac_lan/number.py b/custom_components/midea_lan/number.py similarity index 100% rename from custom_components/midea_ac_lan/number.py rename to custom_components/midea_lan/number.py diff --git a/custom_components/midea_ac_lan/select.py b/custom_components/midea_lan/select.py similarity index 100% rename from custom_components/midea_ac_lan/select.py rename to custom_components/midea_lan/select.py diff --git a/custom_components/midea_ac_lan/sensor.py b/custom_components/midea_lan/sensor.py similarity index 100% rename from custom_components/midea_ac_lan/sensor.py rename to custom_components/midea_lan/sensor.py diff --git a/custom_components/midea_ac_lan/services.yaml b/custom_components/midea_lan/services.yaml similarity index 100% rename from custom_components/midea_ac_lan/services.yaml rename to custom_components/midea_lan/services.yaml diff --git a/custom_components/midea_ac_lan/switch.py b/custom_components/midea_lan/switch.py similarity index 100% rename from custom_components/midea_ac_lan/switch.py rename to custom_components/midea_lan/switch.py diff --git a/custom_components/midea_ac_lan/translations/de.json b/custom_components/midea_lan/translations/de.json similarity index 100% rename from custom_components/midea_ac_lan/translations/de.json rename to custom_components/midea_lan/translations/de.json diff --git a/custom_components/midea_ac_lan/translations/en.json b/custom_components/midea_lan/translations/en.json similarity index 100% rename from custom_components/midea_ac_lan/translations/en.json rename to custom_components/midea_lan/translations/en.json diff --git a/custom_components/midea_ac_lan/translations/fr.json b/custom_components/midea_lan/translations/fr.json similarity index 100% rename from custom_components/midea_ac_lan/translations/fr.json rename to custom_components/midea_lan/translations/fr.json diff --git a/custom_components/midea_ac_lan/translations/hu.json b/custom_components/midea_lan/translations/hu.json similarity index 100% rename from custom_components/midea_ac_lan/translations/hu.json rename to custom_components/midea_lan/translations/hu.json diff --git a/custom_components/midea_ac_lan/translations/ru.json b/custom_components/midea_lan/translations/ru.json similarity index 100% rename from custom_components/midea_ac_lan/translations/ru.json rename to custom_components/midea_lan/translations/ru.json diff --git a/custom_components/midea_ac_lan/translations/sk.json b/custom_components/midea_lan/translations/sk.json similarity index 100% rename from custom_components/midea_ac_lan/translations/sk.json rename to custom_components/midea_lan/translations/sk.json diff --git a/custom_components/midea_ac_lan/translations/zh-Hans.json b/custom_components/midea_lan/translations/zh-Hans.json similarity index 100% rename from custom_components/midea_ac_lan/translations/zh-Hans.json rename to custom_components/midea_lan/translations/zh-Hans.json diff --git a/custom_components/midea_ac_lan/water_heater.py b/custom_components/midea_lan/water_heater.py similarity index 100% rename from custom_components/midea_ac_lan/water_heater.py rename to custom_components/midea_lan/water_heater.py diff --git a/doc/26.md b/doc/26.md index 4b034561..cb1abf18 100644 --- a/doc/26.md +++ b/doc/26.md @@ -25,9 +25,9 @@ No Default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -52,7 +52,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: main_light @@ -60,7 +60,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: mode @@ -68,7 +68,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: direction diff --git a/doc/26_hans.md b/doc/26_hans.md index df6ef7ef..da9b16f1 100644 --- a/doc/26_hans.md +++ b/doc/26_hans.md @@ -25,9 +25,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -52,7 +52,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: main_light @@ -60,7 +60,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: mode @@ -68,7 +68,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: direction diff --git a/doc/34.md b/doc/34.md index 09d61002..bc3a62fe 100644 --- a/doc/34.md +++ b/doc/34.md @@ -31,9 +31,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -46,7 +46,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/34_hans.md b/doc/34_hans.md index 631ac060..930d7200 100644 --- a/doc/34_hans.md +++ b/doc/34_hans.md @@ -31,9 +31,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -46,7 +46,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/40.md b/doc/40.md index 14052597..8ab1ff51 100644 --- a/doc/40.md +++ b/doc/40.md @@ -25,9 +25,9 @@ ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -46,7 +46,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: light @@ -54,7 +54,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: directions diff --git a/doc/40_hans.md b/doc/40_hans.md index 6df99f08..64f09aba 100644 --- a/doc/40_hans.md +++ b/doc/40_hans.md @@ -25,9 +25,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -46,7 +46,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: light @@ -54,7 +54,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: directions diff --git a/doc/A1.md b/doc/A1.md index 504bdcfb..a03af6fc 100644 --- a/doc/A1.md +++ b/doc/A1.md @@ -33,9 +33,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -60,7 +60,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -68,7 +68,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/A1_hans.md b/doc/A1_hans.md index d77ca385..50307213 100644 --- a/doc/A1_hans.md +++ b/doc/A1_hans.md @@ -33,9 +33,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -60,7 +60,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -68,7 +68,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/AC.md b/doc/AC.md index a30aa7d8..66fb7b12 100644 --- a/doc/AC.md +++ b/doc/AC.md @@ -75,9 +75,9 @@ Some Midea appliance be named "Fresh Air Appliance", the protocol that actually ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -96,7 +96,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: eco_mode @@ -104,7 +104,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/AC_hans.md b/doc/AC_hans.md index 319cfd8b..6da42775 100644 --- a/doc/AC_hans.md +++ b/doc/AC_hans.md @@ -75,9 +75,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -96,7 +96,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: eco_mode @@ -104,7 +104,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/C2.md b/doc/C2.md index 888348af..2ffa7ce6 100644 --- a/doc/C2.md +++ b/doc/C2.md @@ -35,9 +35,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -56,7 +56,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: child_lock @@ -64,7 +64,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: max_dry_level diff --git a/doc/C2_hans.md b/doc/C2_hans.md index fa2b96da..3e557095 100644 --- a/doc/C2_hans.md +++ b/doc/C2_hans.md @@ -35,9 +35,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -56,7 +56,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: child_lock @@ -64,7 +64,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: max_dry_level diff --git a/doc/C3.md b/doc/C3.md index a53458d8..1950c2b3 100644 --- a/doc/C3.md +++ b/doc/C3.md @@ -45,9 +45,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -60,7 +60,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: zone1_curve diff --git a/doc/C3_hans.md b/doc/C3_hans.md index 59ec5d82..1b06aa61 100644 --- a/doc/C3_hans.md +++ b/doc/C3_hans.md @@ -45,9 +45,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -60,7 +60,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: zone1_curve diff --git a/doc/CC.md b/doc/CC.md index db11e63a..0a1d0437 100644 --- a/doc/CC.md +++ b/doc/CC.md @@ -35,9 +35,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -50,7 +50,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: eco_mode diff --git a/doc/CC_hans.md b/doc/CC_hans.md index d57fa4ed..8479b251 100644 --- a/doc/CC_hans.md +++ b/doc/CC_hans.md @@ -37,9 +37,9 @@ 生成以下扩展服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -52,7 +52,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: eco_mode diff --git a/doc/CD.md b/doc/CD.md index 983a1f77..181ce5bf 100644 --- a/doc/CD.md +++ b/doc/CD.md @@ -33,9 +33,9 @@ Set the temperature step of water heater (1 by default). ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -48,7 +48,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/CD_hans.md b/doc/CD_hans.md index ec37a07f..050c7973 100644 --- a/doc/CD_hans.md +++ b/doc/CD_hans.md @@ -30,9 +30,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -45,7 +45,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/CE.md b/doc/CE.md index 69de3d7f..059a0208 100644 --- a/doc/CE.md +++ b/doc/CE.md @@ -44,9 +44,9 @@ Set the levels of fan except "Auto" (7 by default). ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -59,7 +59,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/CE_hans.md b/doc/CE_hans.md index b83c80a1..2ba1a561 100644 --- a/doc/CE_hans.md +++ b/doc/CE_hans.md @@ -46,9 +46,9 @@ 生成以下扩展服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -61,7 +61,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/CF.md b/doc/CF.md index 2bea0c15..c5f201cf 100644 --- a/doc/CF.md +++ b/doc/CF.md @@ -24,9 +24,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -39,7 +39,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: aux_heating diff --git a/doc/CF_hans.md b/doc/CF_hans.md index 84a47070..304316e3 100644 --- a/doc/CF_hans.md +++ b/doc/CF_hans.md @@ -24,9 +24,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -39,7 +39,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: aux_heating diff --git a/doc/DA.md b/doc/DA.md index 48945951..af55c61a 100644 --- a/doc/DA.md +++ b/doc/DA.md @@ -17,9 +17,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -32,7 +32,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/DA_hans.md b/doc/DA_hans.md index b82c169c..5eeab001 100644 --- a/doc/DA_hans.md +++ b/doc/DA_hans.md @@ -19,9 +19,9 @@ 生成以下扩展服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -34,7 +34,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/DB.md b/doc/DB.md index 718ec8e8..5b42664e 100644 --- a/doc/DB.md +++ b/doc/DB.md @@ -17,9 +17,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -32,7 +32,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/DB_hans.md b/doc/DB_hans.md index acd704fd..63d404f2 100644 --- a/doc/DB_hans.md +++ b/doc/DB_hans.md @@ -17,9 +17,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -32,7 +32,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/DC.md b/doc/DC.md index c7bfacbd..3534c28f 100644 --- a/doc/DC.md +++ b/doc/DC.md @@ -17,9 +17,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -32,7 +32,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/DC_hans.md b/doc/DC_hans.md index 64f52397..2e1285e5 100644 --- a/doc/DC_hans.md +++ b/doc/DC_hans.md @@ -17,9 +17,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -32,7 +32,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/E1.md b/doc/E1.md index c098dc98..54aadd4f 100644 --- a/doc/E1.md +++ b/doc/E1.md @@ -29,9 +29,9 @@ No default entity ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -44,7 +44,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/E1_hans.md b/doc/E1_hans.md index 00571b3a..d6ebaa5a 100644 --- a/doc/E1_hans.md +++ b/doc/E1_hans.md @@ -31,9 +31,9 @@ 生成以下扩展服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -46,7 +46,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power diff --git a/doc/E2.md b/doc/E2.md index c0c3e80f..7049db26 100644 --- a/doc/E2.md +++ b/doc/E2.md @@ -39,9 +39,9 @@ ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -54,7 +54,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: variable_heating diff --git a/doc/E2_hans.md b/doc/E2_hans.md index 0a3619a7..f1ee287a 100644 --- a/doc/E2_hans.md +++ b/doc/E2_hans.md @@ -39,9 +39,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -54,7 +54,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: variable_heating diff --git a/doc/E3.md b/doc/E3.md index 1042b1c8..7403a9ab 100644 --- a/doc/E3.md +++ b/doc/E3.md @@ -36,9 +36,9 @@ ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -51,7 +51,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: smart_volume diff --git a/doc/E3_hans.md b/doc/E3_hans.md index 4870406b..30a76d9c 100644 --- a/doc/E3_hans.md +++ b/doc/E3_hans.md @@ -36,9 +36,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -51,7 +51,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: smart_volume diff --git a/doc/E6.md b/doc/E6.md index 3886a64b..b2484982 100644 --- a/doc/E6.md +++ b/doc/E6.md @@ -22,9 +22,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -37,7 +37,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: main_power diff --git a/doc/E6_hans.md b/doc/E6_hans.md index 42cf0f30..971bd1e7 100644 --- a/doc/E6_hans.md +++ b/doc/E6_hans.md @@ -22,9 +22,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -37,7 +37,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: main_power diff --git a/doc/FA.md b/doc/FA.md index 2c6940af..cbdb0c1e 100644 --- a/doc/FA.md +++ b/doc/FA.md @@ -36,9 +36,9 @@ Set the levels of the fan device except "Off" (3 by default). ## Services -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -69,7 +69,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power @@ -77,7 +77,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: oscillation_angle diff --git a/doc/FA_hans.md b/doc/FA_hans.md index 5ea180db..616594d0 100644 --- a/doc/FA_hans.md +++ b/doc/FA_hans.md @@ -36,9 +36,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -69,7 +69,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power @@ -77,7 +77,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: oscillation_angle diff --git a/doc/FB.md b/doc/FB.md index 68dc4052..9268198a 100644 --- a/doc/FB.md +++ b/doc/FB.md @@ -24,9 +24,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -45,7 +45,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power @@ -53,7 +53,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: heating_level diff --git a/doc/FB_hans.md b/doc/FB_hans.md index 0883f9fc..c066d8c1 100644 --- a/doc/FB_hans.md +++ b/doc/FB_hans.md @@ -24,9 +24,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -45,7 +45,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: power @@ -53,7 +53,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: heating_level diff --git a/doc/FC.md b/doc/FC.md index 4966eb8f..9337aa06 100644 --- a/doc/FC.md +++ b/doc/FC.md @@ -35,9 +35,9 @@ No default entity. ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -74,7 +74,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -82,7 +82,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/FC_hans.md b/doc/FC_hans.md index af04a4ae..ba6ab74b 100644 --- a/doc/FC_hans.md +++ b/doc/FC_hans.md @@ -35,9 +35,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -74,7 +74,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -82,7 +82,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/FD.md b/doc/FD.md index 4164af39..39c0b85f 100644 --- a/doc/FD.md +++ b/doc/FD.md @@ -28,9 +28,9 @@ ## Service -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) Set the attribute of appliance. Service data: @@ -55,7 +55,7 @@ Set the attribute of appliance. Service data: Example ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -63,7 +63,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/doc/FD_hans.md b/doc/FD_hans.md index b371f518..e38cbba4 100644 --- a/doc/FD_hans.md +++ b/doc/FD_hans.md @@ -28,9 +28,9 @@ ## 服务 -### midea_ac_lan.set_attribute +### midea_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) +[![Service](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=midea_lan.set_attribute) 设置设备属性, 服务数据: @@ -55,7 +55,7 @@ 示例 ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: prompt_tone @@ -63,7 +63,7 @@ data: ``` ```yaml -service: midea_ac_lan.set_attribute +service: midea_lan.set_attribute data: device_id: XXXXXXXXXXXX attribute: fan_speed diff --git a/hacs.json b/hacs.json index 5aedd226..60d56247 100644 --- a/hacs.json +++ b/hacs.json @@ -1,7 +1,7 @@ { - "name": "Midea AC LAN", + "name": "Midea LAN", "render_readme": true, "homeassistant": "2023.8", "zip_release": true, - "filename": "midea_ac_lan.zip" + "filename": "midea_lan.zip" }