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

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

[求助] HA升级后Tuya相关集成无法正常运行

[复制链接]

103

主题

758

帖子

2657

积分

金牌会员

Rank: 6Rank: 6

积分
2657
金钱
1899
HASS币
0
发表于 2021-10-14 07:54:49 来自手机 | 显示全部楼层 |阅读模式
本帖最后由 Clark 于 2021-10-14 09:46 编辑

Logger: homeassistant.setup
Source: setup.py:178
First occurred: 07:46:15 (1 occurrences)
Last logged: 07:46:15

Setup failed for tuya: Unable to import component: cannot import name 'AuthType' from 'tuya_iot' (/usr/local/lib/python3.9/site-packages/tuya_iot/__init__.py)


Logger: homeassistant.setup
Source: setup.py:178
First occurred: 09:36:09 (1 occurrences)
Last logged: 09:36:09

Setup failed for tuya_v2: Unable to import component: cannot import name 'ProjectType' from 'tuya_iot' (/usr/local/lib/python3.9/site-packages/tuya_iot/__init__.py)





此错误来自自定义集成。

Logger: custom_components.localtuya.common
Source: custom_components/localtuya/pytuya/__init__.py:196
Integration: LocalTuya integration (documentation, issues)
First occurred: 09:34:33 (138 occurrences)
Last logged: 09:45:31

[6c2...wfs] Connect to 192.168.1.229 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 149, in _make_connection
    status = await self._interface.status()
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 472, in status
    status = await self.exchange(STATUS)
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 457, in exchange
    payload = self._decode_payload(msg.payload)
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 544, in _decode_payload
    payload = self.cipher.decrypt(payload, False)
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 196, in decrypt
    return self._unpad(decryptor.update(enc) + decryptor.finalize()).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte




目前装了localtuya,tuya v1,tuya v2这三个集成。
升级HA之前可以正常运行,除了tuya v2没有状态反馈其他正常。
目前都不能正常工作。
回复

使用道具 举报

103

主题

758

帖子

2657

积分

金牌会员

Rank: 6Rank: 6

积分
2657
金钱
1899
HASS币
0
 楼主| 发表于 2021-10-14 10:14:47 | 显示全部楼层
Tuya插件删除后,tuya_v2插件可以正常工作,依然没有状态反馈。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 18:29 , Processed in 0.719834 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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