最近有不少反馈美的和海尔插件通过hacs商店无法正常安装的问题,这里给出解决方案
首先通过ssh或ttyd进入后台,检查容器下有无custom_components目录,如果没有则创建目录custom_components,core版本在config目录下创建,haos等在homeassistant目录下创建,创建目录命令如下:
mkdir custom_components
创建完毕进入目录
cd custom_components
#安装美的插件命令组
wget https://github.com/georgezhao2010/midea_ac_lan/archive/refs/heads/master.zip
unzip master.zip
mv ./midea_ac_lan-master/custom_components/midea_ac_lan/ ./
rm master.zip
rm -rf midea_ac_lan-master/
#安装海尔插件命令组
wget https://github.com/Andre0512/hon/archive/refs/heads/main.zip
unzip main.zip
mv ./hon-main/custom_components/hon/ ./
rm main.zip
rm -rf hon-main
#安装小米插件命令组
wget https://github.com/al-one/hass-xiaomi-miot/archive/refs/heads/master.zip
unzip master.zip
mv ./hass-xiaomi-miot-master/custom_components/xiaomi_miot/ ./
rm master.zip
rm -rf hass-xiaomi-miot-master
#安装涂鸦插件命令组
wget https://github.com/make-all/tuya-local/archive/refs/heads/main.zip
unzip main.zip
mv ./tuya-local-main/custom_components/tuya_local/ ./
rm main.zip
rm -rf tuya-local-main
#安装巴法云插件命令组
wget https://github.com/larry-wong/bemfa/archive/refs/heads/main.zip
unzip main.zip
mv ./bemfa-main/custom_components/bemfa /config/custom_components/
rm -rf bemfa-main/
rm main.zip
其它插件均可通过以上形式安装,包括hacs也可以按此方式
下面是两种方式的具体操作视频,两种方式均可,大家各自选择