Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homekit #9

Open
boscorelly opened this issue Apr 15, 2020 · 5 comments
Open

Homekit #9

boscorelly opened this issue Apr 15, 2020 · 5 comments

Comments

@boscorelly
Copy link

hi,

how to add it to homekit ?

@charlesvestal
Copy link

charlesvestal commented May 13, 2020

While this is not an issue with this module, here's an example config:

  filter:
    include_domains
      - vacuum
    include_entities:
      - vacuum.xiaomi_vacuum

Make sure you add the home assistant bridge to your homekit setup via the code in your home assistant notifications

The vacuum will be exposed as a switch: on is clean all, off is return to dock.

I have scripts that are also exposed as switches that allow me to trigger individual rooms.

  filter:
    include_domains
      - vacuum
      - script
    include_entities:
      - vacuum.xiaom_vacuum
      - script.clean_bedroom
      - script.clean_kitchen
      - script.clean_hallway
      - script.clean_dining_room
      - script.clean_living_room
      - script.clean_kid's_room

Where an example script is:

  alias: Clean the Bedroom
  sequence:
  - data:
      command: set_mode_withroom
      params:
      - 0
      - 1
      - 1
      - 12
    entity_id: vacuum.xiaomi_vacuum
    service: vacuum.send_command

You will then have an additional switch that will clean the room. You'll need to determine the room number (in this case 12) by sending commands to the entity itself and seeing where it starts to vacuum on your map.

@DaylightMonet
Copy link

@charlesvestal I don't think you understand what he wants to ask. I have the same problem, how do I adapt the homekit for this module? At present, the device can be seen in homekit but cannot be operated. Everything is good in HA. Thanks for sharing the code.

@nemoyar
Copy link

nemoyar commented Oct 23, 2020

Where an example script is:

  alias: Clean the Bedroom
  sequence:
  - data:
      command: set_mode_withroom
      params:
      - 0
      - 1
      - 1
      - 12
    entity_id: vacuum.xiaomi_vacuum
    service: vacuum.send_command

You will then have an additional switch that will clean the room. You'll need to determine the room number (in this case 12) by >sending commands to the entity itself and seeing where it starts to vacuum on your map.

@charlesvestal And there is cleaning according to the coordinates of the zone (rectangle)?

@charlesvestal
Copy link

It will clean the room as defined in the native app

@nemoyar
Copy link

nemoyar commented Oct 28, 2020

It will clean the room as defined in the native app

Not a whole room, but a separate area. This is how it doesn't work ((

`clean_carpet_in_living_room:
sequence:

  • data:
    command: set_zone
    params:
    • 1
    • "0_0_-1.2702_0.4420_-1.2702_-2.9333_1.0471_-2.9333_1.0471_0.4420"
      entity_id: vacuum.mi_mop_p_new
      service: vacuum.send_command`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants