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

 找回密码
 立即注册
楼主: zsqduke

[快速入门] 2021年最新N1安装HA Supervised教程(官方支持版本)

  [复制链接]

1

主题

131

帖子

1123

积分

金牌会员

Rank: 6Rank: 6

积分
1123
金钱
992
HASS币
0
发表于 2023-1-9 15:48:20 | 显示全部楼层
楼主的用的镜像已经不存在了404了. 另外, 在就算能找回来, 好像也不支持安装HA的docker了. 提示如下.
debian gnu/linux bullseye/sid is not supported!
不知道怎么解决.
估计要换ophub/amlogic-s9xxx-armbian的最新的镜像, 可能之前的太老没更新就不支持了, 好像以前的大佬的, 转移到这里了.
回复

使用道具 举报

1

主题

3

帖子

34

积分

新手上路

Rank: 1

积分
34
金钱
31
HASS币
0
发表于 2023-1-28 10:56:17 | 显示全部楼层
大佬。现在还有老版本的905d的系统下载么?没有科学环境可以安装么?
回复

使用道具 举报

0

主题

2

帖子

23

积分

新手上路

Rank: 1

积分
23
金钱
21
HASS币
0
发表于 2023-1-28 20:11:49 | 显示全部楼层
支持一下
回复

使用道具 举报

0

主题

2

帖子

23

积分

新手上路

Rank: 1

积分
23
金钱
21
HASS币
0
发表于 2023-1-28 20:14:23 | 显示全部楼层
tangli159 发表于 2022-10-18 15:56
发到你站内信了哦,没发邮箱,注意查收

可以发一下吗,新号没法私信
回复

使用道具 举报

2

主题

30

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
金钱
288
HASS币
0
发表于 2023-2-3 00:20:52 | 显示全部楼层
本帖最后由 Chong83 于 2023-2-3 00:39 编辑

在桌底下找出一个 N 年前的MXQ Pro+ 4K s905x 2/16G 心血来潮学习用盒子装 HA
研究了好几天不断反复安装, 目前用的是  Armbian_23.02.0_amlogic_s905x_bullseye_6.1.9_server_2023.02.01.img 3/2/23 (最新版本)
安装很简单, 只是用 Rufus 把镜像复制到 64G U盘, 什么也不动就可以启动进入系统了
有线和无线网卡正常, 蓝夜正常, 红外线没测试, 写入 eMMC 也正常

分享我遇到的问题, 我安装的是 1.4.1 版本 os-agent
wget https://github.com/home-assistant/os-agent/releases/download/1.4.1/os-agent_1.4.1_linux_aarch64.deb

dpkg -i os-agent_1.4.1_linux_aarch64.deb


最后一步执行
dpkg -i homeassistant-supervised.deb

遇到无法安装
root@armbian:~# dpkg -i homeassistant-supervised.deb
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 38424 files and directories currently installed.)
Preparing to unpack homeassistant-supervised.deb ...
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
Adding 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised'
Adding 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised'
Adding 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised'
Adding 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised'
Unpacking homeassistant-supervised (1.4.1) ...
dpkg: dependency problems prevent configuration of homeassistant-supervised:
 homeassistant-supervised depends on systemd-journal-remote; however:
  Package systemd-journal-remote is not installed.

dpkg: error processing package homeassistant-supervised (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 homeassistant-supervised


网上找到结果执行安装
sudo apt-get install -y systemd-journal-remote
sudo BYPASS_OS_CHECK=true dpkg -i homeassistant-supervised.deb
然后就行了
apt --fix-broken install
root@armbian:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libmicrohttpd12 systemd-journal-remote
The following NEW packages will be installed:
  libmicrohttpd12 systemd-journal-remote
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 265 kB of archives.
After this operation, 534 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main arm64 libmicrohttpd12 arm64 0.9.72-2 [104 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 systemd-journal-remote arm64 247.3-7+deb11u1 [161 kB]
Fetched 265 kB in 1s (454 kB/s)
Selecting previously unselected package libmicrohttpd12:arm64.
(Reading database ... 38440 files and directories currently installed.)
Preparing to unpack .../libmicrohttpd12_0.9.72-2_arm64.deb ...
Unpacking libmicrohttpd12:arm64 (0.9.72-2) ...
Selecting previously unselected package systemd-journal-remote.
Preparing to unpack .../systemd-journal-remote_247.3-7+deb11u1_arm64.deb ...
Unpacking systemd-journal-remote (247.3-7+deb11u1) ...
Setting up libmicrohttpd12:arm64 (0.9.72-2) ...
Setting up systemd-journal-remote (247.3-7+deb11u1) ...
Setting up homeassistant-supervised (1.4.1) ...
[info] Restarting NetworkManager
[info] Enable systemd-journal-gatewayd
[info] Restarting docker service
ping: checkonline.home-assistant.io: Name or service not known
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Name or service not known
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Name or service not known
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
PING checkonline.home-assistant.io (104.26.5.238) 56(84) bytes of data.
64 bytes from 104.26.5.238 (104.26.5.238): icmp_seq=1 ttl=60 time=31.3 ms

--- checkonline.home-assistant.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 31.295/31.295/31.295/0.000 ms
[info] Install supervisor startup scripts
[info] Install AppArmor scripts
[info] Start Home Assistant Supervised
[info] Installing the 'ha' cli
[warn] Could not find /etc/default/grub or /boot/firmware/cmdline.txt failed to switch to cgroup v1
[info] Within a few minutes you will be able to reach Home Assistant at:
[info] http://homeassistant.local:8123 or using the IP address of your
[info] machine: http://192.168.0.253:8123
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...

安装等待几分钟, 如果想知道运行结果可以执行

ha banner
系统提示安装等待中

root@armbian:~# ha banner

| |  | |                          /\           (_)   | |            | |
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_
|  __  |/ _ \| '_ \ _ \ / _ \   / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|

Welcome to the Home Assistant command line.

Waiting for Supervisor to startup...

安装好以后会出现

root@armbian:~# ha banner

| |  | |                          /\           (_)   | |            | |
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_
|  __  |/ _ \| '_ \ _ \ / _ \   / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for eth0:
  IPv4 addresses for wlan0: 192.168.0.253/24
  IPv6 addresses for wlan0: 2001:e68:542b:2a11:209c:8a81:8610:5fa1/64, 2001:e68:542b:2a11::126/128, fe80::e20c:18d4:c66:58e1/64

  OS Version:               Armbian 23.02.0-trunk Bullseye
  Home Assistant Core:      landingpage

  Home Assistant URL:       http://armbian.local:8123
  Observer URL:             http://armbian.local:4357



回复

使用道具 举报

0

主题

1

帖子

18

积分

新手上路

Rank: 1

积分
18
金钱
17
HASS币
0
发表于 2023-2-15 18:07:46 | 显示全部楼层
"4.安装家庭助理监督。依次执行一下命令
sudo -i

wget https://github.com/home-assistan ... tant-supervised.deb

dpkg -i homeassistant-supervised.deb'
这个代码执行不了,输入了就错误
回复

使用道具 举报

1

主题

83

帖子

246

积分

中级会员

Rank: 3Rank: 3

积分
246
金钱
163
HASS币
0
发表于 2023-2-28 20:53:00 | 显示全部楼层
学习了,谢谢分享
回复

使用道具 举报

10

主题

63

帖子

401

积分

中级会员

Rank: 3Rank: 3

积分
401
金钱
338
HASS币
0
发表于 2023-3-22 17:51:37 | 显示全部楼层
非常感谢!N1的armbian 蓝牙终于搞定了!!
回复

使用道具 举报

0

主题

1

帖子

41

积分

新手上路

Rank: 1

积分
41
金钱
40
HASS币
0
发表于 2023-6-14 11:11:32 | 显示全部楼层
Chong83 发表于 2023-2-3 00:20
在桌底下找出一个 N 年前的MXQ Pro+ 4K s905x 2/16G 心血来潮学习用盒子装 HA
研究了好几天不断反复安装,  ...

兄弟 可以分享下镜像吗 我现在不知道下载哪个镜像 了
回复

使用道具 举报

0

主题

11

帖子

83

积分

注册会员

Rank: 2

积分
83
金钱
72
HASS币
0
发表于 2023-6-29 22:44:05 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 19:28 , Processed in 0.056090 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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