Skip to content

Commit

Permalink
Revert the service domain back to vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Feb 20, 2019
1 parent d9a2dfb commit 42748f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
18 changes: 0 additions & 18 deletions homeassistant/components/neato/services.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions homeassistant/components/neato/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
SUPPORT_STATE, SUPPORT_STOP, SUPPORT_START, STATE_IDLE,
STATE_PAUSED, STATE_CLEANING, STATE_DOCKED, STATE_RETURNING, STATE_ERROR,
SUPPORT_MAP, ATTR_STATUS, ATTR_BATTERY_LEVEL, ATTR_BATTERY_ICON,
SUPPORT_LOCATE, SUPPORT_CLEAN_SPOT)
SUPPORT_LOCATE, SUPPORT_CLEAN_SPOT, DOMAIN)
from homeassistant.components.neato import (
NEATO_ROBOTS, NEATO_LOGIN, NEATO_MAP_DATA, ACTION, ERRORS, MODE, ALERTS,
NEATO_PERSISTENT_MAPS, DOMAIN as NEATO_DOMAIN)
NEATO_PERSISTENT_MAPS)

from homeassistant.helpers.service import extract_entity_ids
import homeassistant.helpers.config_validation as cv
Expand Down Expand Up @@ -82,7 +82,7 @@ def service_to_entities(call):
if entity.entity_id in entity_ids]
return entities

hass.services.register(NEATO_DOMAIN, SERVICE_NEATO_CUSTOM_CLEANING,
hass.services.register(DOMAIN, SERVICE_NEATO_CUSTOM_CLEANING,
neato_custom_cleaning_service,
schema=SERVICE_NEATO_CUSTOM_CLEANING_SCHEMA)

Expand Down
19 changes: 19 additions & 0 deletions homeassistant/components/vacuum/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,22 @@ xiaomi_clean_zone:
repeats:
description: Number of cleaning repeats for each zone between 1 and 3.
example: '1'

neato_custom_cleaning:
description: Zone Cleaning service call specific to Neato Botvacs.
fields:
entity_id:
description: Name of the vacuum entity. [Required]
example: 'vacuum.neato'
mode:
description: "Set the cleaning mode: 1 for eco and 2 for turbo. Defaults to turbo if not set."
example: 2
navigation:
description: "Set the navigation mode: 1 for normal, 2 for extra care, 3 for deep. Defaults to normal if not set."
example: 1
category:
description: "Whether to use a persistent map or not for cleaning (i.e. No go lines): 2 for no map, 4 for map. Default to using map if not set (and fallback to no map if no map is found)."
example: 2
zone:
description: Only supported on the Botvac D7. Name of the zone to clean. Defaults to no zone i.e. complete house cleanup.
example: "Kitchen"

0 comments on commit 42748f9

Please sign in to comment.