『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
12
返回列表 发新帖
楼主: supercc

[经验分享] N1 openwrt里面docker下安装home assistant,求解惑

[复制链接]

16

主题

168

帖子

1409

积分

金牌会员

Rank: 6Rank: 6

积分
1409
金钱
1241
HASS币
0
发表于 2020-6-11 20:18:57 来自手机 | 显示全部楼层
supercc 发表于 2020-6-11 13:49
那hass.io什么模式运行,host还是其他,hass又以什么模式运行,谢谢

hassio_supervisor用privilege模式运行,它自己会搞定其他事情,你搜一下命令,然后用对镜像即可(搜到的命令可能是x86镜像的)
回复

使用道具 举报

16

主题

168

帖子

1409

积分

金牌会员

Rank: 6Rank: 6

积分
1409
金钱
1241
HASS币
0
发表于 2020-6-11 20:34:52 来自手机 | 显示全部楼层
pikaq 发表于 2020-6-11 20:18
hassio_supervisor用privilege模式运行,它自己会搞定其他事情,你搜一下命令,然后用对镜像即可(搜到的 ...

docker run -d --restart=always --name hassio_supervisor \
     -v /var/run/docker.sock:/var/run/docker.sock \
     -v /volume1/docker/hassio:/data \
     -v /volume1/docker/hassio/supervisor-log:/var/log \
     -e SUPERVISOR_SHARE=/volume1/docker/hassio \
     -e SUPERVISOR_NAME=hassio_supervisor \
     -e HOMEASSISTANT_REPOSITORY=homeassistant/qemux86-64-homeassistant \
     homeassistant/amd64-hassio-supervisor
手机搜了一下,类似这条命令,把里面x86镜像换arm的名称即可,具体名字忘了,安装好hassio_supervisor后它会自动给你装homeassistant,再进web装node-red等插件都很方便,网速不好的话可以看hassio_supervisor log里它拉取的是什么镜像名称,自己docker pull好后再安装。
回复

使用道具 举报

2

主题

22

帖子

110

积分

注册会员

Rank: 2

积分
110
金钱
88
HASS币
0
 楼主| 发表于 2020-6-11 20:59:21 来自手机 | 显示全部楼层
pikaq 发表于 2020-6-11 20:34
docker run -d --restart=always --name hassio_supervisor \
     -v /var/run/docker.sock:/var/run/do ...

谢谢,已经安装了,但是一直在报错。
stderr: [32m20-06-11 12:57:07 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json[0m
stderr: [33m20-06-11 12:57:08 WARNING (MainThread) [supervisor.updater] Can't process version data: 'aarch64'[0m
stderr: [33m20-06-11 12:57:08 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec[0m

回复

使用道具 举报

0

主题

10

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
76
HASS币
0
发表于 2022-3-18 18:43:44 | 显示全部楼层
supercc 发表于 2020-6-11 20:59
谢谢,已经安装了,但是一直在报错。
stderr: [32m20-06-11 12:57:07 INFO (MainThread) [supervisor.upd ...

一模一样的报错内容,有解决吗?
回复

使用道具 举报

0

主题

10

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
76
HASS币
0
发表于 2022-3-18 21:19:25 | 显示全部楼层
XFZJ 发表于 2022-3-18 18:43
一模一样的报错内容,有解决吗?

在x86里面hassio和hass正确的镜像名称分别是homeassistant/amd64-hassio-supervisor和homeassistant/qemux86-64-homeassistant,而在N1里面这两个镜像名称分别是homeassistant/aarch64-hassio-supervisor和homeassistant/qemuarm-64-homeassistant
所以解决了。
docker run -d --name hassio_supervisor --privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus:/var/run/dbus \
-v /mnt/sda4/docker/hassio:/data \
-e SUPERVISOR_SHARE="/mnt/sda4/docker/hassio" \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemuarm-64-homeassistant" \
--restart unless-stopped homeassistant/aarch64-hassio-supervisor
回复

使用道具 举报

0

主题

1

帖子

16

积分

新手上路

Rank: 1

积分
16
金钱
15
HASS币
0
发表于 2022-3-27 14:01:12 | 显示全部楼层
XFZJ 发表于 2022-3-18 21:19
在x86里面hassio和hass正确的镜像名称分别是homeassistant/amd64-hassio-supervisor和homeassistant/qemu ...

大佬 求助用这个命令 也是提示:22-03-27 06:00:11 WARNING (MainThread) [supervisor.jobs] 'Updater.fetch_data' blocked from execution, no supervisor internet connection
22-03-27 06:00:11 WARNING (MainThread) [supervisor.plugins.cli] Error on install cli plugin. Retry in 30sec
回复

使用道具 举报

0

主题

3

帖子

22

积分

新手上路

Rank: 1

积分
22
金钱
19
HASS币
0
发表于 2022-6-29 22:43:59 | 显示全部楼层
XFZJ 发表于 2022-3-18 21:19
在x86里面hassio和hass正确的镜像名称分别是homeassistant/amd64-hassio-supervisor和homeassistant/qemu ...

stderr: [14:28:34] INFO: [32mStarting local supervisor watchdog...[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [supervisor.bootstrap] Use the old homeassistant repository for machine extraction[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [__main__] Initializing Supervisor setup[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry[0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.bootstrap] Missing SUPERVISOR_MACHINE environment variable. Fallback to deprecated extraction![0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: qemuarm-64[0m
stderr: [32m22-06-29 14:28:39 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/aarch64-hassio-supervisor with version 2022.06.2[0m
stderr: [32m22-06-29 14:28:39 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connecting Supervisor to hassio-network[0m
stderr: [33m22-06-29 14:28:39 WARNING (SyncWorker_0) [supervisor.docker.interface] Can't find homeassistant/aarch64-hassio-supervisor for cleanup[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE[0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.resolution.evaluations.base] AppArmor is required for Home Assistant. (more-info: https://www.home-assistant.io/more-info/unsupported/apparmor)[0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.resolution.evaluations.base] D-Bus is required for Home Assistant. (more-info: https://www.home-assistant.io/more-info/unsupported/dbus)[0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.resolution.evaluations.docker_configuration] Docker logging driver json-file is not supported![0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.resolution.evaluations.docker_configuration] Docker cgroup version 2 is not supported![0m
stderr: [33m22-06-29 14:28:39 WARNING (MainThread) [supervisor.resolution.evaluations.base] The configuration of Docker is not supported (more-info: https://www.home-assistant.io/mo ... ocker_configuration)[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete[0m
stderr: [32m22-06-29 14:28:39 INFO (MainThread) [__main__] Setting up Supervisor[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor[0m
stderr: [31m22-06-29 14:28:40 ERROR (MainThread) [supervisor.dbus.manager] No D-Bus support on Host. Disabled any kind of host control![0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.host.info] Updating local host information[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.host.manager] Host information reload completed[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.jobs] 'NetworkManager.load' blocked from execution, host Network Manager not available[0m
stderr: [32m22-06-29 14:28:40 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: set()[0m
stderr: [33m22-06-29 14:28:40 WARNING (MainThread) [supervisor.host.apparmor] AppArmor is not enabled on host[0m
stderr: [32m22-06-29 22:28:41 INFO (SyncWorker_0) [supervisor.docker.interface] No version found for ghcr.io/home-assistant/aarch64-hassio-cli[0m
stderr: [32m22-06-29 22:28:41 INFO (MainThread) [supervisor.plugins.cli] No cli plugin Docker image ghcr.io/home-assistant/aarch64-hassio-cli found.[0m
stderr: [32m22-06-29 22:28:41 INFO (MainThread) [supervisor.plugins.cli] Running setup for CLI plugin[0m
stderr: [32m22-06-29 22:28:41 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json[0m
stderr: [32m22-06-29 22:28:46 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-cli with tag 2022.05.0.[0m

之后就一直不动了了!我应该怎样接续呢
回复

使用道具 举报

0

主题

18

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
52
HASS币
0
发表于 2022-7-24 13:26:38 | 显示全部楼层
147899 发表于 2022-6-29 22:43
stderr: [14:28:34] INFO: [32mStarting local supervisor watchdog...[0m
stderr: [32m22-06-29 14:28:3 ...

翻墙即可解决
回复

使用道具 举报

0

主题

3

帖子

24

积分

新手上路

Rank: 1

积分
24
金钱
21
HASS币
0
发表于 2023-9-25 14:57:02 | 显示全部楼层
本帖最后由 dragonyana 于 2023-9-25 18:32 编辑
supercc 发表于 2020-6-11 20:59
谢谢,已经安装了,但是一直在报错。
stderr: [32m20-06-11 12:57:07 INFO (MainThread) [supervisor.upd ...

我的是跑到这里报错了
stderr: [32m23-09-25 18:27:02 INFO (MainThread) [supervisor.plugins.observer] Starting observer plugin[0m
stderr: [31m23-09-25 18:27:02 ERROR (SyncWorker_2) [supervisor.docker.manager] Can't create container from hassio_observer: 400 Client Error for http+docker://localhost/v1.41/containers/create?name=hassio_observer: Bad Request ("invalid mount config for type "bind": bind source path does not exist: /run/docker.sock")[0m
stderr: [31m23-09-25 18:27:02 ERROR (MainThread) [supervisor.plugins.observer] Can't start observer plugin[0m
stderr: [31m23-09-25 18:27:02 ERROR (MainThread) [supervisor.misc.tasks] Observer watchdog reanimation failed![0m


回复

使用道具 举报

0

主题

17

帖子

155

积分

注册会员

Rank: 2

积分
155
金钱
138
HASS币
0
发表于 2024-7-10 08:44:29 | 显示全部楼层
本帖最后由 lazybbb 于 2024-7-14 17:38 编辑

opkg install dbus

docker run -d --name hassio_supervisor --privileged \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus:/var/run/dbus \
-v /opt/apps/hassio:/data \
-v /run/udev:/run/udev \
-e TZ=Asia/Shanghai
-e SUPERVISOR_SHARE=/opt/apps/hassio \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY=homeassistant/qemuarm-64-homeassistant \
ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.06.2
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 14:51 , Processed in 0.763780 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表