收起左侧

解决HomeAssistant蓝牙设备报错的问题

0
回复
43
查看
[ 复制链接 ]

3

主题

3

回帖

0

牛值

江湖小虾

Home Assistant 蓝牙报错解决流程

问题现象

Home Assistant Bluetooth 集成时报错:

CHONGQING FUGUI ELECTRONICS CO.,LTD. None (40:23:43:A9:8E:9C) 没有设备或实体 设置失败,将重试: hci0 (40:23:43:A9:8E:9C): hci0 (40:23:43:A9:8E:9C): Failed to start Bluetooth: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.bluez was not provided by any .service files; Try power cycling the Bluetooth hardware.

原因

宿主机没有正常提供 BlueZ 蓝牙服务,或 Home Assistant 容器无法访问宿主机的 D-Bus。

解决步骤

1. 在飞牛OS中安装蓝牙服务

安装 BlueZ、D-Bus 和相关工具:

sudo apt update
sudo apt install -y bluez dbus rfkill

启动蓝牙服务:

sudo systemctl enable --now bluetooth

2. 检查蓝牙控制器

bluetoothctl list

正常应能看到类似:

Controller C0:B5:D7:79:E3:B2 GX-Nas [default]

3. 检查 BlueZ 是否注册到 D-Bus

busctl --system list | grep bluez

正常应能看到:

org.bluez

4. 重建或重启 Home Assistant 容器

sudo docker restart homeassistant

5. 确认正常

此时了Home Assistant内的蓝牙应该显示正常

希望飞牛官方可以在后续的系统版本中解决这个问题~

收藏
送赞 1
分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则