Comments (4)
there is the log:
ogger: homeassistant.core
Source: components/system_log/init.py:97
First occurred: 下午9:02:37 (2 occurrences)
Last logged: 下午9:02:40
Error executing service: <ServiceCall fan.set_speed (c:6aa3226c941c48589d3ff7f857c8eaaa): entity_id=['fan.mi_jia_xin_feng_ji'], speed=Sleep>
Error executing service: <ServiceCall fan.set_speed (c:9eb5fde6dae141baa7347e7b8458cf06): entity_id=['fan.mi_jia_xin_feng_ji'], speed=Favourite>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/mi-airfresh/fan.py", line 283, in _try_command
partial(self._device.send, *args, **kwargs))
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 124, in send
return self._protocol.send(command, parameters, retry_count)
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 215, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 215, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 215, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 218, in send
raise DeviceException("No response from the device") from ex
miio.exceptions.DeviceException: No response from the device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1276, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/config/custom_components/mi-airfresh/fan.py", line 331, in async_set_speed
"set_mode", OperationMode[speed.title()].value)
File "/config/custom_components/mi-airfresh/fan.py", line 296, in send_raw_cmd
result = await self._try_command(mask_error, command, parameters)
File "/config/custom_components/mi-airfresh/fan.py", line 289, in _try_command
_LOGGER.error(mask_error, exc)
File "/usr/local/lib/python3.7/logging/init.py", line 1407, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/local/lib/python3.7/logging/init.py", line 1514, in _log
self.handle(record)
File "/usr/local/lib/python3.7/logging/init.py", line 1524, in handle
self.callHandlers(record)
File "/usr/local/lib/python3.7/logging/init.py", line 1586, in callHandlers
hdlr.handle(record)
File "/usr/local/lib/python3.7/logging/init.py", line 894, in handle
self.emit(record)
File "/usr/src/homeassistant/homeassistant/components/system_log/init.py", line 181, in emit
record, stack, _figure_out_source(record, stack, self.hass)
File "/usr/src/homeassistant/homeassistant/components/system_log/init.py", line 97, in init
self.message = deque([record.getMessage()], maxlen=5)
File "/usr/local/lib/python3.7/logging/init.py", line 369, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
from mi-airfresh.
and there is another log about homekit:
日志详细信息( WARNING )
Logger: homeassistant.components.homekit.util
Source: components/homekit/util.py:304
Integration: HomeKit 桥接器 (documentation, issues)
First occurred: 下午8:57:48 (1 occurrences)
Last logged: 下午8:57:48
['Off', 'Auto', 'Sleep', 'Favourite'] does not contain the speed setting off as its first element. Assuming that Off is equivalent to 'off'.
from mi-airfresh.
What's the model of your device? My device is dmake.airfresh.t2017 and works well. The version of firework is the latest——2.1.3.0016
from mi-airfresh.
@mypal I update the firework to 2.1.3.0016,it works well,thank you very much。
from mi-airfresh.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mi-airfresh.