四、如何把home-assistant还原到出厂状态如果您的智趣盒子不是在linux系统层面进行了破坏性的操作,无需动则刷写固件进行还原。因为homeassistant的supervisor版本是构建在docker上的,你对homeassistant的操作设置是发生在容器层面的,所以homeassistant出了问题,你可以只对homeassistant的容器层面的配置进行还原。image1478×636 17.1 KBhomeassistant做好了配置之后,要养成做快照的备份的习惯。比较homeassistant都是一个私有的服务器,你要自己做好数据安全保护。二、home-assistant supervisor快照备份
image2558×1078 311 KBimage2558×1076 217 KBimage2558×1076 350 KBimage2556×1080 216 KBimage2550×1076 192 KBimage2550×1076 262 KBimage2558×1086 275 KB把做好快照的文件下载到自己的电脑,记得保管好这个文件。二、home-assistant supervisor快照还原假如homeassistant出了问题,排除不了问题,可以先清理homeassistant。进入系统的ssh(如何进入ssh,请看盒子的说明书,不能用webssh,就用putty进入。),输入以下命令:rm -rf * /usr/share/hassio/homeassistantmkdir /usr/share/hassio/homeassistantchmod 755 /usr/share/hassio/homeassistantdocker restart homeassistant
image2554×1212 141 KBimage2558×1216 240 KB
输入以上命令,homeassistant会重启,大概等几分钟,homeassistant就进入初始状态。2. homeassistant初始化之后,手动设置一下homeassistant的相关信息。
image2556×1208 234 KB3. 进去homeassistant supervisor,上传做好的快照,如果你之前已经做了快照,它也会留在机子里。选择具体的快照进行还原。image2558×1094 224 KBimage2558×1090 204 KBimage2558×1216 261 KBimage2558×1208 299 KBimage2550×1210 268 KBimage2558×1212 304 KBimage2554×1220 226 KBimage2550×1218 207 KB
注意:1.如果要还原,请自行下载homeassistant初始快照文件**2.快照还原密码请联系淘宝店的客服索取。3.这个是最初始的快照文件,还原会让你的homeassistant回到出厂状态,你自己所做的配置都会覆盖。所以你之前的设置要自己备份