|
本帖最后由 sorrypqa 于 2023-2-12 21:31 编辑
这两天用8266弄了个红外发射组件,想通过smartir控制空调
ESPHome代码:
写入固件接入HA后,在服务里随便输几个数值试了一下可以发射信号
但在smartir的空调面板里按任何键,ESP8266的红外输出脚都没有反应
看了一下日志有个错误,不懂什么原因,在此求助大神如何解决!
此错误来自自定义集成。
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']
系统版本:
|
|