Hello,
I’m triyng integrate my vaccum xiaomi but i failed…
To get the token i installed the apk v5.4.49 .
{
"did":"74367490",
"token":"304b386435435635485a32344c686b4b",
"longitude":"4.90339250",
"latitude":"45.81722330",
"name":"Mi Robot Vacuum",
"pid":"0",
"localip":"192.168.0.37",
"mac":"78:11:DC:80:83:94",
"ssid":"Degage",
"bssid":"18:D6:C7:61:93:C9",
"parent_id":"",
"parent_model":"",
"show_mode":1,
"model":"rockrobo.vacuum.v1",
"adminFlag":1,
"shareFlag":0,
"permitLevel":16,
"isOnline":true,
"desc":"Entièrement chargée",
"extra":{
"isSetPincode":0,
"fw_version":"3.5.8_004018",
"needVerifyCode":0,
"isPasswordEncrypt":0
},
"event":{
"consumable_item_prop_cache":"{\"filter_work_time\":\"156849\",\"main_brush_work_time\":\"156849\",\"sensor_dirty_time\":\"22546\",\"side_brush_work_time\":\"156849\"}",
"event.error_code":"{\"timestamp\":1593455294,\"value\":[0]}",
"event.status":"{\"timestamp\":1593455294,\"value\":[{\"battery\":100,\"clean_area\":0,\"clean_time\":3,\"dnd_enabled\":0,\"error_code\":0,\"fan_power\":60,\"in_cleaning\":0,\"map_present\":0,\"msg_seq\":192,\"msg_ver\":8,\"state\":8}]}",
"miot_bind_time":"1593361834",
"prop.fan_power":"60",
"prop.ota_state":"idle",
"prop.ota_state_ts":"1593450276",
"prop.s_mixxx":"{\"StorageKeys_UserSelectedCountryServerCode_74367490_6292117663_MI_3\":\"cn\"}"
},
"uid":6292117663,
"pd_id":85,
"password":"",
"p2p_id":"",
"rssi":-62,
"family_id":0,
"reset_flag":0
},
In my configuration.yaml
vacuum:
- platform: xiaomi_miio
host: 192.168.0.37
token: 304b386435435635485a32344c686b4b
My vaccum has a static IP…
In my entities, my vaccum is unavailable…
What’s the problem ?
Thx.