rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.52k stars 542 forks source link

Question about how to Set Voice dreame.vacuum.r2211o #1935

Open neyestrabelli opened 1 month ago

neyestrabelli commented 1 month ago

Hi, I try to set-voice on Xiaomi S10+:

https://home.miot-spec.com/spec/dreame.vacuum.r2211o

What format string is ssid 7 piid 4 ?

When I set property 2 to EN it's accepted, but when I change to another value don't work.

miiocli genericmiot --ip  xxxxxxx --token xxxxxxx set_property_by 7 2 'EN'
Running command set_property_by
[{'siid': 7, 'did': 'set-7-2', 'piid': 2, 'code': 0}]

miiocli genericmiot --ip  xxxx --token xxxxx get_property_by 7 2
Running command get_property_by
[{'siid': 7, 'did': '7-2', 'piid': 2, 'value': 'EN', 'code': 0}]

miiocli genericmiot --ip  xxxxx --token xxxx set_property_by 7 2 'PB'
Running command set_property_by
[{'siid': 7, 'did': 'set-7-2', 'piid': 2, 'code': -1}]

If I change via Mi HOME and get:

miiocli genericmiot --ip  xxxxx --token xxxxxxx get_property_by 7 2
Running command get_property_by
[{'siid': 7, 'did': '7-2', 'piid': 2, 'value': 'BP', 'code': 0}]

It's possible to upload custom voice?