Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mi Smart Space Heater (zhimi.heater.mc2a) #1541

Closed
aomelaev opened this issue Sep 29, 2022 · 0 comments · Fixed by #1581
Closed

Add Mi Smart Space Heater (zhimi.heater.mc2a) #1541

aomelaev opened this issue Sep 29, 2022 · 0 comments · Fixed by #1581

Comments

@aomelaev
Copy link

On Europe market available Mi Smart Space Heater (zhimi.heater.mc2a), it doesn't work with miio.

May be it only my problem, but for debug add log:

`miiocli -d heatermiot --ip 192.168.1.250 --token XXXXXXXXXXXX info
INFO:miio.cli:Debug mode active
DEBUG:miio.click_common:Unknown model, trying autodetection. None None
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x1c]L\xee\x00\x00\x0c\x8c' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('1c5d4cee')
ts = 1970-01-01 00:53:32
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 1c5d4cee with ts: 1970-01-01 00:53:32, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.250:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 3
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x1c]L\xee\x00\x00\x0c\x92' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('1c5d4cee')
ts = 1970-01-01 00:53:38
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 1c5d4cee with ts: 1970-01-01 00:53:38, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.250:54321 >>: {'id': 102, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 2
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x1c]L\xee\x00\x00\x0c\x97' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('1c5d4cee')
ts = 1970-01-01 00:53:43
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 1c5d4cee with ts: 1970-01-01 00:53:43, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.250:54321 >>: {'id': 203, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 1
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x1c]L\xee\x00\x00\x0c\x9c' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('1c5d4cee')
ts = 1970-01-01 00:53:48
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 1c5d4cee with ts: 1970-01-01 00:53:48, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.250:54321 >>: {'id': 304, 'method': 'miIO.info', 'params': []}
ERROR:miio.miioprotocol:Got error when receiving: timed out
DEBUG:miio.click_common:Exception: No response from the device
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\miio\miioprotocol.py", line 193, in send
data, addr = s.recvfrom(4096)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\miio\miioprotocol.py", line 193, in send
data, addr = s.recvfrom(4096)
TimeoutError: timed out`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants