pip加速

vi ~/.pip/pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

安装homeassistant

  • 安装配置termux,https://www.jianshu.com/p/74fc2e8db834。或者安装neoterm-2.0
  • 安装homeassistant, 需要科学上网
apt install python python-dev  #python3
apt install openssl-dev #解决pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 
apt install clang
apt install libllvm
apt install  libffi-dev
pip install --upgrade pip
pip install homeassistant==0.75.0 # 我小米2 termux 0.118.0 使用的是这个版本可以成功部署我对配置https://github.com/cloudswave/termux-script/tree/master/homessistant/.homeassistant
hass # 启动

一些配置提示

  • 配置DC1:https://www.jianshu.com/p/cddb7ba47f56, 注意配置以后要重启插座才能连上本地服务器
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐