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

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

[插件集成] 美的空调-局域网协议控制[新协议已支持]

  [复制链接]

5

主题

122

帖子

1041

积分

论坛技术达人

积分
1041
金钱
914
HASS币
40
 楼主| 发表于 2020-6-29 11:33:12 | 显示全部楼层
guanine 发表于 2020-6-28 23:51
5台美的空调,也是找了很久控制办法。
多谢mac_zhou的努力研究,虽然我这边还没接入成功

先安装msmart 然后运行 midea-discover 看看是否支持
pip3 install msmart
midea-discover -d
回复

使用道具 举报

2

主题

124

帖子

1066

积分

金牌会员

Rank: 6Rank: 6

积分
1066
金钱
942
HASS币
0
发表于 2020-6-29 13:29:34 | 显示全部楼层
666感谢分享!!家里全是美的空调
回复

使用道具 举报

4

主题

37

帖子

418

积分

论坛积极会员

积分
418
金钱
381
HASS币
0
发表于 2020-7-7 00:19:34 | 显示全部楼层
是不支持么?
多台美的智弧和极酷,TCP6444可以连接

[root@localhost ~]# midea-discover
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cliiscovering devices with UDP Broadcast, press CTRL-C to quit...
[root@localhost ~]# midea-discover -d
INFO:msmart.cliebug mode active
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cliiscovering devices with UDP Broadcast, press CTRL-C to quit...
[root@localhost ~]#
[root@localhost ~]# nc -t 192.168.1.205 6444
[root@localhost ~]# nc -t -z 192.168.1.205 6444
Connection to 192.168.1.205 6444 port [tcp/sge_qmaster] succeeded!
回复

使用道具 举报

5

主题

122

帖子

1041

积分

论坛技术达人

积分
1041
金钱
914
HASS币
40
 楼主| 发表于 2020-7-7 09:41:44 | 显示全部楼层
guanine 发表于 2020-7-7 00:19
是不支持么?
多台美的智弧和极酷,TCP6444可以连接

你这是在哪里运行midea-discover的呀 需要在局域网内的机器 不要在docker之类中运行 需要有局域网的ip
回复

使用道具 举报

4

主题

37

帖子

418

积分

论坛积极会员

积分
418
金钱
381
HASS币
0
发表于 2020-7-7 19:22:43 | 显示全部楼层
脚本和空调同处于一个lan下,192.168.0.0/22
回复

使用道具 举报

0

主题

75

帖子

705

积分

高级会员

Rank: 4

积分
705
金钱
630
HASS币
0
发表于 2020-7-8 01:01:57 来自手机 | 显示全部楼层
虽然我的极光先锋不支持   不过真的好期待  支持大牛
回复

使用道具 举报

5

主题

122

帖子

1041

积分

论坛技术达人

积分
1041
金钱
914
HASS币
40
 楼主| 发表于 2020-7-13 16:53:26 | 显示全部楼层
之前未成功的人 请跟我联系一下 新协议有一些进程 需要你协助测试
回复

使用道具 举报

16

主题

217

帖子

2204

积分

论坛技术达人

积分
2204
金钱
1952
HASS币
140
发表于 2020-7-13 18:25:45 | 显示全部楼层
PS C:\Users\zhang> pip3 install msmart
Collecting msmart
  Downloading https://files.pythonhosted.org/packages/3d/d8/207778784f551d85ccf08392e569eb4aa5da0dbf8a8c977663256204ba07/msmart-0.1.20-py3-none-any.whl
/pycryptodome-3.9.8-cp37-cp37m-win_amd64.whl (14.1MB)
     |████████████████████████████████| 14.1MB 6.4MB/s
Installing collected packages: pycryptodome, msmart
  WARNING: The script midea-discover.exe is installed in 'C:\Users\zhang\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed msmart-0.1.20 pycryptodome-3.9.8
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
PS C:\Users\zhang> midea-disvover
midea-disvover : 无法将“midea-disvover”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括
路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ midea-disvover
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (midea-disvover:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


回复

使用道具 举报

16

主题

217

帖子

2204

积分

论坛技术达人

积分
2204
金钱
1952
HASS币
140
发表于 2020-7-13 18:33:21 | 显示全部楼层
fineemb@zhang:/mnt/c/Users/zhang$ pip3 install msmart
Collecting msmart
  Downloading msmart-0.1.20-py3-none-any.whl (14 kB)
Collecting pycryptodome
  Downloading pycryptodome-3.9.8-cp38-cp38-manylinux1_x86_64.whl (13.7 MB)
     |████████████████████████████████| 13.7 MB 30.2 MB/s
Installing collected packages: pycryptodome, msmart
  WARNING: The script midea-discover is installed in '/home/fineemb/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed msmart-0.1.20 pycryptodome-3.9.8
fineemb@zhang:/mnt/c/Users/zhang$ midea-discover
midea-discover: command not found
fineemb@zhang:/mnt/c/Users/zhang$ midea-discover
midea-discover: command not found
fineemb@zhang:/mnt/c/Users/zhang$
回复

使用道具 举报

35

主题

153

帖子

1078

积分

金牌会员

Rank: 6Rank: 6

积分
1078
金钱
925
HASS币
10
发表于 2020-7-13 19:15:53 | 显示全部楼层
mac_zhou 发表于 2020-7-13 16:53
之前未成功的人 请跟我联系一下 新协议有一些进程 需要你协助测试

需要华菱的么?期待中~~~
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-28 13:53 , Processed in 0.059225 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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