mirror of
https://github.com/home-assistant/core.git
synced 2026-05-28 03:06:30 +01:00
b2a160d926
* Roborock Add vacuum_goto service to control vacuum movement to specified coordinates * roborock Add type specification for x_coord and y_coord in vacuum_goto service * roborock Add get_current_position service to retrieve vacuum's current coordinates * Rename vacuum services for clarity and consistency * Apply suggestions from code review Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Add integration field to vacuum service targets for Roborock --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
54 lines
1.3 KiB
Python
54 lines
1.3 KiB
Python
"""Constants for Roborock."""
|
|
|
|
from vacuum_map_parser_base.config.drawable import Drawable
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "roborock"
|
|
CONF_ENTRY_CODE = "code"
|
|
CONF_BASE_URL = "base_url"
|
|
CONF_USER_DATA = "user_data"
|
|
|
|
# Option Flow steps
|
|
DRAWABLES = "drawables"
|
|
|
|
DEFAULT_DRAWABLES = {
|
|
Drawable.CHARGER: True,
|
|
Drawable.CLEANED_AREA: False,
|
|
Drawable.GOTO_PATH: False,
|
|
Drawable.IGNORED_OBSTACLES: False,
|
|
Drawable.IGNORED_OBSTACLES_WITH_PHOTO: False,
|
|
Drawable.MOP_PATH: False,
|
|
Drawable.NO_CARPET_AREAS: False,
|
|
Drawable.NO_GO_AREAS: False,
|
|
Drawable.NO_MOPPING_AREAS: False,
|
|
Drawable.OBSTACLES: False,
|
|
Drawable.OBSTACLES_WITH_PHOTO: False,
|
|
Drawable.PATH: True,
|
|
Drawable.PREDICTED_PATH: False,
|
|
Drawable.VACUUM_POSITION: True,
|
|
Drawable.VIRTUAL_WALLS: False,
|
|
Drawable.ZONES: False,
|
|
}
|
|
|
|
PLATFORMS = [
|
|
Platform.BINARY_SENSOR,
|
|
Platform.BUTTON,
|
|
Platform.IMAGE,
|
|
Platform.NUMBER,
|
|
Platform.SELECT,
|
|
Platform.SENSOR,
|
|
Platform.SWITCH,
|
|
Platform.TIME,
|
|
Platform.VACUUM,
|
|
]
|
|
|
|
|
|
IMAGE_CACHE_INTERVAL = 90
|
|
|
|
MAP_SLEEP = 3
|
|
|
|
GET_MAPS_SERVICE_NAME = "get_maps"
|
|
SET_VACUUM_GOTO_POSITION_SERVICE_NAME = "set_vacuum_goto_position"
|
|
GET_VACUUM_CURRENT_POSITION_SERVICE_NAME = "get_vacuum_current_position"
|