Open bor2121 opened 4 years ago
same model and thx for work
Hello.
I also bought this cooker. It has all the menus in Chinese, and I really want to integrate it into Home Assistant. I can grant access to a virtual machine on my local network, from where you can connect to the cooker for tests.
Xiaomi MiJiA Electric Rice Cooker 5L (YLG01CM)
C:>miiocli device --ip IPAddr --token TOKEN info Model: chunmi.pre_cooker.eh1 Hardware version: esp32 Firmware version: 2.0.7_0018
C:>miiocli device --ip IPAddr --token TOKEN raw_command get_temp_history [] Running command raw_command Error: {'code': -9999, 'message': 'user ack timeout'}
C:>miiocli device --ip IPAddr --token TOKEN raw_command get_cook_data [] Running command raw_command Error: {'code': -9999, 'message': 'user ack timeout'}
C:>miiocli device --ip IPAddr --token TOKEN raw_command get_prop "['status', 'phase', 'menu', 't_cook', 't_left', 't_pre', 't_kw', 'taste', 'temp', 'rice', 'favs', 'akw', 't_start', 't_finish', 'version', 'setting', 'code', 'en_warm', 't_congee', 't_love', 'boil']" Running command raw_command [1]
Found this forked repo for eh1: https://github.com/sschirr/xiaomi_cooker But I wasn't able to get it to work:
Error during setup of component xiaomi_miio_cooker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miio_cooker/__init__.py", line 125, in setup
from miio import Cooker, MultiCooker
ImportError: cannot import name 'MultiCooker' from 'miio' (/usr/local/lib/python3.11/site-packages/miio/__init__.py)