请选择 进入手机版 | 继续访问电脑版

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

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

[学习笔记] 干货:解决supervisor商店插件add-ons无法加载的问题

  [复制链接]

0

主题

13

帖子

42

积分

新手上路

Rank: 1

积分
42
金钱
29
HASS币
0
发表于 2022-4-7 14:27:06 | 显示全部楼层
muxiachuixue 发表于 2022-4-7 13:23
输入login进入宿主机,然后再输入帖子中的代码

Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.


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

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.31.83/24
  IPv6 addresses for enp0s3: fe80::baf3:a7a:833a:2543/64

  OS Version:               Home Assistant OS 7.6
  Home Assistant Core:      2022.4.0

  Home Assistant URL:       http://homeassistant.local:8123
  Observer URL:             http://homeassistant.local:4357
➜  ~ docker exec -i hassio_supervisor /bin/bash -lc 'sh /data/homeassistant/replace_supervisor_addon_url.sh'
PROTECTION MODE ENABLED!

To be able to use this command, you'll need to disable
protection mode on this add-on. Without it, the add-on
is unable to access Docker.

Steps:
- Go to the Configuration Panel.
- Enter the 'Add-ons, Backups & Supervisor' menu.
- Click on the SSH & Web Terminal add-on.
- Set the 'Protection mode' switch to off.
- Restart the add-on.

Access to Docker allows you to do really powerful things
including complete destruction of your system.
Please, be sure you know what you are doing before enabling
this feature!

➜  ~
回复

使用道具 举报

0

主题

13

帖子

42

积分

新手上路

Rank: 1

积分
42
金钱
29
HASS币
0
发表于 2022-4-7 14:29:12 | 显示全部楼层
wt63230233 发表于 2022-4-7 14:27
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general

哦,我知道了,得关闭保护模式
回复

使用道具 举报

0

主题

13

帖子

42

积分

新手上路

Rank: 1

积分
42
金钱
29
HASS币
0
发表于 2022-4-7 16:08:53 | 显示全部楼层
muxiachuixue 发表于 2022-4-7 13:23
输入login进入宿主机,然后再输入帖子中的代码

感谢,楼主, 部分插件正在安装!
回复

使用道具 举报

3

主题

34

帖子

160

积分

注册会员

Rank: 2

积分
160
金钱
126
HASS币
0
发表于 2022-4-15 12:48:09 | 显示全部楼层
Home Assistant Community Add-ons 的插件显示了,但是Official add-ons 的插件就不显示了,两者不能一起生存吗?
回复

使用道具 举报

5

主题

357

帖子

2046

积分

金牌会员

Rank: 6Rank: 6

积分
2046
金钱
1674
HASS币
60
 楼主| 发表于 2022-4-15 13:44:56 | 显示全部楼层
donggua 发表于 2022-4-15 12:48
Home Assistant Community Add-ons 的插件显示了,但是Official add-ons 的插件就不显示了,两者不能一起生 ...

可以一起的。看看supervisor的日志,镜像有没有替换成功
回复

使用道具 举报

0

主题

4

帖子

40

积分

新手上路

Rank: 1

积分
40
金钱
36
HASS币
0
发表于 2022-4-16 17:05:58 | 显示全部楼层
谢谢分享,但是我宿主机怎么提示没crontab,用的ova的haos
回复

使用道具 举报

3

主题

117

帖子

770

积分

高级会员

Rank: 4

积分
770
金钱
653
HASS币
0
发表于 2022-4-18 11:48:20 | 显示全部楼层
hxck 发表于 2022-3-2 00:26
大佬,怎么进宿主机呀,我用homeassistant的ssh网页版进去直接粘贴docker命令不行
...

你的问题解决了吗?
我是用树莓派安装的HASSOS,一直不知道怎么进宿主,直接树莓派键盘输入好像不行
回复

使用道具 举报

1

主题

16

帖子

123

积分

注册会员

Rank: 2

积分
123
金钱
107
HASS币
0
发表于 2022-4-23 03:07:21 | 显示全部楼层
本帖最后由 softlong 于 2022-4-23 03:09 编辑

我按你说的做到第二步,就无法重启HA了,
提示是Error loading /config/configuration.yaml: 'utf-8' codec can't decode byte 0xc6 in position 116: invalid continuation byte

我用的是HA里的File editor编辑的?这是什么原因?
只有把homeassistant:
  packages: !include_dir_named packages
这个删除掉,才行。
回复

使用道具 举报

5

主题

357

帖子

2046

积分

金牌会员

Rank: 6Rank: 6

积分
2046
金钱
1674
HASS币
60
 楼主| 发表于 2022-4-23 10:07:11 | 显示全部楼层
softlong 发表于 2022-4-23 03:07
我按你说的做到第二步,就无法重启HA了,
提示是Error loading /config/configuration.yaml: 'utf-8' codec ...

你是不是回复错了,在另外一个帖子里吧。文件编码的问题,在linux环境下编辑应该没这个问题,或者你直接把自动化的代码复制到configuration.yaml文件里面,不要用 packages了。
回复

使用道具 举报

10

主题

86

帖子

791

积分

高级会员

Rank: 4

积分
791
金钱
705
HASS币
0
发表于 2022-5-4 22:03:19 | 显示全部楼层
sh: can't open '/root/replace_supervisor_addon_url.sh': No such file or directory
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-3-29 18:13 , Processed in 0.616245 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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