question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

viomi.vacuum.v18 Unable to discover device

See original GitHub issue

Hey!

I’m trying to get Viomi S9 to work with you integration but for some reason it still tries to connect locally to the vacuum and AFAIK this one only support reading information via the cloud, not locally. This is what I get in the logs:

2022-01-03 13:01:14 ERROR (MainThread) [custom_components.xiaomi_miot.vacuum] Viomi S9 Robot Cleaner: Got MiioException while fetching the state: Unable to discover the device 10.0.1.100, mapping: {'vacuum.status': {'siid': 2, 'piid': 1}, 'vacuum.fault': {'siid': 2, 'piid': 2}, 'vacuum.wdr_mode': {'siid': 2, 'piid': 11}, 'vacuum.door_state': {'siid': 2, 'piid': 12}, 'vacuum.contact_state': {'siid': 2, 'piid': 13}, 'vacuum-2.contact_state': {'siid': 2, 'piid': 15}, 'vacuum-2.contact_state-16': {'siid': 2, 'piid': 16}, 'vacuum.mute': {'siid': 2, 'piid': 17}, 'vacuum.sweep_type': {'siid': 2, 'piid': 4}, 'vacuum.mode': {'siid': 2, 'piid': 19}, 'voice.target_voice': {'siid': 8, 'piid': 3}, 'voice.cur_voice': {'siid': 8, 'piid': 4}, 'voice.download_status': {'siid': 8, 'piid': 5}, 'voice.download_progress': {'siid': 8, 'piid': 6}, 'voice.voice_url': {'siid': 8, 'piid': 7}, 'voice.voice_mdfive': {'siid': 8, 'piid': 8}, 'map.map_type': {'siid': 7, 'piid': 1}, 'map.map_id': {'siid': 7, 'piid': 2}, 'map.map_name': {'siid': 7, 'piid': 4}, 'map.lang': {'siid': 7, 'piid': 5}, 'map.arrange_room_ids': {'siid': 7, 'piid': 6}, 'map.target_room_id': {'siid': 7, 'piid': 7}, 'map.split_points': {'siid': 7, 'piid': 8}, 'map.room_name': {'siid': 7, 'piid': 9}, 'map.cur_cleaning_path': {'siid': 7, 'piid': 10}, 'map.map_list': {'siid': 7, 'piid': 11}, 'map.oper_result': {'siid': 7, 'piid': 13}, 'map.auto_area_id': {'siid': 7, 'piid': 14}, 'point_zone.target_point': {'siid': 6, 'piid': 1}, 'point_zone.zone_points': {'siid': 6, 'piid': 2}, 'point_zone.restrict_points': {'siid': 6, 'piid': 3}, 'order.order_id': {'siid': 5, 'piid': 1}, 'order.enable': {'siid': 5, 'piid': 2}, 'order.day': {'siid': 5, 'piid': 3}, 'order.hour': {'siid': 5, 'piid': 4}, 'order.minute': {'siid': 5, 'piid': 5}, 'order.repeat': {'siid': 5, 'piid': 6}, 'order.clean_way': {'siid': 5, 'piid': 8}, 'order.suction': {'siid': 5, 'piid': 9}, 'order.water': {'siid': 5, 'piid': 10}, 'order.twice_clean': {'siid': 5, 'piid': 11}, 'order.mapid': {'siid': 5, 'piid': 12}, 'order.room_count': {'siid': 5, 'piid': 13}, 'order.room_data': {'siid': 5, 'piid': 14}, 'order.dnd_enable': {'siid': 5, 'piid': 15}, 'order.dnd_start_hour': {'siid': 5, 'piid': 16}, 'order.dnd_start_minute': {'siid': 5, 'piid': 17}, 'order.dnd_end_hour': {'siid': 5, 'piid': 18}, 'order.dnd_end_minute': {'siid': 5, 'piid': 19}, 'order.dnd_timezone': {'siid': 5, 'piid': 20}, 'order.timestamp': {'siid': 5, 'piid': 21}, 'order.orderdata': {'siid': 5, 'piid': 22}, 'viomi_vacuum.repeat_state': {'siid': 4, 'piid': 1}, 'viomi_vacuum.remember_state': {'siid': 4, 'piid': 3}, 'viomi_vacuum.mop_route': {'siid': 4, 'piid': 6}, 'viomi_vacuum.side_brush_life': {'siid': 4, 'piid': 8}, 'viomi_vacuum.side_brush_hours': {'siid': 4, 'piid': 9}, 'viomi_vacuum.main_brush_life': {'siid': 4, 'piid': 10}, 'viomi_vacuum.main_brush_hours': {'siid': 4, 'piid': 11}, 'viomi_vacuum.hypa_life': {'siid': 4, 'piid': 12}, 'viomi_vacuum.hypa_hours': {'siid': 4, 'piid': 13}, 'viomi_vacuum.mop_life': {'siid': 4, 'piid': 14}, 'viomi_vacuum.mop_hours': {'siid': 4, 'piid': 15}, 'viomi_vacuum.direction': {'siid': 4, 'piid': 16}, 'viomi_vacuum.suction_grade': {'siid': 4, 'piid': 17}, 'viomi_vacuum.water_grade': {'siid': 4, 'piid': 18}, 'viomi_vacuum.map_num': {'siid': 4, 'piid': 23}, 'viomi_vacuum.time_zone': {'siid': 4, 'piid': 24}, 'viomi_vacuum.clean_start_time': {'siid': 4, 'piid': 25}, 'viomi_vacuum.clean_use_time': {'siid': 4, 'piid': 26}, 'viomi_vacuum.clean_area': {'siid': 4, 'piid': 27}, 'viomi_vacuum.clean_map_url': {'siid': 4, 'piid': 28}, 'viomi_vacuum.clean_mode': {'siid': 4, 'piid': 29}, 'viomi_vacuum.clean_way': {'siid': 4, 'piid': 30}, 'viomi_vacuum.cur_lang': {'siid': 4, 'piid': 31}, 'viomi_vacuum.cur_map_id': {'siid': 4, 'piid': 32}, 'viomi_vacuum.cur_map_url': {'siid': 4, 'piid': 33}, 'viomi_vacuum.last_update_time': {'siid': 4, 'piid': 34}, 'viomi_vacuum.consumable_index': {'siid': 4, 'piid': 35}, 'viomi_vacuum.clean_room_mode': {'siid': 4, 'piid': 36}, 'viomi_vacuum.clean_room_oper': {'siid': 4, 'piid': 37}, 'viomi_vacuum.clean_room_ids': {'siid': 4, 'piid': 38}, 'viomi_vacuum.has_map': {'siid': 4, 'piid': 39}, 'viomi_vacuum.has_newmap': {'siid': 4, 'piid': 40}, 'viomi_vacuum.dust_collection': {'siid': 4, 'piid': 41}, 'battery.battery_level': {'siid': 3, 'piid': 1}}, max_properties: 10/86

I tried commenting out the “viomi.vacuum.v18” line in miot_local_devices.py but looks like it stills tries to connect locally. Anything else I could try?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:41 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
r3pekcommented, Jan 12, 2022

YAY! Working now 😉 thx a bunch!

1reaction
al-onecommented, Jan 12, 2022

Upgrade to master branch and try:

​#​ configuration.yaml​
xiaomi_miot:
  device_customizes:
    viomi.vacuum.v18:
      attributes_template: |-
        {%- set tim = data['viomi_vacuum.clean_use_time'] | default(3651) | int(0) %}
        {{ { 'clean_use_time': (tim | timestamp_utc(''))[-14:-6] | default('00:00') } }}
Read more comments on GitHub >

github_iconTop Results From Across the Web

viomi.vacuum.v18 stopped working with checksum error #115
Try this shell command to check the device information, if it fails, please try to reset and re-bind to MiHome APP.
Read more >
FAQ - Viomi 5G IoT Home
2) Check whether the equipment is jammed by any foreign object such as towel, scrap or hair, which may cause the equipment fail...
Read more >
Can't connect Xiaomi Mi Vacuum to phone app - Reddit
When I add a new device and select Mi Robot Vacuum Mop, it will scan but never find the device. I even tried...
Read more >
Viomi.vacuum.v8 support for the Xiaomi Miio Integration
Hi guys,. I have the Viomi s9 'viomi.vacuum.v18', tested all the integrations for viomi and mi, and none was working for me. Did...
Read more >
Viomi Robot Vacuum-mop - How to Set up Map ... - YouTube
Watch this video to learn how to set up map management on Mijia/MiHome(Xiaomi Smart Home APP).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found