rytilahti / python-miio

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

Support for Xiaomi Viomi Internet Refrigerator iLive (462l) 10" #567

Open Keles75 opened 5 years ago

Keles75 commented 5 years ago

It's possible to add the refrigerator Xiaomi Viomi Internet Refrigerator iLive (462l) 10" This model : https://www.xiaomitoday.com/new-viomi-refrigerator-screen/

Thank you!

syssi commented 5 years ago

Do you own the device? The output of

pip3 install python-miio
miiocli device --ip IP --token TOKEN info

would be helpful.

rezmus commented 5 years ago

this one?

viomi.fridge.v3 - Viomi Internet refrigerator iLive (French style 462L)

http://static.home.mi.com/app/image/get/file/developer_1512362328lfpja9xa.png

syssi commented 5 years ago

The viomi.fridge.v3 looks like an miot device:

Supported methods:

'setCity', [cityCode, mycity, longitude, latitude] 
'setMode', [mode]
'setOneKeyClean', [value]
'setRCSet', [value]
'setRCSetTemp', [value]
'setRCCMode', [mode]
'setCCSet', [value]
'setSceneName', [title]
'setCCSetTemp', [value]
'setFCSetTemp', [value]
'setSmartCool', [value]
'setCoolBeverage', [_value]
'setSmartFreeze', [value]
'setSceneChoose', [params]

Supported properties:

[
  'Mode',
  'RCSetTemp',
  'FCSetTemp',
  'RCSet',
  'OneKeyClean',
  'FilterLifeBase',
  'FilterLife',
  'Error',
  'SmartCool',
  'SmartFreeze',
  'OutdoorTemp',
  'IndoorTemp',
  'StartDays',
  'CoolBeverage'
]

May be: 'IpAddr', 'SceneAll'
Keles75 commented 5 years ago

Yes, this model. I can't get token because can't connect refrigerator to mihome app, only to viomi app. When I try, system wrote "did not allowed to get bind key" IMG_0119 And in hidden menu I find this screen: IMG_0131 2

maybe this helpful

rezmus commented 5 years ago

it looks like it has similar bind process to cgllc.airmonitor.b1 (Mi Multifunction Air Monitor). you setup wifi with device touch screen, than it should get bind key from xiaomi servers and expose to you as QR code. you scan it within mi home, bind is confirmed and device conneted to account.

on 2nd screen thare are probably cloud credentials (did/key/mac). i'm not even sure if it can talk via local api. i would start with fridge connection to fake hotspot or openwrt router to get network traffic.