|
发表于 2020-1-28 15:06:12
|
显示全部楼层
本帖最后由 zsyg 于 2020-1-28 16:21 编辑
{HA配置目录}/havcs.yaml
light.wled_lights:
havcs_device_name: 灯带
havcs_zone: 卧室
2020-01-28 15:02:30 ERROR (MainThread) [custom_components.havcs] [http] handle fail: Traceback (most recent call last):
File "/config/custom_components/havcs/__init__.py", line 657, in post
response = await HANDLER[platform].handleRequest(json.loads(data), refresh_token)
File "/config/custom_components/havcs/dueros.py", line 201, in handleRequest
err_result, properties = await self.process_control_command(data)
File "/config/custom_components/havcs/helper.py", line 67, in process_control_command
entity_id = self._decrypt_device_id(device_id)
File "/config/custom_components/havcs/dueros.py", line 332, in _decrypt_device_id
return decrypt_device_id(device_id)
File "/config/custom_components/havcs/util.py", line 64, in decrypt_device_id
return entity_id
UnboundLocalError: local variable 'entity_id' referenced before assignment
刚入小度,折腾了两天用havcs自建技能方式接入hass了,也能发现设备但是试了很多配置都不能控制设备,都是提示上面这个,能分享个你的一个能控制的实例配置给我看下吗?谢谢了!
|
|