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.12k stars 121 forks source link

Vacuum szkj.vacuum.mjfc01 #313

Open lasry1 opened 2 years ago

lasry1 commented 2 years ago

Checklist

What vacuum model do you want to be supported?

szkj.vacuum.mjfc01

What is its name?

XIAOMI Robot Vacuum MIJIA 2022 anti-tangle

Available APIs

Errors shown in the HA logs (if applicable)

Other info

I don't know how to extract the map, the instruction are unclear. I have added 'store_mapraw: true' to my configuration but there is no 'tmp' folder inside the 'config' folder. I have access through SSH and I have the regular installation from HomeAssistant (OS i guess). There is a 'tmp' folder in the root directory but that folder is empty. The command 'docker exec homeassistant bash -c "mkdir -p /config/tmp/ && cp /tmp/map* /config/tmp/"' returns '-bash: docker: command not found' from the Rpi (SSH access)

I have added store_map_path: "/config" and it seems to save the map, i have emailed it.

Forcing the APIs doesn't show the map.

Without forcing the API says: Vacuum szkj.vacuum.mjfc01 is not supported xiaomi: vacuum isn't supported viomi: not showing anything roidmi: not showing anything dreame: not showing anything


If helps, I had to integrate this vacuum with xiaomi miot instead of with the xiaomi miio integration as with the miio integration doesn't recognize the vacuum

https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:vacuum:0000A006:szkj-mjfc01:1

Also if helps the card shows an error: 'Invalid calibration, please check your configuration'

My config is:

  - platform: xiaomi_cloud_map_extractor
    host: 192.168.1.104
    token: 7046537a30785636517867527344776b
    username: !secret xiaomi_cloud_account
    password: !secret xiaomi_cloud_password
    draw: ['all']
    name: mapapro
    store_map_raw: true
    #force_api: dreame #roidmi #viomi #xiaomi
    attributes:
      - calibration_points
lasry1 commented 1 year ago

I was able to retrieve the map (i think correctly) and i have send it to your email, i hope you received it and its valid

lasry1 commented 1 year ago

any news on this on how to get it working?? Thanks

lasry1 commented 1 year ago

Could you have a look into this please?? Or could i know what i could do to be able to add the map?

Thank you

PiotrMachowski commented 1 year ago

This is not a simple feature to add, I will check it out but don't expect it to work soon

lasry1 commented 1 year ago

ok thank you so much for your hard work, i did not know this vacuum was a lot different to the other xiaomi ones

On 13 Feb 2023, at 10:44, Piotr Machowski @.***> wrote:

This is not a simple feature to add, I will check it out but don't expect it to work soon

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues/313#issuecomment-1427719931, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKWUQE5E7KXJUYTJXKQF55TWXIGCXANCNFSM52FKYKTQ. You are receiving this because you authored the thread.

ndraiman commented 2 months ago

I'm trying to add support for a similar model (szkj.vacuum.fc01eu) for myself, is there any place I can read about the map data binary format?