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

Still developing? #63

Open
kelemenlajos opened this issue Apr 11, 2023 · 2 comments
Open

Still developing? #63

kelemenlajos opened this issue Apr 11, 2023 · 2 comments

Comments

@kelemenlajos
Copy link

I think you could add many more cookers via this site https://home.miot-spec.com/
for example this is the cooker I got:
https://home.miot-spec.com/spec/chunmi.cooker.r401
https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:cooker:0000A00B:chunmi-r401:1

Also chatgpt can translate the encoded chines text like so:

Kelemen Lajos
can you translate these?
name:"孜然羊肉饭"
name:"五花肉豆角焖饭"
name:"香�滑鸡饭"
name:"皮蛋牛肉粥"
name:"红酒炖梨"
name:"è…Šè‚ è� è�œé¥­"
name:"水蜜桃慕斯蛋糕"
name:"�莓山�泥"
name:"�肉糯米饭"
name:"麻酱鸡�"
name:"山�红枣糯米饭"
Sure! Here are the translations:

name: "孜然羊肉饭" - Cumin lamb rice
name: "五花肉豆角煎饭" - Fried rice with diced pork belly and green beans
name: "香菇滑鸡饭" - Chicken and mushroom rice
name: "皮蛋牛肉粥" - Congee with preserved egg and beef
name: "红酒炖梨" - Red wine stewed pears
name: "腊肠莴笋炒饭" - Fried rice with Chinese sausage and bamboo shoots
name: "水蜜桃芒果蛋糕" - Peach and mango sponge cake
name: "蓝莓山药泥" - Blueberry and mountain yam mash
name: "熏肉蒸米饭" - Steamed rice with smoked meat
name: "麻酱鸡丝" - Shredded chicken with sesame paste
name: "山药红枣粥" - Congee with Chinese yam and red dates

I got the recipes from here:
https://de-chunmi-pot.eco.mi.com/v6/recipe/searchdataByModel?name=&model=chunmi.cooker.normal2&type=&pageno=1&perpage=1000&language=zh_CN

@danielszilagyi
Copy link

I'm also trying with an r401 but it doesn't reply to status command.
Compared to a supported model the endpoints are similar so still digging what is happening here.
It is also not yet supported in python-miio library.

jumpbox:~$ miiocli -d cooker --ip 192.168.0.190 --token 00000000000000000000000000000 status
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#g\xbf{\x00\x00\x04~' (total 16)
        value = Container:
            length = 32
            unknown = 0
            device_id = unhexlify('2367bf7b')
            ts = 1970-01-01 00:19:10
        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 2367bf7b with ts: 1970-01-01 00:19:10, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.190:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:192.168.0.190:54321 (ts: 1970-01-01 00:19:10, id: 1) << {'id': 1, 'result': {'life': 1150, 'uid': 1597550502, 'model': 'chunmi.cooker.r401', 'token': '00000000000000000000000000000', 'ipflag': 1, 'fw_ver': '2.2.0_0008', 'miio_ver': '0.0.9', 'hw_ver': 'esp32', 'mmfree': 59288, 'mac': 'yyy', 'wifi_fw_ver': 'v4.0.1-476-g71f0ccb', 'ap': {'ssid': 'xxxxxxxx', 'bssid': 'x', 'rssi': -31, 'primary': 9}, 'netif': {'localIp': '192.168.0.190', 'mask': '255.255.255.0', 'gw': '192.168.0.254'}}, 'exe_time': 0}
DEBUG:miio.device:Detected model chunmi.cooker.r401
WARNING:miio.device:Found an unsupported model 'chunmi.cooker.r401' for class 'Cooker'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
DEBUG:miio.miioprotocol:192.168.0.190:54321 >>: {'id': 2, 'method': 'get_prop', 'params': ['all']}
DEBUG:miio.miioprotocol:192.168.0.190:54321 (ts: 1970-01-01 00:19:14, id: 2) << {'id': 2, 'error': {'code': -9999, 'message': 'user ack timeout'}, 'exe_time': 4000}
DEBUG:miio.miioprotocol:Retrying to send failed command, retries left: 3
DEBUG:miio.miioprotocol:192.168.0.190:54321 >>: {'id': 3, 'method': 'get_prop', 'params': ['all']}
DEBUG:miio.miioprotocol:192.168.0.190:54321 (ts: 1970-01-01 00:19:18, id: 3) << {'id': 3, 'error': {'code': -9999, 'message': 'user ack timeout'}, 'exe_time': 4000}
DEBUG:miio.miioprotocol:Retrying to send failed command, retries left: 2
DEBUG:miio.miioprotocol:192.168.0.190:54321 >>: {'id': 4, 'method': 'get_prop', 'params': ['all']}
DEBUG:miio.miioprotocol:192.168.0.190:54321 (ts: 1970-01-01 00:19:22, id: 4) << {'id': 4, 'error': {'code': -9999, 'message': 'user ack timeout'}, 'exe_time': 4000}
DEBUG:miio.miioprotocol:Retrying to send failed command, retries left: 1
DEBUG:miio.miioprotocol:192.168.0.190:54321 >>: {'id': 5, 'method': 'get_prop', 'params': ['all']}
DEBUG:miio.miioprotocol:192.168.0.190:54321 (ts: 1970-01-01 00:19:26, id: 5) << {'id': 5, 'error': {'code': -9999, 'message': 'user ack timeout'}, 'exe_time': 4000}
ERROR:miio.miioprotocol:Got error when receiving: {'code': -9999, 'message': 'user ack timeout'}
DEBUG:miio.click_common:Exception: Unable to recover failed command

@danielszilagyi
Copy link

r401 can be queried with the genericmiot method in the dev version of python-miio, see rytilahti/python-miio#1856

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

No branches or pull requests

2 participants