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

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

[进阶教程] esp8266 拯救了我的美的空调

  [复制链接]

59

主题

674

帖子

4299

积分

论坛元老

Rank: 8Rank: 8

积分
4299
金钱
3620
HASS币
20
 楼主| 发表于 2021-3-9 18:51:41 | 显示全部楼层
zxlch 发表于 2021-3-9 17:44
淘宝有旧模块,就是V2的,买回来直接换就行了,配网以后HA里面的ID都不会变 ...

我就是v2的  之前看看淘宝30-50都有 后来没搞了
回复

使用道具 举报

20

主题

250

帖子

1437

积分

论坛DIY达人

积分
1437
金钱
1182
HASS币
40
发表于 2021-3-9 18:59:23 | 显示全部楼层
gmshiwoge 发表于 2021-3-9 18:51
我就是v2的  之前看看淘宝30-50都有 后来没搞了

我是V3,买了个V2换上去,所以没弄协议了
回复

使用道具 举报

106

主题

551

帖子

2789

积分

金牌会员

Rank: 6Rank: 6

积分
2789
金钱
2238
HASS币
20
发表于 2021-3-9 23:36:25 | 显示全部楼层
zxlch 发表于 2021-3-5 14:59
我之前尝试过在没有WIFI模块的空调上直接用TTL口控制空调,已经成功读取了空调的所有状态,但是不知道控制 ...

兄弟,求私信个淘宝链接,搜了下没找到
回复

使用道具 举报

9

主题

382

帖子

3702

积分

论坛元老

Rank: 8Rank: 8

积分
3702
金钱
3320
HASS币
0
发表于 2021-4-15 11:10:47 | 显示全部楼层
zxlch 发表于 2021-3-9 17:44
淘宝有旧模块,就是V2的,买回来直接换就行了,配网以后HA里面的ID都不会变 ...

怎么分辨买到的模块是V2协议的呢?
回复

使用道具 举报

40

主题

2176

帖子

8292

积分

元老级技术达人

积分
8292
金钱
6101
HASS币
110
发表于 2021-4-15 22:58:56 | 显示全部楼层
gmshiwoge 发表于 2021-3-8 12:21
唉 拆一个esp8266出来 刷mideaac-esphome接入挂机成功了  目前两个台美的空调。上面截图有标记好接线
放一 ...

这个固件烧录了没有ap出来  而且我win下编译不过...
component midea_ac cannot be loaded via YAML
回复

使用道具 举报

40

主题

2176

帖子

8292

积分

元老级技术达人

积分
8292
金钱
6101
HASS币
110
发表于 2021-4-16 00:27:10 | 显示全部楼层
https://community.home-assistant.io/t/support-for-midea-a-c
帖子看了个遍,也有和我一样问题的 我是win10 win7下都不行  docker安装dev版本不行(这个分支已经合并到dev)
然而我没有hass addon  怎么运行这个分支版本搞了一下午+一晚上
回复

使用道具 举报

20

主题

250

帖子

1437

积分

论坛DIY达人

积分
1437
金钱
1182
HASS币
40
发表于 2021-4-16 00:33:07 | 显示全部楼层
zhizhi1991 发表于 2021-4-15 11:10
怎么分辨买到的模块是V2协议的呢?

不好分辨,V2和V3硬件一样的
回复

使用道具 举报

40

主题

2176

帖子

8292

积分

元老级技术达人

积分
8292
金钱
6101
HASS币
110
发表于 2021-4-16 09:24:32 | 显示全部楼层
grams\python\python38\lib\site-packages (from platformio==5.1.0->esphome) (1.0.0
)
Requirement already satisfied: pyaes in c:\users\dell\appdata\local\programs\pyt
hon\python38\lib\site-packages (from esptool==2.8->esphome) (1.6.1)
Requirement already satisfied: ecdsa in c:\users\dell\appdata\local\programs\pyt
hon\python38\lib\site-packages (from esptool==2.8->esphome) (0.16.1)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\dell\appdata\local
\programs\python\python38\lib\site-packages (from requests==2.*->platformio==5.1
.0->esphome) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\dell\appdata\local\
programs\python\python38\lib\site-packages (from requests==2.*->platformio==5.1.
0->esphome) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in c:\users\dell\appdata\local\progr
ams\python\python38\lib\site-packages (from requests==2.*->platformio==5.1.0->es
phome) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\dell\appdata\lo
cal\programs\python\python38\lib\site-packages (from requests==2.*->platformio==
5.1.0->esphome) (1.26.4)
Requirement already satisfied: h11>=0.8 in c:\users\dell\appdata\local\programs\
python\python38\lib\site-packages (from uvicorn==0.13.*->platformio==5.1.0->esph
ome) (0.12.0)
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\dell\appdata\local\programs\pyth
on\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\dell\Desktop\esphome>pip install esphomeflasher
Requirement already satisfied: esphomeflasher in c:\users\dell\appdata\local\pro
grams\python\python38\lib\site-packages (1.3.0)
Requirement already satisfied: wxpython<5.0,>=4.0 in c:\users\dell\appdata\local
\programs\python\python38\lib\site-packages (from esphomeflasher) (4.1.1)
Requirement already satisfied: requests<3,>=2.24.0 in c:\users\dell\appdata\loca
l\programs\python\python38\lib\site-packages (from esphomeflasher) (2.25.1)
Requirement already satisfied: esptool==2.8 in c:\users\dell\appdata\local\progr
ams\python\python38\lib\site-packages (from esphomeflasher) (2.8)
Requirement already satisfied: six in c:\users\dell\appdata\local\programs\pytho
n\python38\lib\site-packages (from wxpython<5.0,>=4.0->esphomeflasher) (1.15.0)
Requirement already satisfied: numpy; python_version >= "3.0" in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from wxpython<5.0,>=4.0
->esphomeflasher) (1.20.2)
Requirement already satisfied: pillow in c:\users\dell\appdata\local\programs\py
thon\python38\lib\site-packages (from wxpython<5.0,>=4.0->esphomeflasher) (8.2.0
)
Requirement already satisfied: idna<3,>=2.5 in c:\users\dell\appdata\local\progr
ams\python\python38\lib\site-packages (from requests<3,>=2.24.0->esphomeflasher)
 (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\dell\appdata\lo
cal\programs\python\python38\lib\site-packages (from requests<3,>=2.24.0->esphom
eflasher) (1.26.4)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\dell\appdata\local\
programs\python\python38\lib\site-packages (from requests<3,>=2.24.0->esphomefla
sher) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\dell\appdata\local
\programs\python\python38\lib\site-packages (from requests<3,>=2.24.0->esphomefl
asher) (2020.12.5)
Requirement already satisfied: pyserial>=3.0 in c:\users\dell\appdata\local\prog
rams\python\python38\lib\site-packages (from esptool==2.8->esphomeflasher) (3.5)

Requirement already satisfied: pyaes in c:\users\dell\appdata\local\programs\pyt
hon\python38\lib\site-packages (from esptool==2.8->esphomeflasher) (1.6.1)
Requirement already satisfied: ecdsa in c:\users\dell\appdata\local\programs\pyt
hon\python38\lib\site-packages (from esptool==2.8->esphomeflasher) (0.16.1)
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\dell\appdata\local\programs\pyth
on\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\dell\Desktop\esphome>pip install --upgrade git+https://github.com/dudan
ov/esphome.git@midea-climate-support
Collecting git+https://github.com/dudanov/esphome.git@midea-climate-support
  Cloning https://github.com/dudanov/esphome.git (to revision midea-climate-supp
ort) to c:\users\public\documents\wondershare\creatortemp\pip-req-build-zf50gviy

ERROR: Command errored out with exit status 128: git clone -q https://github.com
/dudanov/esphome.git 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-req-
build-zf50gviy' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\dell\appdata\local\programs\pyth
on\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\dell\Desktop\esphome>
C:\Users\dell\Desktop\esphome>
C:\Users\dell\Desktop\esphome>pip install --upgrade git+https://github.com/dudan
ov/esphome.git@midea-climate-support
Collecting git+https://github.com/dudanov/esphome.git@midea-climate-support
  Cloning https://github.com/dudanov/esphome.git (to revision midea-climate-supp
ort) to c:\users\public\documents\wondershare\creatortemp\pip-req-build-s4hdjnpv

ERROR: Command errored out with exit status 128: git clone -q https://github.com
/dudanov/esphome.git 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-req-
build-s4hdjnpv' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\dell\appdata\local\programs\pyth
on\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\dell\Desktop\esphome>pip install --upgrade git+https://github.com/dudan
ov/esphome.git@midea-climate-support
Collecting git+https://github.com/dudanov/esphome.git@midea-climate-support
  Cloning https://github.com/dudanov/esphome.git (to revision midea-climate-supp
ort) to c:\users\public\documents\wondershare\creatortemp\pip-req-build-tyk7q2dv

  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied, skipping upgrade: pytz==2021.1 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.de
v0) (2021.1)
Requirement already satisfied, skipping upgrade: pyserial==3.5 in c:\users\dell\
appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.d
ev0) (3.5)
Requirement already satisfied, skipping upgrade: tornado==6.1 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.de
v0) (6.1)
Requirement already satisfied, skipping upgrade: esptool==2.8 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.de
v0) (2.8)
Requirement already satisfied, skipping upgrade: colorama==0.4.4 in c:\users\del
l\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0
.dev0) (0.4.4)
Requirement already satisfied, skipping upgrade: tzlocal==2.1 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.de
v0) (2.1)
Requirement already satisfied, skipping upgrade: platformio==5.1.0 in c:\users\d
ell\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17
.0.dev0) (5.1.0)
Requirement already satisfied, skipping upgrade: voluptuous==0.12.1 in c:\users\
dell\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.1
7.0.dev0) (0.12.1)
Requirement already satisfied, skipping upgrade: protobuf==3.13.0 in c:\users\de
ll\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.
0.dev0) (3.13.0)
Requirement already satisfied, skipping upgrade: ifaddr==0.1.7 in c:\users\dell\
appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.d
ev0) (0.1.7)
Requirement already satisfied, skipping upgrade: click==7.1.2 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.de
v0) (7.1.2)
Requirement already satisfied, skipping upgrade: PyYAML==5.3.1 in c:\users\dell\
appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0.d
ev0) (5.3.1)
Requirement already satisfied, skipping upgrade: colorlog==4.7.2 in c:\users\del
l\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.0
.dev0) (4.7.2)
Requirement already satisfied, skipping upgrade: paho-mqtt==1.5.1 in c:\users\de
ll\appdata\local\programs\python\python38\lib\site-packages (from esphome==1.17.
0.dev0) (1.5.1)
Requirement already satisfied, skipping upgrade: pyaes in c:\users\dell\appdata\
local\programs\python\python38\lib\site-packages (from esptool==2.8->esphome==1.
17.0.dev0) (1.6.1)
Requirement already satisfied, skipping upgrade: ecdsa in c:\users\dell\appdata\
local\programs\python\python38\lib\site-packages (from esptool==2.8->esphome==1.
17.0.dev0) (0.16.1)
Requirement already satisfied, skipping upgrade: bottle==0.12.* in c:\users\dell
\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1.
0->esphome==1.17.0.dev0) (0.12.19)
Requirement already satisfied, skipping upgrade: marshmallow<4,>=2 in c:\users\d
ell\appdata\local\programs\python\python38\lib\site-packages (from platformio==5
.1.0->esphome==1.17.0.dev0) (3.11.1)
Requirement already satisfied, skipping upgrade: pyelftools<1,>=0.27 in c:\users
\dell\appdata\local\programs\python\python38\lib\site-packages (from platformio=
=5.1.0->esphome==1.17.0.dev0) (0.27)
Requirement already satisfied, skipping upgrade: requests==2.* in c:\users\dell\
appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1.0
->esphome==1.17.0.dev0) (2.25.1)
Requirement already satisfied, skipping upgrade: semantic_version==2.8.* in c:\u
sers\dell\appdata\local\programs\python\python38\lib\site-packages (from platfor
mio==5.1.0->esphome==1.17.0.dev0) (2.8.5)
Requirement already satisfied, skipping upgrade: tabulate==0.8.* in c:\users\del
l\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1
.0->esphome==1.17.0.dev0) (0.8.9)
Requirement already satisfied, skipping upgrade: zeroconf==0.28.* in c:\users\de
ll\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.
1.0->esphome==1.17.0.dev0) (0.28.8)
Requirement already satisfied, skipping upgrade: aiofiles==0.6.* in c:\users\del
l\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1
.0->esphome==1.17.0.dev0) (0.6.0)
Requirement already satisfied, skipping upgrade: json-rpc==1.13.* in c:\users\de
ll\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.
1.0->esphome==1.17.0.dev0) (1.13.0)
Requirement already satisfied, skipping upgrade: starlette==0.14.* in c:\users\d
ell\appdata\local\programs\python\python38\lib\site-packages (from platformio==5
.1.0->esphome==1.17.0.dev0) (0.14.2)
Requirement already satisfied, skipping upgrade: uvicorn==0.13.* in c:\users\del
l\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1
.0->esphome==1.17.0.dev0) (0.13.4)
Requirement already satisfied, skipping upgrade: wsproto==1.0.* in c:\users\dell
\appdata\local\programs\python\python38\lib\site-packages (from platformio==5.1.
0->esphome==1.17.0.dev0) (1.0.0)
Requirement already satisfied, skipping upgrade: setuptools in c:\users\dell\app
data\local\programs\python\python38\lib\site-packages (from protobuf==3.13.0->es
phome==1.17.0.dev0) (49.2.1)
Requirement already satisfied, skipping upgrade: six>=1.9 in c:\users\dell\appda
ta\local\programs\python\python38\lib\site-packages (from protobuf==3.13.0->esph
ome==1.17.0.dev0) (1.15.0)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\users\
dell\appdata\local\programs\python\python38\lib\site-packages (from requests==2.
*->platformio==5.1.0->esphome==1.17.0.dev0) (2020.12.5)
Requirement already satisfied, skipping upgrade: chardet<5,>=3.0.2 in c:\users\d
ell\appdata\local\programs\python\python38\lib\site-packages (from requests==2.*
->platformio==5.1.0->esphome==1.17.0.dev0) (4.0.0)
Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in c:\use
rs\dell\appdata\local\programs\python\python38\lib\site-packages (from requests=
=2.*->platformio==5.1.0->esphome==1.17.0.dev0) (1.26.4)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\users\dell\a
ppdata\local\programs\python\python38\lib\site-packages (from requests==2.*->pla
tformio==5.1.0->esphome==1.17.0.dev0) (2.10)
Requirement already satisfied, skipping upgrade: h11>=0.8 in c:\users\dell\appda
ta\local\programs\python\python38\lib\site-packages (from uvicorn==0.13.*->platf
ormio==5.1.0->esphome==1.17.0.dev0) (0.12.0)
Building wheels for collected packages: esphome
  Building wheel for esphome (PEP 517) ... done
  Created wheel for esphome: filename=esphome-1.17.0.dev0-py2.py3-none-any.whl s
ize=1801562 sha256=93cac8cb8a47b3bd493bae7500e10bb673117f7d166937b4cb8046733794c
9bd
  Stored in directory: C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-eph
em-wheel-cache-bt1e_3x8\wheels\2d\9d\8d\ba4c5efc0d81c04b301b6e3490b652051f3b6c6f
04a094055e
Successfully built esphome
Installing collected packages: esphome
  Attempting uninstall: esphome
    Found existing installation: esphome 1.17.0.dev0
    Uninstalling esphome-1.17.0.dev0:
      Successfully uninstalled esphome-1.17.0.dev0
Successfully installed esphome-1.17.0.dev0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\dell\appdata\local\programs\pyth
on\python38\python.exe -m pip install --upgrade pip' command.

C:\Users\dell\Desktop\esphome>
C:\Users\dell\Desktop\esphome>
C:\Users\dell\Desktop\esphome>
C:\Users\dell\Desktop\esphome>esphome mideahvac.yaml compile
INFO Reading configuration mideahvac.yaml...
Failed config

midea_ac: [source mideahvac.yaml:35]

  Component midea_ac cannot be loaded via YAML (no CONFIG_SCHEMA).
  name: Midea AC
  beeper: True

C:\Users\dell\Desktop\esphome>
这是我的输出,环境win7  python-3.8.9-amd64  Git-2.31.1-64-bit
上面pip install esphome这句的输出被抵冲掉了

第一次执行这3句  第三句执行了2次成功但是编译失败
后来我再尝试  第三句经常执行失败(上面输出里有体现,我这边git访问确实时好时坏),第一第二句提示已经安装好了(上面输出体现)
回家我用win10  一样的
docker不知道怎么部署这个分支,也是无法编译
回复

使用道具 举报

40

主题

2176

帖子

8292

积分

元老级技术达人

积分
8292
金钱
6101
HASS币
110
发表于 2021-4-16 10:15:17 | 显示全部楼层
我好像搞不了了,看了下你们的拆机图,我这个华凌的 wifi模块  单片机  显示屏都在一个板子上,wifi模块到单片机是板间连线
虽然这个板子对外是有一个4pin插头,其中有5V GND  但是另外两根线作用未知....
回复

使用道具 举报

1

主题

45

帖子

767

积分

高级会员

Rank: 4

积分
767
金钱
722
HASS币
0
发表于 2021-4-16 10:53:59 | 显示全部楼层
ghostist 发表于 2021-4-16 10:15
我好像搞不了了,看了下你们的拆机图,我这个华凌的 wifi模块  单片机  显示屏都在一个板子上,wifi模块到 ...

有图片吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 04:33 , Processed in 0.119055 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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