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

 找回密码
 立即注册
查看: 2416|回复: 6

[插件集成] 求助,格力云控2代 安装gree2集成,偶尔可以用,大部实体不可用

[复制链接]

1

主题

31

帖子

390

积分

中级会员

Rank: 3Rank: 3

积分
390
金钱
359
HASS币
0
发表于 2022-8-31 13:47:29 来自手机 | 显示全部楼层 |阅读模式
日志详细信息( ERROR )



此错误来自自定义集成。
Logger: root
Source: custom_components/gree2/climate.py:91
Integration: gree2 (documentation, issues)
First occurred: 13:02:26 (1 occurrences)
Last logged: 13:02:26

Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/config/custom_components/gree2/climate.py", line 187, in socket_listen
    jsonPack = ciperDecrypt(pack, self._key)
  File "/config/custom_components/gree2/climate.py", line 91, in ciperDecrypt
    decryptData = cipher.decrypt(decodeData).decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 0: invalid start byte
E59F52D4-A511-41F2-857B-596695FB60EB.png
回复

使用道具 举报

1

主题

31

帖子

390

积分

中级会员

Rank: 3Rank: 3

积分
390
金钱
359
HASS币
0
 楼主| 发表于 2022-8-31 16:07:11 来自手机 | 显示全部楼层
2022-08-31 08:01:22 INFO (MainThread) [custom_components.gree2.climate] Setting up Gree climate platform 2022-08-31 08:01:22 INFO (MainThread) [custom_components.gree2.climate] scan_broadcast 2022-08-31 08:01:22 INFO (MainThread) [custom_components.gree2.climate] socket send data {'t': 'scan'} to <broadcast> 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket received from ('192.168.1.227', 7000):{"t":"pack","i":1,"uid":0,"cid":"502cc675313c","tcid":"","pack":"LP24Ek0OaYogxs3iQLjL4AWzU2i4ENIwkYiddaA4KgVYT1PXPBDouOPiWHaG4G8lz22fUZtUbkblUYF5BzlKDV9xeQzMlsaP4RKBtrnsDrOe2cBtn7s6o1Rn8OOCl8AEqWiTgGkoXDxunmUMdG7sp/aOGxc0vwxgjIcGCxHsPhR4vb8j6xL0+yUWsGiZTrhdUgEZnR87H5dIVewkCjMlC6n+/sB6g39ps/bszRb9no2vwosJlmZ9sWYMTM53/iMO+ZcPlCXspSa9NNPta6RXwA=="} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] Server received pack {'t': 'dev', 'cid': '502cc675313c', 'bc': 'gree', 'brand': 'gree', 'catalog': 'gree', 'mac': '502cc675313c', 'mid': '60', 'model': 'gree', 'name': 'c675313c', 'series': 'gree', 'vender': '1', 'ver': 'V1.1.0.0', 'lock': 0, 'subCnt': 6} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send pack {'mac': '502cc675313c', 't': 'bind', 'uid': 0} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send data {'cid': 'app', 'i': 1, 't': 'pack', 'uid': 0, 'pack': 'm3biL9HZFEWrfFSmLuQRXIo6FgOpklpttimLDfJtnuqj9mrs/0p7GUTdWxmNaBUt', 'tcid': '502cc675313c'} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket received from ('192.168.1.227', 7000):{"t":"pack","i":1,"uid":0,"cid":"502cc675313c","tcid":"","pack":"LP24Ek0OaYogxs3iQLjL4AWzU2i4ENIwkYiddaA4KgVYT1PXPBDouOPiWHaG4G8lz22fUZtUbkblUYF5BzlKDV9xeQzMlsaP4RKBtrnsDrOe2cBtn7s6o1Rn8OOCl8AEqWiTgGkoXDxunmUMdG7sp/aOGxc0vwxgjIcGCxHsPhR4vb8j6xL0+yUWsGiZTrhdUgEZnR87H5dIVewkCjMlC6n+/sB6g39ps/bszRb9no2vwosJlmZ9sWYMTM53/iMO+ZcPlCXspSa9NNPta6RXwA=="} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] Server received pack {'t': 'dev', 'cid': '502cc675313c', 'bc': 'gree', 'brand': 'gree', 'catalog': 'gree', 'mac': '502cc675313c', 'mid': '60', 'model': 'gree', 'name': 'c675313c', 'series': 'gree', 'vender': '1', 'ver': 'V1.1.0.0', 'lock': 0, 'subCnt': 6} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send pack {'mac': '502cc675313c', 't': 'bind', 'uid': 0} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send data {'cid': 'app', 'i': 1, 't': 'pack', 'uid': 0, 'pack': 'm3biL9HZFEWrfFSmLuQRXIo6FgOpklpttimLDfJtnuqj9mrs/0p7GUTdWxmNaBUt', 'tcid': '502cc675313c'} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket received from ('192.168.1.227', 7000):{"t":"pack","i":1,"uid":0,"cid":"502cc675313c","tcid":"app","pack":"MWQd8NecdFWZIS8jB7ovXbvu6VuXUIA6ZAb22x5zE+4KVOTRpcSpUKzRacLQb8j3KaKIz4l1yYRDvV/1jOnSFIzD1k6jjxiwE2rMrTg7Xnk="} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] Server received pack {'t': 'bindOk', 'mac': '502cc675313c', 'key': '4Bc7Ef0Hi3Kl6No9', 'r': 200} 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send pack {'t': 'subDev', 'mac': '502cc675313c', 'i': 0} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket send data {'cid': 'app', 'i': 0, 't': 'pack', 'uid': 0, 'pack': 'zU3YdPljFNXWJezSCAYJimnYqxJM4V/SjsjNKfvPQQK+z1GRqIvfVPKt0z2YnSwr', 'tcid': '502cc675313c'} to 192.168.1.227 2022-08-31 08:01:22 INFO (Thread-3) [custom_components.gree2.climate] socket received from ('192.168.1.227', 7000):{"t":"pack","i":1,"uid":0,"cid":"502cc675313c","tcid":"app","pack":"MWQd8NecdFWZIS8jB7ovXbvu6VuXUIA6ZAb22x5zE+4KVOTRpcSpUKzRacLQb8j3KaKIz4l1yYRDvV/1jOnSFIzD1k6jjxiwE2rMrTg7Xnk="} 2022-08-31 08:01:22 ERROR (Thread-3) [root] Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner self.run() File "/usr/local/lib/python3.9/threading.py", line 910, in run self._target(*self._args, **self._kwargs) File "/config/custom_components/gree2/climate.py", line 187, in socket_listen jsonPack = ciperDecrypt(pack, self._key) File "/config/custom_components/gree2/climate.py", line 91, in ciperDecrypt decryptData = cipher.decrypt(decodeData).decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 0: invalid start byte
回复

使用道具 举报

1

主题

31

帖子

390

积分

中级会员

Rank: 3Rank: 3

积分
390
金钱
359
HASS币
0
 楼主| 发表于 2022-8-31 18:47:22 来自手机 | 显示全部楼层
解决了,原来只有一台云控也要填   climate:   - platform: gree2     host: 192.168.1.100     scan_interval: 20
回复

使用道具 举报

1

主题

31

帖子

390

积分

中级会员

Rank: 3Rank: 3

积分
390
金钱
359
HASS币
0
 楼主| 发表于 2022-8-31 18:48:39 来自手机 | 显示全部楼层
原来IP地址没填,一直实体不可用
回复

使用道具 举报

62

主题

603

帖子

6390

积分

论坛元老

Rank: 8Rank: 8

积分
6390
金钱
5712
HASS币
240

教程狂人论坛风云人物

发表于 2022-8-31 21:18:33 | 显示全部楼层
搞定了是吧?
尝试过萝卜,我想你一定会忘记青瓜
回复

使用道具 举报

1

主题

31

帖子

390

积分

中级会员

Rank: 3Rank: 3

积分
390
金钱
359
HASS币
0
 楼主| 发表于 2022-9-1 12:52:51 来自手机 | 显示全部楼层
antsunzj 发表于 2022-8-31 21:18
搞定了是吧?

是的,填上IP就可以了,开始以为是版本问题或网络兼容问题,白忙了两三天
回复

使用道具 举报

8

主题

86

帖子

443

积分

中级会员

Rank: 3Rank: 3

积分
443
金钱
357
HASS币
0
发表于 2022-10-2 23:34:50 来自手机 | 显示全部楼层
pdcpgf 发表于 2022-9-1 12:52
是的,填上IP就可以了,开始以为是版本问题或网络兼容问题,白忙了两三天 ...

你是什么版本呢,我现在这边也出现不可用,突然就出现了,也没做任何变动
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-29 01:55 , Processed in 0.065574 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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