Skip to content

Commit

Permalink
📚 update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 6, 2024
1 parent 613f96f commit f29f12c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This component uses the **miot** protocol to automatically integrate Xiaomi devi
#### Method 3: Onkey shell via SSH / Terminal & SSH add-on
```shell
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash -

# Or

Expand All @@ -41,7 +41,7 @@ wget -O - https://raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/insta
```yaml
shell_command:
update_xiaomi_miot: |-
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash -
```
2. Restart HA core
3. Call this [`service: shell_command.update_xiaomi_miot`](https://my.home-assistant.io/redirect/developer_call_service/?service=shell_command.update_xiaomi_miot) in Developer Tools
Expand Down
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
#### 方法3: 通过`SSH``Terminal & SSH`加载项执行一键安装命令
```shell
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash -
```

#### 方法4: `shell_command`服务
1. 复制下面的代码到HA配置文件`configuration.yaml`
```yaml
shell_command:
update_xiaomi_miot: |-
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash -
```
2. 重启HA使配置生效
3. 在HA开发者工具中调用此服务[`service: shell_command.update_xiaomi_miot`](https://my.home-assistant.io/redirect/developer_call_service/?service=shell_command.update_xiaomi_miot)
Expand Down

0 comments on commit f29f12c

Please sign in to comment.