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

 找回密码
 立即注册
查看: 7531|回复: 4

[求助] 空调伴侣接入不了HA

[复制链接]

7

主题

155

帖子

657

积分

高级会员

Rank: 4

积分
657
金钱
501
HASS币
0
发表于 2017-11-25 22:28:07 | 显示全部楼层 |阅读模式

按论坛的把插件已经放进custom_components,,然后在configuration添加以下代码了climate:
  - platform: mi_acpartner
    name: mi_acpartner
    host: 10.0.0.234
    token: 8171378a40b1a77ee7a8254b15c75cfc
    target_sensor: sensor.temperature_158d00015aefc4

重启HA后就进不了网页了,启动不了。
具体教程在:https://github.com/mac-zhou/homeassistant-mi-acpartner
那位大师看看是怎么回事呢
回复

使用道具 举报

8

主题

95

帖子

818

积分

论坛技术达人

积分
818
金钱
718
HASS币
0

论坛风云人物

发表于 2017-11-25 22:33:48 | 显示全部楼层
Github 给的是示例配置啊,你要替换为你的空调伴侣 IP 以及 TOKEN 吧?如果都已经替换了,那请把具体的 LOG 发出来。没有 LOG,大家怎么帮你判断?
回复

使用道具 举报

7

主题

155

帖子

657

积分

高级会员

Rank: 4

积分
657
金钱
501
HASS币
0
 楼主| 发表于 2017-11-25 22:56:30 | 显示全部楼层
cxlwill 发表于 2017-11-25 22:33
Github 给的是示例配置啊,你要替换为你的空调伴侣 IP 以及 TOKEN 吧?如果都已经替换了,那请把具体的 LOG ...

2017-11-25 22:52:43 WARNING (MainThread) [homeassistant.bootstrap] Python 3.4 support has been deprecated and will be removed in the beginning of 2018. Please upgrade Python or your operating system. More info: https://home-assistant.io/blog/2 ... python-3.4-support/
2017-11-25 22:53:01 WARNING (MainThread) [homeassistant.setup] Setup of climate is taking over 10 seconds.
2017-11-25 22:53:02 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-11-25 22:53:05 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform yr is taking over 10 seconds.
2017-11-25 22:53:24 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform mi_acpartner
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 2784, in _parse
    return self.subcon._parse(stream, context, path)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 1594, in _parse
    obj = self.cases.get(key, self.default)._parse(stream, context, path)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 2343, in _parse
    hash2 if not isinstance(hash2,bytes) else hexlify(hash2), ))
construct.core.ChecksumError: wrong checksum, read b'ffffffffffffffffffffffffffffffff', computed b'b27d6d3eb0c006547c013e92655e5d3c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/climate/mi_acpartner.py", line 134, in setup_platform
    token, sensor_entity_id, sync, customize),
  File "/home/homeassistant/.homeassistant/custom_components/climate/mi_acpartner.py", line 207, in __init__
    self._state = self.climate_get_state()
  File "/home/homeassistant/.homeassistant/custom_components/climate/mi_acpartner.py", line 473, in climate_get_state
    getstate = self.climate.send("get_model_and_state", [])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/miio/device.py", line 237, in send
    m = Message.parse(data, ctx)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 158, in parse
    return self.parse_stream(BytesIO(data), context, **kw)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 171, in parse_stream
    return self._parse(stream, context2, "(parsing)")
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 867, in _parse
    subobj = sc._parse(stream, context, path)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/construct/core.py", line 2788, in _parse
    raise e.__class__("%s\n    %s" % (e, path))
construct.core.ChecksumError: wrong checksum, read b'ffffffffffffffffffffffffffffffff', computed b'b27d6d3eb0c006547c013e92655e5d3c'
    (parsing) -> checksum
2017-11-25 22:53:41 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
具体代码已经改了:
climate:
  - platform: mi_acpartner
    name: mi_acpartner
    host: 92.168.50.68
    token: 332d729b18d867d89f99a6bfc5a4890a
    target_sensor: sensor.temperature_158d00019f95bb
回复

使用道具 举报

0

主题

13

帖子

80

积分

注册会员

Rank: 2

积分
80
金钱
67
HASS币
0
发表于 2017-11-26 06:09:20 | 显示全部楼层
host: 92.168.50.68

192.168吧?
回复

使用道具 举报

7

主题

155

帖子

657

积分

高级会员

Rank: 4

积分
657
金钱
501
HASS币
0
 楼主| 发表于 2017-11-26 14:27:42 | 显示全部楼层
mystryl 发表于 2017-11-26 06:09
host: 92.168.50.68

192.168吧?

是192.168开头,上面我写错了。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 02:43 , Processed in 0.112099 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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