PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.14k stars 121 forks source link

Failed to retrieve device #383

Closed VitorCastanheiro closed 1 year ago

VitorCastanheiro commented 1 year ago

Checklist

The problem

Hi! I have a Roborock S5 and I have configured the card, but for some reason it isnt able to retrieve the device. I am using the same IP and token on another widget and works fine... actually the lovelace component you also build :) works great, but not the map extractor...

What version of an integration has described problem?

v2.2.0

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

roborock.vacuum.s5

What version of Home Assistant do you use?

2022.11.5

What type of installation are you running?

Home Assistant Container

Camera's configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    host: 192.168.1.74
    token: <working token>
    username: <working mail>
    password: <working pass>
    country: de
    draw: ['all']
    attributes:
      - country

Errors shown in the HA logs (if applicable)

Log Details (ERROR)
This error originated from a custom integration.
Logger: custom_components.xiaomi_cloud_map_extractor.camera
Source: custom_components/xiaomi_cloud_map_extractor/camera.py:272
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 3:03:12 PM (13 occurrences)
Last logged: 3:14:13 PM

Failed to retrieve model

Additional information

ha vacuum card error
PiotrMachowski commented 1 year ago

Try restarting your vacuum and reloading Map Extractor

VitorCastanheiro commented 1 year ago

thanks for replying this fast Piotr! I restarted the vacuum and restarted Home Assistant, but still the same error...

VitorCastanheiro commented 1 year ago

ran the Token extractor and suddenly I have a new token! but it was working with other cards anyway... very strange though. Also the IP changed as I havent put a static IP on it though... map is now showing! apologies :) seems it is working now!!

PiotrMachowski commented 1 year ago

Great!