PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Vacuum-Map-Camera

MIT License
36 stars 2 forks source link

Vacuum is not visible in the image #3

Closed sendorm closed 4 years ago

sendorm commented 4 years ago

My configuration is as follows:

  - platform: xiaomi_vacuum_map
    vacuum_ssh: "root@192.168.xxx.xxx"
    vacuum_entity: "vacuum.roborock"

I can see the map but the vacuum is not present in the image. Also the state of the camera entity has a long list of paths such as follows:

path:
  - x: 508.36
    'y': 514.88
    a: -1.515
  - x: 508.32
    'y': 514.84
    a: -1.514
  - x: 508.32
    'y': 514.9
    a: -1.51
  - x: 508.44
    'y': 514.9
    a: -1.519
  - x: 508.54
    'y': 514.68
    a: -1.537
  - x: 508.48
    'y': 515
    a: -1.523
  - x: 508.36
    'y': 514.7
    a: -1.515
  - x: 508.5
    'y': 514.68
    a: -1.537
...
...
PiotrMachowski commented 4 years ago

Is vacuums path visible?

sendorm commented 4 years ago

No, just an empty map. And the image resolution is lower than (half in x and y) of the https://github.com/asphalter/xiaomi_vacuum method I am using.

PiotrMachowski commented 4 years ago

Ok, now I have reminded myself how this camera works.

Its purpose is to be used via map lovelace card. The path will be drawn by card itself which should look much better than drawing it in a camera entity.

Asphalters version is artificially upscaling the image, this camera returns real size of a map. It will be upscaled in the map card.

To summarize, everything is working as designed, but lovelace card is not ready yet.

sendorm commented 4 years ago

Ok, waiting for the final version then. Also one thing I don't like about the asphalter version is that only the last 10 minutes or so of the vacuum path is shown. The full run is not visible. Hope this fixes that too. Thank you.