merdok/homebridge-miot

New device Xiaomi X20+

Closed this issue · 8 comments

Device model
xiaomi.vacuum.c102gl

Device name
Xiaomi X20+

Does the device require a MiCloud connection?
Don't know

Hi, what is the issue with the device? Did you already try to add it to the plugin? What does the debug log say?

Hey, I've added it today and still need to test it.
But I mostly use the cli and there I need to figure out again how the room cleaning works. It is not the same like for my old X10+ -.- The room settings seem to be the same, but the actual start cleaning ignores the selected rooms. Need to setup an Android emulator again to get the logs and I will write my findings here

yeah you would need to catch the actual command sent to the device to find out how it should look like

@merdok I also tried to add it and its getting added though in Homebridge if I simply turn it on it doesn’t react at all. This is what my Homebridge Log says:
IMG_0048

Do I may need to change something in the config of the device in Homebridge?

Thanks
Thomas

@t0mmey the model which you specified is incorrect hence the plugin cannot fetch the correct spec. The model is xiaomi.vacuum.c102gl and not X20+

Thanks a Lot @merdok ! Fixes. Thanks for all your efforts!

@satrik Heya, did you by any chance ever figure out how to map the rooms? Any suggestions on how to intercept the requests sent from the apps? I found the spec metadata here, but wouldn't know how to format the params to conform to it.

I do indeed get something X10+-like from miot send <IP> -t <TOKEN> get_properties '[{"siid":8,"piid":2}]' like the docs say, but the 6.2 nor 4.1 seem to want to work with me.

hey @jvacek, no I did not invest more time in this because I switched to HomeAssistant and there it just works.
I wrote the mentioned docs for the X10+. here you can find the things I tried back then to get all the needed data. with the modified mi home app you can easily get all sent requests to reverse debug the correct commands.