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

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

[求助] Hass报错 空调伴侣无法拿到红外码

[复制链接]

1

主题

2

帖子

21

积分

新手上路

Rank: 1

积分
21
金钱
19
HASS币
0
发表于 2018-9-17 09:53:46 | 显示全部楼层 |阅读模式
看了cnk700i的帖子踩个空调伴侣红外控制的坑,想通过小米空调伴侣直接控制电视机开关,
目前使用这个插件来拿红外码,在hass开发者工具中调用climate.xiaomi_miio_learn_command,
默认10s操作时间,期间一直按遥控器,无法拿到红外码,
报错内容:[custom_components.climate.xiaomi_miio] Timeout. No infrared command captured
有哪位老铁遇到过么,求指导



回复

使用道具 举报

20

主题

310

帖子

1481

积分

金牌会员

Rank: 6Rank: 6

积分
1481
金钱
1171
HASS币
0
发表于 2019-2-9 19:07:42 | 显示全部楼层
我的是报错这样的。新手,一直没找到问题。
2019-02-09 11:05:38 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.all_on (c:97cebf3d7949456a9dd8875b2c84994f)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1138, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1151, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/script.py", line 123, in service_handler
    context=service.context)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/script.py", line 181, in async_turn_on
    kwargs.get(ATTR_VARIABLES), context)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 131, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 210, in _handle_action
    action, variables, context)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.py", line 299, in _async_call_service
    context=context
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.py", line 85, in async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1109, in async_call
    processed_data = handler.schema(service_data)
  File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: value must be at least 2 for dictionary value @ data['slot']
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 07:29 , Processed in 0.051101 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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