|
楼主 |
发表于 2019-8-3 14:01:14
|
显示全部楼层
Log Details (ERROR)
Sat Aug 03 2019 00:32:05 GMT+0800 (中国标准时间)
Error executing service <ServiceCall climate.set_hvac_mode (c:a2633bfb757d4ab78283dc607d1fc863): entity_id=['climate.zhuwo_kongtiao'], hvac_mode=heat_cool>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1159, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service
required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/config/custom_components/smartir/climate.py", line 299, in async_set_hvac_mode
await self.send_command()
File "/config/custom_components/smartir/climate.py", line 331, in send_command
command = self._commands[operation_mode][fan_mode][target_temperature]
KeyError: 'heat_cool'
这是个什么错误?? |
|