以下几种方法任选其一!
方法1: HACS (点击这里安装)
下载解压并复制
custom_components/baidu_charging
文件夹到HA配置目录下的custom_components
文件夹
wget -O - https://get.hacs.vip | DOMAIN=baidu_charging REPO_PATH=hasscc/baidu-charging ARCHIVE_TAG=main bash -
- 复制代码到HA配置文件
configuration.yaml
shell_command: update_baidu_charging: |- wget -O - https://get.hacs.vip | DOMAIN=baidu_charging REPO_PATH=hasscc/baidu-charging ARCHIVE_TAG=main bash -
- 重启HA使配置生效
- 在开发者工具中执行服务
service: shell_command.update_baidu_charging
- 再次重启HA使插件生效