- 积分
- 660
- 金钱
- 538
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 660
- 金钱
- 538
- HASS币
- 0
|
发表于 2022-10-22 20:38:53
|
显示全部楼层
2022-10-22 12:34:55.131 ERROR (MainThread) [homeassistant.components.climate] Error while setting up gree platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/asyncio/coroutines.py", line 124, in coro
res = func(*args, **kw)
File "/config/custom_components/gree/climate.py", line 116, in async_setup_platform
GreeClimate(hass, name, ip_addr, port, mac_addr, timeout, target_temp_step, temp_sensor_entity_id, lights_entity_id, xfan_entity_id, health_entity_id, powersave_entity_id, sleep_entity_id, eightdegheat_entity_id, air_entity_id, hvac_modes, fan_modes, swing_modes, encryption_key, uid)
File "/config/custom_components/gree/climate.py", line 163, in __init__
self._encryption_key = self.GetDeviceKey().encode("utf8")
File "/config/custom_components/gree/climate.py", line 247, in GetDeviceKey
return self.FetchResult(cipher, self._ip_addr, self._port, self._timeout, jsonPayloadToSend)['key']
File "/config/custom_components/gree/climate.py", line 230, in FetchResult
data, addr = clientSock.recvfrom(64000)
奇怪,我按照你的配置,也是提示获取key不到。云景、云恬应该没有差别的。可以把你的集成压缩一下放上来不?我试试。 |
|