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

 找回密码
 立即注册
查看: 1441|回复: 1

[技术探讨] gree A/C 无法接入格力空调

[复制链接]

2

主题

17

帖子

103

积分

注册会员

Rank: 2

积分
103
金钱
86
HASS币
0
发表于 2022-8-21 12:16:48 | 显示全部楼层 |阅读模式
安装的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




回复

使用道具 举报

1

主题

122

帖子

660

积分

高级会员

Rank: 4

积分
660
金钱
538
HASS币
0
发表于 2022-8-23 12:41:44 来自手机 | 显示全部楼层
你好,我也想试试看。你是什么型号格力空调?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-29 04:28 , Processed in 0.095462 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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