-
Notifications
You must be signed in to change notification settings - Fork 231
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
电蚊香自动配置无效
ateai.mosq.dakuo
自动配置结果:
fan:
mapping:
{"mosquito_dispeller":{"switch_status":{"siid":2,"piid":1}},"a_l":{"repellent_liquid_reset_liquid":{"siid":5,"aiid":1}}}
params:
{"mosquito_dispeller":{"main":true}}
结果导致fan不能turn_on
[139862162640512] 'switch_status'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1492, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1527, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 843, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 395, in async_turn_on_compat
await self.async_turn_on(
File "/config/custom_components/xiaomi_miot_raw/fan.py", line 182, in async_turn_on
result &= await self.set_property_new(self._did_prefix + "switch_status", self._ctrl_params['switch_status']['power_on'])
KeyError: 'switch_status'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working