syssi / xiaomi_cooker

Xiaomi Mi Electric Rice Cooker integration for Home Assistant
Apache License 2.0
143 stars 37 forks source link

Add support for chunmi.cooker.normalcd1 #25

Open nhnam100 opened 4 years ago

nhnam100 commented 4 years ago

Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_cooker/issues and provide the following data: chunmi.cooker.normalcd1

nhnam100 commented 3 years ago

The status from xaiomi_miio_raw model: chunmi.cooker.normalcd1 firmware_version: 2.0.7_0007 hardware_version: esp32 properties:

nhnam100 commented 3 years ago

Model chunmi.cooker.normalcd1 Firmware version 2.0.7_0007 Hardware version esp32 Properties all Sensor property unnamed6 Unnamed0 1 Unnamed1 0000000001 Unnamed2 0 Unnamed3 60 Unnamed4 00000e106073dfa9 Unnamed5 000000006073dfa9 Unnamed6 0b1e Unnamed7 1 Unnamed8 1 Unnamed9 32 Unnamed10 1 Unnamed11 2 Unnamed12 1 Unnamed13 0 Unnamed14 0 Unnamed15 1 Unnamed16 7 Unnamed17 0 Unnamed18 0 Unnamed19 0 Unnamed20 0 Unnamed21 0007570a Unnamed22 00000007 Unnamed23 0

syssi commented 3 years ago

This properties are used at the Mi Home App plugin of your device:

get_prop ['status', 'menu', 'phase', 'temp', 't_left', 't_pre', 't_cook', 'c_led', 'taste', 'version', 'mylove', 'e_code']

Supported methods:

set_cancel []
set_menu [menuData]
set_start [menuData]
set_taste [tasteValue1, tasteValue2]
get_temp_history []
set_factory_reset []
set_setting [en_push]
get_prop ['all']
get_prop [props]
djinnmoto191283 commented 3 years ago

This properties are used at the Mi Home App plugin of your device:

get_prop ['status', 'menu', 'phase', 'temp', 't_left', 't_pre', 't_cook', 'c_led', 'taste', 'version', 'mylove', 'e_code']

Supported methods:

set_cancel []
set_menu [menuData]
set_start [menuData]
set_taste [tasteValue1, tasteValue2]
get_temp_history []
set_factory_reset []
set_setting [en_push]
get_prop ['all']
get_prop [props]

So, when will this cooker get supported? Thanks for your time.

syssi commented 3 years ago

Could you retrieve the properties from your device and provide a value per property?

djinnmoto191283 commented 3 years ago

Could you retrieve the properties from your device and provide a value per property?

please tell me how to do that as I am very new to this!

syssi commented 3 years ago

Do you have a linux host around? Please install python-miio by pip3 install python-miio. This library provides a CLI tool called miiocli. Please ping me a soon you are able to execute miiocli.

djinnmoto191283 commented 3 years ago

Do you have a linux host around? Please install python-miio by pip3 install python-miio. This library provides a CLI tool called miiocli. Please ping me a soon you are able to execute miiocli.

I think I successfully installed the miio python. What am I gonna do next?

syssi commented 3 years ago

Please provide the output of:

miiocli device --ip IPADDR --token TOKEN raw_command get_prop "['all']"

It should look like this:

$ miiocli device --ip 192.168.1.15 --token c5b52562c4109fc06490a2d392e175e7 raw_command get_prop "['all']"
Running command raw_command
['waiting', '0001', 'null', '23', '60', '-1', '60', '0204', '050415', '0003001a', '0a8f', 'ffffffffffff011effff0c0000001719']
$
djinnmoto191283 commented 3 years ago

here you are:

[1, '0000000001', 11, 60, '00000de060bec0f1', '0000000060bec0f1', '1100', 1, 1, 31, 1, 2, 1, 0, 1, 1, 7, 1623039285, 1, 1623042485, 0, '0007570a', '00000009', 0] --> when I set the language of the cooker to English.

[1, '0000000001', 11, 60, '00000de060bec20f', '0000000060bec20f', '1100', 1, 1, 30, 1, 2, 1, 0, 1, 1, 7, 1623039285, 1, 1623042485, 0, '0007570a', '00000009', 0] --> when I set the language of the cooker to Chinese.

As in Chinese, you get more kinds of Rice to choose apart from 4 kinds in English. I hope this help. Let me know if you need anything else! Slightly different, right?

[2, '0000000001', 7, 60, '000005ce60becbce', '0000000060becbce', '1100', 1, 1, 102, 1, 2, 1, 0, 1, 1, 7, 1623114633, 0, 1623042485, 0, '0007570a', '00000009', 0] -->when it's cooking rice in English language. I'm not sure it makes any differences to you but just posting here for the sake of running command 👯

nhnam100 commented 3 years ago

from my cooker - chinese version [1, '0000000001', 0, 60, '00000e1060bee2f2', '0000000060bee2f2', '0b1e', 1, 1, 30, 1, 2, 1, 0, 0, 1, 7, 0, 0, 0, 0, '0007570a', '00000007', 0]

djinnmoto191283 commented 3 years ago

from my cooker - chinese version [1, '0000000001', 0, 60, '00000e1060bee2f2', '0000000060bee2f2', '0b1e', 1, 1, 30, 1, 2, 1, 0, 0, 1, 7, 0, 0, 0, 0, '0007570a', '00000007', 0]

khác nhau chút đỉnh hè? nồi bạn nồi lớn hay nồi nhỏ? Xài app Mi Home hiện tiếng Anh hay tiếng Trung?

nhnam100 commented 3 years ago

from my cooker - chinese version [1, '0000000001', 0, 60, '00000e1060bee2f2', '0000000060bee2f2', '0b1e', 1, 1, 30, 1, 2, 1, 0, 0, 1, 7, 0, 0, 0, 0, '0007570a', '00000007', 0]

khác nhau chút đỉnh hè? nồi bạn nồi lớn hay nồi nhỏ? Xài app Mi Home hiện tiếng Anh hay tiếng Trung?

Nổi nhỏ, dùng app tiếng Anh nhưng server ở CN; (small cooker with Eng ver App with Chinese server).

djinnmoto191283 commented 3 years ago

from my cooker - chinese version [1, '0000000001', 0, 60, '00000e1060bee2f2', '0000000060bee2f2', '0b1e', 1, 1, 30, 1, 2, 1, 0, 0, 1, 7, 0, 0, 0, 0, '0007570a', '00000007', 0]

khác nhau chút đỉnh hè? nồi bạn nồi lớn hay nồi nhỏ? Xài app Mi Home hiện tiếng Anh hay tiếng Trung?

Nổi nhỏ, dùng app tiếng Anh nhưng server ở CN; (small cooker with Eng ver App with Chinese server).

thử đổi app sang tiếng Trung (server vẫn CN) thử xem, sẽ thấy có nhiều gạo để chọn đó! Hoặc xài Mi Home Mod để xài server SG cho nhanh, server CN chậm khủng khiếp!

nhnam100 commented 3 years ago

from my cooker - chinese version [1, '0000000001', 0, 60, '00000e1060bee2f2', '0000000060bee2f2', '0b1e', 1, 1, 30, 1, 2, 1, 0, 0, 1, 7, 0, 0, 0, 0, '0007570a', '00000007', 0]

khác nhau chút đỉnh hè? nồi bạn nồi lớn hay nồi nhỏ? Xài app Mi Home hiện tiếng Anh hay tiếng Trung?

Nổi nhỏ, dùng app tiếng Anh nhưng server ở CN; (small cooker with Eng ver App with Chinese server).

thử đổi app sang tiếng Trung (server vẫn CN) thử xem, sẽ thấy có nhiều gạo để chọn đó! Hoặc xài Mi Home Mod để xài server SG cho nhanh, server CN chậm khủng khiếp! tôi biết sẽ có nhiều loại gạo hơn nhưng tôi quan tâm đến tích hợp vào HA nhiều hơn là chạy rời.

biGdada commented 3 years ago

hi. any progress on this?