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

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

[快速入门] ESPHome 介绍及安装教程(可代替ESPEasy)【2021年8月】

  [复制链接]

15

主题

221

帖子

1807

积分

金牌会员

Rank: 6Rank: 6

积分
1807
金钱
1586
HASS币
0
发表于 2022-1-15 22:00:09 | 显示全部楼层
更新了一直报错这..无法新建一直加载

2022-01-15 21:58:33,227 ERROR Uncaught exception GET /secret_keys (0.0.0.0)
HTTPServerRequest(protocol='http', host='192.168.3.12:8123', method='GET', uri='/secret_keys', version='HTTP/1.1', remote_ip='0.0.0.0')
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/esphome/yaml_util.py", line 344, in _load_yaml_internal
    return loader.get_single_data() or OrderedDict()
  File "/usr/local/lib/python3.9/dist-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.9/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.9/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.9/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.9/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/local/lib/python3.9/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.9/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/local/lib/python3.9/dist-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/usr/local/lib/python3.9/dist-packages/yaml/scanner.py", line 223, in fetch_more_tokens
    return self.fetch_value()
  File "/usr/local/lib/python3.9/dist-packages/yaml/scanner.py", line 577, in fetch_value
    raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
  in "/config/esphome/secrets.yaml", line 1, column 26:
    src/main.cpp:330:7: error: stray '\347' in program
                             ^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/tornado/web.py", line 1702, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/usr/local/lib/python3.9/dist-packages/esphome/dashboard/dashboard.py", line 135, in decorator
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/esphome/dashboard/dashboard.py", line 855, in get
    secret_keys = list(yaml_util.load_yaml(filename, clear_secrets=False))
  File "/usr/local/lib/python3.9/dist-packages/esphome/yaml_util.py", line 336, in load_yaml
    return _load_yaml_internal(fname)
  File "/usr/local/lib/python3.9/dist-packages/esphome/yaml_util.py", line 346, in _load_yaml_internal
    raise EsphomeError(exc) from exc
esphome.core.EsphomeError: mapping values are not allowed here
  in "/config/esphome/secrets.yaml", line 1, column 26:
    src/main.cpp:330:7: error: stray '\347' in program
                             ^
2022-01-15 21:58:33,237 ERROR 500 GET /secret_keys (0.0.0.0) 12.68ms
2022-01-15 21:58:33,815 INFO 304 GET /devices (0.0.0.0) 3.09ms
回复

使用道具 举报

15

主题

221

帖子

1807

积分

金牌会员

Rank: 6Rank: 6

积分
1807
金钱
1586
HASS币
0
发表于 2022-1-15 22:01:25 | 显示全部楼层
Awe7 发表于 2022-1-15 22:00
更新了一直报错这..无法新建一直加载

2022-01-15 21:58:33,227 ERROR Uncaught exception GET /secret_key ...

System Health

version: core-2021.12.9
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 5.10.88
arch: x86_64
timezone: Asia/Shanghai


GitHub API: ok
Github API Calls Remaining: 4789
Installed Version: 1.19.3
Stage: running
Available Repositories: 939
Downloaded Repositories: 36


logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: pending
can_reach_cloud: pending


host_os: Home Assistant OS 7.1
update_channel: stable
supervisor_version: supervisor-2021.12.2
docker_version: 20.10.9
disk_total: 31.3 GB
disk_used: 6.7 GB
healthy: true
supported: true
board: ova
supervisor_api: ok
version_api: ok
installed_addons: RPC Shutdown (2.2), Samba share (9.5.1), File editor (5.3.3), Mosquitto broker (6.0.1), Terminal & SSH (9.3.0), VLC (0.1.3), ESPHome (2021.12.3)


dashboards: 2
resources: 23
views: 4
error: /config/homekit-infused.yaml not found
mode: storage
回复

使用道具 举报

5

主题

111

帖子

346

积分

中级会员

Rank: 3Rank: 3

积分
346
金钱
235
HASS币
10
发表于 2022-10-28 22:34:48 | 显示全部楼层
感谢,学习了
回复

使用道具 举报

0

主题

124

帖子

932

积分

高级会员

Rank: 4

积分
932
金钱
808
HASS币
0
发表于 2023-3-5 20:14:57 | 显示全部楼层
谢谢分享,学习了
回复

使用道具 举报

2

主题

69

帖子

563

积分

高级会员

Rank: 4

积分
563
金钱
494
HASS币
0
发表于 2023-3-12 18:56:25 | 显示全部楼层
谢谢大佬分享感觉很适合我这样的小白
回复

使用道具 举报

1

主题

26

帖子

100

积分

注册会员

Rank: 2

积分
100
金钱
74
HASS币
0
发表于 2023-6-19 12:08:58 | 显示全部楼层
可以盘下
回复

使用道具 举报

0

主题

11

帖子

71

积分

注册会员

Rank: 2

积分
71
金钱
60
HASS币
0
发表于 2024-3-23 14:25:57 | 显示全部楼层
谢谢指导
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 17:18 , Processed in 0.383868 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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