Skip to content

Xiaomi Rice Cooker Normal5: get_prop only works if "all" properties are requested #380

@schemacs

Description

@schemacs
  • model: chunmi.cooker.normal5
  • firmware version: 1.2.8.0008
  • python-miio version: 4.0.1
 ~/.virtualenvs/ha/bin/mirobo --ip 192.168.1.2 --token xxx raw_command get_prop '["all"]'
Sending cmd get_prop with params ['all']
['waiting', '0004', 'null', '34', '2', '-1', '1440', '100f', '05040f', '0008570a', '0100', 'ffff....']
~/.virtualenvs/ha/bin/mirobo --ip 192.168.1.2 --token xxx  raw_command get_prop '["version"]'
Sending cmd get_prop with params ['version']
ERROR:miio.device:Got error when receiving: timed out
Error: No response from the device
~/.virtualenvs/ha/bin/mirobo --ip 192.168.1.2 --token xxx raw_command get_prop '["menu"]'
Sending cmd get_prop with params ['menu']
ERROR:miio.device:Unable to discover a device at address 192.168.42.150
Error: Unable to discover the device 192.168.42.150
~/.virtualenvs/ha/bin/mirobo --ip 192.168.1.2 --token xxx raw_command get_prop '["func", "menu", "stage", "temp", "t_func", "t_precook", "t_cook", "setting", "delay", "version", "favorite", "custom"]'
Sending cmd get_prop with params ['func', 'menu', 'stage', 'temp', 't_func', 't_precook', 't_cook', 'setting', 'delay', 'version', 'favorite', 'custom']
ERROR:miio.device:Got error when receiving: timed out
Error: No response from the device

So after I change https://github.com/rytilahti/python-miio/blob/0.4.1/miio/cooker.py#L729, now home assistant which calls status func works fine.

        properties = ['func', 'menu', 'stage', 'temp', 't_func', 't_precook',
                      't_cook', 'setting', 'delay', 'version', 'favorite', 'custom']
-       values = self.send("get_prop", properties)
+       values = self.send("get_prop", ['all'])

Does anybody also have this output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions