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

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

[求助] smartir无法通过ESP8266的红外服务发射信号

[复制链接]

50

主题

1338

帖子

5590

积分

论坛DIY达人

积分
5590
金钱
4252
HASS币
20
发表于 2023-2-12 21:27:00 | 显示全部楼层 |阅读模式
本帖最后由 sorrypqa 于 2023-2-12 21:31 编辑

这两天用8266弄了个红外发射组件,想通过smartir控制空调


ESPHome代码:
SNAG-2023-2-11_00003.png



写入固件接入HA后,在服务里随便输几个数值试了一下可以发射信号
SNAG-2023-2-11_00004.png



但在smartir的空调面板里按任何键,ESP8266的红外输出脚都没有反应
SNAG-2023-2-11_00005.png

SNAG-2023-2-12_00000.png


看了一下日志有个错误,不懂什么原因,在此求助大神如何解决!


SNAG-2023-2-12_00001.png



此错误来自自定义集成。

Logger: custom_components.smartir.climate
Source: core.py:1692
Integration: SmartIR (documentation)
First occurred: 21:13:52 (2 occurrences)
Last logged: 21:23:11

not a valid value for dictionary value @ data['entity_id']
Traceback (most recent call last):
  File "/config/custom_components/smartir/climate.py", line 377, in send_command
    await self._controller.send(
  File "/config/custom_components/smartir/controller.py", line 111, in send
    await self.hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1692, in async_call
    processed_data: dict[str, Any] = handler.schema(service_data)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 229, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 353, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: not a valid value for dictionary value @ data['entity_id']

系统版本:
SNAG-2023-2-12_00002.png



SNAG-2023-2-12_00003.png



回复

使用道具 举报

3

主题

79

帖子

617

积分

高级会员

Rank: 4

积分
617
金钱
538
HASS币
0
发表于 2024-7-9 21:07:56 | 显示全部楼层
你好,我遇到了同样的问题,请问你解决了吗?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 08:37 , Processed in 0.054019 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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