rytilahti / python-miio

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

Unsupported Model: Xiaomi Air Purifier 4 Lite (zhimi.airp.rma2) #1910

Open gvillo opened 3 months ago

gvillo commented 3 months ago

Device information:

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

Additional context Logger: miio.device Source: /usr/local/lib/python3.12/site-packages/miio/device.py:159 First occurred: 7:48:45 PM (7 occurrences) Last logged: 8:45:23 PM

Found an unsupported model 'zhimi.airp.rma2' for class 'AirPurifierMiot'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/

Unable to find mapping for zhimi.airp.rma2, falling back to zhimi.airpurifier.ma4

{'ap': {'ssid': 'iron2.4', 'bssid': 'XXXXXX', 'rssi': -22}, 'netif': {'localIp': 'XXXXX', 'gw': '', 'mask': ''}, 'fw_ver': '2.2.7', 'hw_ver': '', 'mac': 'CC:B5:D1:7B:FF:2B', 'model': 'zhimi.airp.rma2', 'token': 'XXXXXXX'}, 'conn_mode': 'cloud', 'miot_local': False, 'miot_cloud': True, 'home_name': 'XXXXX', 'room_name': 'Sala de estar', 'entry_id': 'XXXXXX', 'config_version': 0.3}

DawidPietrykowski commented 2 months ago

Hi, I implemented a PR for this device: #1929