rytilahti / python-miio

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

Xiaomi Xiaowan Smart pet feeder mmgg.feeder.petfeeder #1047

Open AlexPotterOnGit opened 3 years ago

AlexPotterOnGit commented 3 years ago

Before submitting a new request, use the search to see if there is an existing issue for the device.

Device information:

Use miiocli device --ip <ip address> --token <token>.

Additional context If you know already about potential commands or any other useful information to add support for the device, please add that information here.

Hi team,

I'm not a developer but have the device above and would like to contribute to support of it if possible. I installed miiocli and can communicate with it. Just don't know next steps which needs to be done. If you could point me out the right direction will be appreciated.

ofen commented 2 years ago

@AlexPotterOnGit You could try similar way as for Pet Water Dispenser but I'm not sure about token flow:

AlexPotterOnGit commented 2 years ago

Great instructions, appreciated. Let me give it a try tonight.

rytilahti commented 2 years ago

Great instructions @ofen!

Would you mind creating a PR to add a note or two based on your experiences to https://python-miio.readthedocs.io/en/latest/contributing.html#miot-devices (https://github.com/rytilahti/python-miio/blob/master/docs/contributing.rst#miot-devices) based on what you just wrote above?

Wh1terat commented 2 years ago

Sadly it doesn't follow it's own published miot spec 🤦

But we've worked out all the available miio methods and format now.

See: https://github.com/al-one/hass-xiaomi-miot/issues/220

Wh1terat commented 2 years ago

https://github.com/rytilahti/python-miio/pull/1210

Charliecheung2 commented 1 year ago
  • raw_command action '{"did": "", "siid": 2, "aiid": 1, "in":[]}'

Dude you are amazing!