Skip to content

Commit

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

# Or

wget -O - https://raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/install.sh | ARCHIVE_TAG=latest bash -
```

#### Method 4: shell_command service
1. Copy this code to file `configuration.yaml`
```yaml
shell_command:
update_xiaomi_miot: |-
wget -q -O - https://raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/install.sh | ARCHIVE_TAG=latest bash -
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest 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
2. Restart HA core again


## Config
Expand Down
13 changes: 4 additions & 9 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,19 @@
#### 方法3: 通过`SSH``Terminal & SSH`加载项执行一键安装命令
```shell
wget -q -O - https://raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/install.sh | ARCHIVE_TAG=latest bash -

# 如果遇到下载缓慢或下载失败可以执行下面的命令
wget -q -O - https://ghproxy.com/raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/install.sh | HUB_DOMAIN=ghproxy.com/github.com ARCHIVE_TAG=latest bash -

# 或者
wget -q -O - https://raw.fastgit.org/al-one/hass-xiaomi-miot/master/install.sh | HUB_DOMAIN=hub.fastgit.xyz ARCHIVE_TAG=latest bash -
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
```

#### 方法4: `shell_command`服务
1. 复制下面的代码到HA配置文件`configuration.yaml`
```yaml
shell_command:
update_xiaomi_miot: |-
wget -q -O - https://ghproxy.com/raw.githubusercontent.com/al-one/hass-xiaomi-miot/master/install.sh | HUB_DOMAIN=ghproxy.com/github.com ARCHIVE_TAG=latest bash -
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -
```
2. 重启HA
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)
4. 再次重启HA使新版插件生效

#### 视频教程
- 📺 **[HACS安装插件及使用视频教程](https://www.bilibili.com/video/BV1hY4y1a7Gh?t=48)** (感谢[小帅同学Js](https://space.bilibili.com/230242045))
Expand Down

0 comments on commit 5416b16

Please sign in to comment.