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

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

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

  [复制链接]

0

主题

27

帖子

306

积分

中级会员

Rank: 3Rank: 3

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

布谷风扇需要帮测试吗
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-7-22 23:44:26 | 显示全部楼层
用的是树莓派3B+ 硬件,软件N大神的HASSIO 安装一键脚本
安装了您的hacs插件后,晕着再树莓派ssh 直接输入了你的命令pip3 install msmart
pi@raspberrypi:~ $ pip3 install msmart
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting msmart
  Downloading https://files.pythonhosted.org/packages/3d/d8/207778784f551d85ccf08392e569eb4aa5da0dbf8a8c977663256204ba07/msmart-0.1.20-py3-none-any.whl
Collecting pycryptodome (from msmart)
  Downloading https://www.piwheels.org/simple/pycryptodome/pycryptodome-3.9.8-cp37-cp37m-linux_armv7l.whl (13.7MB)
    100% |████████████████████████████████| 13.7MB 6.8kB/s
Installing collected packages: pycryptodome, msmart
  The script midea-discover is installed in '/home/pi/.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
后  输入
midea-discover报错-bash: The: command not found
然后 以为是没有pip3  
然后就照这个
树莓派安装pip3以及扩展包的方法稀里糊涂的安装并且升级了一下pip3

pi@raspberrypi:/usr/local/src/pip-8.0.2 $ sudo pip3 install --upgrade pip -i http://pypi.douban.com/simple/
The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.
Collecting pip
  The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.
  Downloading https://www.piwheels.org/simple/pip/pip-20.1.1-py2.py3-none-any.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 18kB/s
Installing collected packages: pip
  Found existing installation: pip 8.0.2
    Uninstalling pip-8.0.2:
      Successfully uninstalled pip-8.0.2
Successfully installed pip-20.1.1
pi@raspberrypi:/usr/local/src/pip-8.0.2 $ pip3 --version
-bash: /usr/bin/pip3: No such file or directory
版本也没查到,运行你的命令还是报错,
pi@raspberrypi:~ $ midea-discover
-bash: midea-discover: command not found
就这样,我的是美的的I青春WCBD 系列,就是不能安装美居app,并且报错,只能用阿里晕的app的系列,设计的不过大脑的美的空调遥控器,倒计时需要设置3分钟的遥控器, 还有我根本不懂什么是pip3,都是闲暇之余的下完,@zhou能需要我怎么配合,尽管吩咐!







回复

使用道具 举报

1

主题

30

帖子

2288

积分

金牌会员

Rank: 6Rank: 6

积分
2288
金钱
2258
HASS币
0
发表于 2020-7-23 13:34:56 | 显示全部楼层
wktm 发表于 2020-7-22 23:44
用的是树莓派3B+ 硬件,软件N大神的HASSIO 安装一键脚本
安装了您的hacs插件后,晕着再树莓派ssh 直接输入 ...

你的第一段代码里面有个报错,The script midea-discover is installed in '/home/pi/.local/bin' which is not on PATH. 你可以直接去 /home/pi/.local/bin 下面执行 ./midea-discover -d ,或者把 /home/pi/.local/bin 添加到 PATH  环境变量里面一劳永逸

pip3 是指 python 3 的 pip,如果你只安装了 python3,那么直接用 pip 命令就可以了
回复

使用道具 举报

6

主题

165

帖子

2034

积分

金牌会员

Rank: 6Rank: 6

积分
2034
金钱
1869
HASS币
20
发表于 2020-7-23 14:08:04 | 显示全部楼层
非空调的设备,抓哪些包可以接入?希望可以出个类似于miio_raw的模式
回复

使用道具 举报

1

主题

26

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
205
HASS币
0
发表于 2020-7-23 15:58:52 | 显示全部楼层
root@gp-VirtualBox:/home/gp# midea-discover
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cliiscovering devices with UDP Broadcast, press CTRL-C to quit...
INFO:msmart.cli:Midea Local Data 192.168.1.102 837000b8200f04305a5a0111a8007a8000000000000000000000000087310000001300000000000000000000000000003a84d65e65ecbab8aced481dd3a51e201448d12b8218ad02a295acc72da3e2652ac5cabea2f058593f593603a4e255864d46283d4b2e0c9e2dcb944c91b14a8781d6e799fc77387c5440ef04fd2959944f96c52b4be647bea77b6f3b357843b306c416020931f48926620dfe95e231114002651063cc8373bbc07bba6db44beb600c966db378349e4848f4907c5d8cd2
INFO:msmart.lan:Couldn't connect with Device 192.168.1.102:6444
回复

使用道具 举报

1

主题

26

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
205
HASS币
0
发表于 2020-7-23 16:04:14 | 显示全部楼层
找到了设备,但是连不上,ID是14位的208907209XXXXX,请大神帮助
root@gp-VirtualBox:/home/gp# midea-discover
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
INFO:msmart.cli:Midea Local Data 192.168.1.102 837000b8200f04305a5a0111a8007a8000000000000000000000000087310000001300000000000000000000000000003a84d65e65ecbab8aced481dd3a51e201448d12b8218ad02a295acc72da3e2652ac5cabea2f058593f593603a4e255864d46283d4b2e0c9e2dcb944c91b14a8781d6e799fc77387c5440ef04fd2959944f96c52b4be647bea77b6f3b357843b306c416020931f48926620dfe95e231114002651063cc8373bbc07bba6db44beb600c966db378349e4848f4907c5d8cd2
INFO:msmart.lan:Couldn't connect with Device 192.168.1.102:6444
INFO:msmart.cli:*** Found a unsupported '0xac' at 192.168.1.102 - id: 208907209XXXXX - sn: 31122011737872XXXXXXXX0000 - ssid: midea_ac_0512
回复

使用道具 举报

1

主题

30

帖子

2288

积分

金牌会员

Rank: 6Rank: 6

积分
2288
金钱
2258
HASS币
0
发表于 2020-7-23 17:39:31 | 显示全部楼层
gpsunboy 发表于 2020-7-23 16:04
找到了设备,但是连不上,ID是14位的208907209XXXXX,请大神帮助

8370 开头的数据的目前还不支持
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-7-23 18:45:31 | 显示全部楼层
zhangnew 发表于 2020-7-23 13:34
你的第一段代码里面有个报错,The script midea-discover is installed in '/home/pi/.local/bin' which  ...

感谢指点
现在这样输入秒退 ,因为这个
Mopidy-Iris requires Python '>=3.7' but the running Python is 2.7.16
我乱着安装了  Python3.7 和2.7.16
现在运行的是这样,该怎么改进呀

pi@raspberrypi:~ $ midea-discover
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...



回复

使用道具 举报

1

主题

30

帖子

2288

积分

金牌会员

Rank: 6Rank: 6

积分
2288
金钱
2258
HASS币
0
发表于 2020-7-23 22:38:39 | 显示全部楼层
wktm 发表于 2020-7-23 18:45
感谢指点
现在这样输入秒退 ,因为这个
我乱着安装了  Python3.7 和2.7.16

现在这样输入秒退 ,哪样输入?

下面的输出看起来没问题,你看楼上的输出,有设备的话应该就能发现,你这个后面没有输出了吗
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-7-24 04:50:03 | 显示全部楼层
本帖最后由 wktm 于 2020-7-24 05:45 编辑
zhangnew 发表于 2020-7-23 22:38
现在这样输入秒退 ,哪样输入?

下面的输出看起来没问题,你看楼上的输出,有设备的话应该就能发现,你 ...

后面就没有输出了,明明四台都在线,被阿里云管着,是不是因为路由器的问题,我的是电磁炉的梅林AC68U ,是不是需要开启udp之类的端口服务啥的

用 ./midea-discover -d这个命令进入这个目录下之后运行/home/pi/.local/bin发现增加了个说明INFO:msmart.cliebug mode active,但还是无法搜索,很是奇怪
midea-discover -d这个-有没有别的命令啊,想试一遍
pi@raspberrypi:~/.local/bin $  midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
pi@raspberrypi:~/.local/bin $  ./midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
pi@raspberrypi:~/.local/bin $ ^C
pi@raspberrypi:~/.local/bin $  midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:msmart version: 0.1.20
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
pi@raspberrypi:~/.local/bin $


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-28 20:35 , Processed in 0.055041 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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