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访问仪表板
相关推荐
TDengine (老段)9 小时前
TDengine IDMP 工业数据建模 —— 属性
大数据·数据库·人工智能·时序数据库·tdengine·涛思数据
爱丽_10 小时前
Redis 分布式锁:SET NX、过期时间、续租、可重入、Redlock 与坑
数据库·redis·分布式
IT小崔10 小时前
SqlSugar 使用教程
数据库·后端
GIS阵地10 小时前
QgsProviderMetadata 详解(基于 QGIS 3.40.13 API)
数据库·qt·arcgis·oracle·gis·开源软件·qgis
qq_3660862210 小时前
sql server OUTER APPLY使用
数据库·sql·mysql
Sunshine for you10 小时前
使用Flask快速搭建轻量级Web应用
jvm·数据库·python
qwehjk200810 小时前
如何从Python初学者进阶为专家?
jvm·数据库·python
zzh08110 小时前
Mysql数据库备份与恢复笔记
数据库·笔记·mysql
枕布响丸辣11 小时前
MySQL 数据库备份与恢复全攻略:从基础到实战
数据库·oracle
IvorySQL11 小时前
PostgreSQL 技术日报 (3月31日)|五大内核模块补丁评审与问题修复汇总
数据库·postgresql·开源