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

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

[基础教程] ESPHome刷机教程

  [复制链接]

0

主题

37

帖子

122

积分

注册会员

Rank: 2

积分
122
金钱
85
HASS币
0
发表于 2020-3-3 15:56:56 | 显示全部楼层
支持楼主
回复

使用道具 举报

1

主题

5

帖子

52

积分

注册会员

Rank: 2

积分
52
金钱
47
HASS币
0
发表于 2020-3-5 10:56:44 | 显示全部楼层
请教大佬这个问题
pi@raspberrypi:~ $ pip2 install tornado esptool
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: tornado in ./.local/lib/python2.7/site-packages (5.1.1)
Requirement already satisfied: esptool in ./.local/lib/python2.7/site-packages (2.7)
Requirement already satisfied: backports-abc>=0.4 in ./.local/lib/python2.7/site-packages (from tornado) (0.5)
Requirement already satisfied: singledispatch in ./.local/lib/python2.7/site-packages (from tornado) (3.4.0.3)
Requirement already satisfied: futures in ./.local/lib/python2.7/site-packages (from tornado) (3.3.0)
Requirement already satisfied: ecdsa in ./.local/lib/python2.7/site-packages (from esptool) (0.15)
Requirement already satisfied: pyaes in ./.local/lib/python2.7/site-packages (from esptool) (1.6.1)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python2.7/dist-packages (from esptool) (3.4)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from singledispatch->tornado) (1.12.0)
pi@raspberrypi:~ $ esphome config/ dashboard
WARNING You're using ESPHome with python 2. Support for python 2 is deprecated and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 or higher.
INFO Starting dashboard web server on port 6052 and configuration dir config/...
INFO 101 GET /ace (::1) 2.45ms
INFO Running command 'esphome --dashboard -q config/ vscode --ace'
INFO 304 GET / (::1) 101.07ms
INFO 101 GET /ace (::1) 4.21ms
INFO Running command 'esphome --dashboard -q config/ vscode --ace'
INFO 101 GET /upload (::1) 2.76ms
ERROR Uncaught exception GET /upload (::1)
HTTPServerRequest(protocol='http', host='localhost:6052', method='GET', uri='/upload', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
  File "/home/pi/.local/lib/python2.7/site-packages/tornado/websocket.py", line 546, in _run_callback
    result = callback(*args, **kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 127, in decorator
    return func(self, *args, **kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 199, in on_message
    handlers[type_](self, json_message)
  File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 206, in handle_spawn
    command = self.build_command(json_message)
  File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 272, in build_command
    config_file = settings.rel_path(json_message['configuration'])
  File "/home/pi/.local/lib/python2.7/site-packages/esphome/dashboard/dashboard.py", line 95, in rel_path
    return os.path.join(self.config_dir, *args)
  File "/usr/lib/python2.7/posixpath.py", line 68, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
回复

使用道具 举报

0

主题

4

帖子

37

积分

新手上路

Rank: 1

积分
37
金钱
33
HASS币
0
发表于 2020-3-5 11:14:33 | 显示全部楼层
看看 看看
回复

使用道具 举报

0

主题

76

帖子

406

积分

中级会员

Rank: 3Rank: 3

积分
406
金钱
330
HASS币
0
发表于 2020-3-5 11:50:38 | 显示全部楼层
学习一下
回复

使用道具 举报

15

主题

119

帖子

684

积分

高级会员

Rank: 4

积分
684
金钱
555
HASS币
50
发表于 2020-3-6 16:02:43 | 显示全部楼层
谢谢分享 准备实践一下
回复

使用道具 举报

3

主题

36

帖子

157

积分

注册会员

Rank: 2

积分
157
金钱
121
HASS币
0
发表于 2020-3-7 11:22:32 来自手机 | 显示全部楼层
学习学习
回复

使用道具 举报

1

主题

5

帖子

93

积分

注册会员

Rank: 2

积分
93
金钱
88
HASS币
0
发表于 2020-3-8 17:44:34 | 显示全部楼层
学习学习学习学习学习学习学习
回复

使用道具 举报

0

主题

69

帖子

342

积分

论坛积极会员

积分
342
金钱
273
HASS币
0
发表于 2020-3-9 02:53:37 | 显示全部楼层
学习一下。
回复

使用道具 举报

0

主题

51

帖子

473

积分

论坛积极会员

积分
473
金钱
422
HASS币
0
发表于 2020-3-9 08:32:59 | 显示全部楼层
最近想用esp加温湿度传感器测一下阳台的温度,先学习一下刷机。
回复

使用道具 举报

0

主题

51

帖子

473

积分

论坛积极会员

积分
473
金钱
422
HASS币
0
发表于 2020-3-9 08:34:35 | 显示全部楼层
最近想用esp加温湿度传感器测一下阳台的温度,先学习一下刷机。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-27 09:10 , Processed in 0.275767 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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