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

New humidifier & Add activateZoneClean #133

Open
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
4 participants
@Chao-Man
Copy link

commented Mar 27, 2018

1. Added new humidifier model.

'zhimi.humidifier.ca1': Humidifier,

2. Added activateZoneClean in vacuum.js

Takes in an array of zones.

Zones example:
[[26234,26042,26634,26642,1],[26232,25304,27282,25804,2],[26246,24189,27296,25139,2]]

Single zone example:
[26234,26042,26634,26642,1]

Each zone contains an array of 5 values. top-left-x, top-left-y, bottom-right-x, bottom-right-y, number of clean times.

Maps are always 51200 x 51200. The charger/starting location is always the centre; so 25600, 25600

Tip on creating zones

Despite not having the map data we can make zones by having the mi home app open, drawing a square to surround 25600,25600 (the starting location) it will show the zone we've set. We can find the coordinates of our desired zone through trial and error.

As long as the vacuum is started from the charging dock, it should always result in drawing the same map; and thus same zone coordinates. Although deviations can occur from moving the dock, or moving the vacuum by hand.

@Chao-Man Chao-Man force-pushed the Chao-Man:master branch from 039f5ce to d6a7df3 Mar 27, 2018

@Chao-Man Chao-Man changed the title Add new humidifier zhimi.humidifier.ca1 New humidifier & Add activateZoneClean Mar 27, 2018

@ckuburlis

This comment has been minimized.

Copy link

commented Jun 17, 2018

Any updates with this?

@youask0

This comment has been minimized.

Copy link

commented Jun 20, 2018

also very interested in the zone clean implatation

@kusmierz kusmierz referenced this pull request Jun 27, 2018

Closed

Vacuum zone cleaning #119

@jghaanstra jghaanstra referenced this pull request Jul 22, 2018

Closed

Zone cleaning #44

@johnou

johnou approved these changes Nov 18, 2018

@johnou

This comment has been minimized.

Copy link

commented Nov 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.