|
安装的hacs里的 gree a/c
https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent
就是这个
配置文件如下
- platform: gree
name: kongtiao
host: 192.168.2.222
mac: 'F4:91:1E:01:36:08'
port: 7000
target_temp_step: 1
temp_sensor: sensor.t2_cloud_d0e000_temperature
lights: input_boolean.kongtiao_lights
health: input_boolean.kongtiao_health
sleep: input_boolean.kongtiao_sleep
然后重启HA后日志看到报错
日志详细信息( ERROR )Logger: homeassistant.components.climate
Source: custom_components/gree/climate.py:230
Integration: 空调 (documentation, issues)
First occurred: 12:04:55 (1 occurrences)
Last logged: 12:04:55
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)
TimeoutError: timed out
|
|