romedtino / simple-wyze-vac

Home Assistant Custom Component for Wyze Vacuum
48 stars 9 forks source link

[QUESTION] Anyone have a working Xiomi lovelace config with room selection? #64

Closed SpartanTech closed 1 week ago

SpartanTech commented 1 year ago

Simple question hopefully I can close after.

Does anyone have a working xiomi lovelace card config they can paste here for me that works with rooms? Im looking at the wiki on their github and Im failing to make any kind of room show up on the lovelace card. I have 8 rooms defined (on wyze app), they show up on home assistant okay, but getting the xiomi card to showup with rooms i cant get working.

Would anyone mind pasting their config?

`type: custom:xiaomi-vacuum-map-card title: Vacuum entity: vacuum.romo_vacuum vacuum_platform: romedtino/simple-wyze-vac map_source: camera: camera.romo_vacuum_camera map_locked: true map_modes:

romedtino commented 1 year ago

Neat, didn't know this card existed. I've mostly been using denysdovhan's Vacuum Card. I might take a poke and see if I can set mine up and I'll let you know

romedtino commented 1 year ago

Follow up- Seems to work pretty well Here's a screenshot- image

Here's my yaml

type: custom:xiaomi-vacuum-map-card
entity: vacuum.theovac
vacuum_platform: romedtino/simple-wyze-vac
map_source:
  camera: camera.theovac_camera
map_locked: false
title: TheoVac
two_finger_pan: false
map_modes:
  - template: vacuum_clean_segment
    predefined_selections:
      - id: Bedroom
        outline:
          - - 360
            - 500
          - - 360
            - 950
          - - 950
            - 950
          - - 950
            - 500
        label:
          text: Bedroom
          x: 680
          'y': 690
          offset_y: 35
        icon:
          name: mdi:bed
          x: 680
          'y': 690

I'm thinking your outline is missing a few fields, it should be this for a rectangle

[ [x1, y1], [x1, y2], [x2, y2], [x2, y1] ]

and the coordinates become

[x1, y1]                          [x1, y2]

[x2, y1]                          [x2, y2]

Good luck and good find! :D I might switch to this card now too

SpartanTech commented 1 year ago

Wow, much respect to you for not even using that card and getting it to work. Yeah I think I did the initial stages wrong where I grabbed the coords. Did you use integer mode when you were figuring out the coordinates? And then switch to wyze platform in the card UI once you had the coordinates?

iceman73 commented 5 months ago

Thankyou, this fits nicely in this card

image