centos7安装安装Home Assistant,异常问题解决

1、 Python版本不受支持,升级新版python到3.10以上

Support for running Home Assistant in the current used Python version 3.9.9 is deprecated and will be removed in Home Assistant 2023.2. Please upgrade Python to 3.10 to prevent your Home Assistant instance from breaking.

2、2023-08-02 09:13:22.722 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration google_translate: No module named 'mutagen'

复制代码
2023-08-02 09:13:22.722 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration google_translate: No module named 'mutagen'

解决:安装对应模块

pip3 install django-tinymce

3、ERROR: Cannot install hass-nabucasa==0.69.0

复制代码
2023-08-02 09:26:19.608 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package hass-nabucasa==0.69.0: ERROR: Cannot install hass-nabucasa==0.69.0 because these package versions have conflicting dependencies.

解决: 手动安装, pip3 install hass-nabucasa

4、Version 3.7.17 of SQLite is not supported;

复制代码
2023-08-02 10:12:59.674 ERROR (Recorder) [homeassistant.components.recorder.util] Version 3.7.17 of SQLite is not supported; minimum supported version is 3.31.0. Starting with Home Assistant 2022.6 this prevents the recorder from starting. Please upgrade your database software

解决:

更新SQLite,从官网下载:SQLite Download Page

复制代码
# 下载
curl -O https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz

# 解压
tar zxvf sqlite-autoconf-3420000.tar.gz

# 配置编译
cd sqlite-autoconf-3420000/

./configure --prefix=/usr/local

make && make install

# 把系统预装的旧版sqlite3移走:
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old

# 为新版的sqlite3建立软链接:
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3

# 配置运行环境库
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig

5、安装esphome

复制代码
# 创建venv 环境
cd ~
python3.11 -m venv esphome
cd esphome
source bin/activate

# 安装
pip3 install esphome


# 启动打开浏览器工具
esphome config/ dashboard

# 之后,您将能够通过浏览器localhost:6052访问仪表板
相关推荐
小乌龟不会飞12 分钟前
Ubuntu 安装 etcd 与 etcd-cpp-apiv3
数据库·etcd
计算机毕设定制辅导-无忧学长8 小时前
西门子 PLC 与 Modbus 集成:S7-1500 RTU/TCP 配置指南(一)
服务器·数据库·tcp/ip
程序员柳8 小时前
基于微信小程序的校园二手交易平台、微信小程序校园二手商城源代码+数据库+使用说明,layui+微信小程序+Spring Boot
数据库·微信小程序·layui
梦在深巷、9 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
IT乌鸦坐飞机9 小时前
ansible部署数据库服务随机启动并创建用户和设置用户有完全权限
数据库·ansible·centos7
IT_10249 小时前
Spring Boot项目开发实战销售管理系统——数据库设计!
java·开发语言·数据库·spring boot·后端·oracle
祁思妙想10 小时前
八股学习(三)---MySQL
数据库·学习·mysql
惊骇世俗王某人10 小时前
1.MySQL之如何定位慢查询
数据库·mysql
秦歌66611 小时前
向量数据库-Milvus快速入门
数据库·milvus
Edingbrugh.南空12 小时前
Flink SQLServer CDC 环境配置与验证
数据库·sqlserver·flink