Skip to content
Merged
141 changes: 0 additions & 141 deletions homeassistant/components/fan/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,147 +54,6 @@ set_direction:
description: The direction to rotate. Either 'forward' or 'reverse'
example: 'forward'

xiaomi_miio_set_buzzer_on:
description: Turn the buzzer on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_buzzer_off:
description: Turn the buzzer off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_led_on:
description: Turn the led on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_led_off:
description: Turn the led off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_child_lock_on:
description: Turn the child lock on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_child_lock_off:
description: Turn the child lock off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_favorite_level:
description: Set the favorite level.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'
level:
description: Level, between 0 and 16.
example: 1

xiaomi_miio_set_led_brightness:
description: Set the led brightness.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'
brightness:
description: Brightness (0 = Bright, 1 = Dim, 2 = Off)
example: 1

xiaomi_miio_set_auto_detect_on:
description: Turn the auto detect on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_auto_detect_off:
description: Turn the auto detect off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_learn_mode_on:
description: Turn the learn mode on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_learn_mode_off:
description: Turn the learn mode off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_volume:
description: Set the sound volume.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'
volume:
description: Volume, between 0 and 100.
example: 50

xiaomi_miio_reset_filter:
description: Reset the filter lifetime and usage.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_extra_features:
description: Manipulates a storage register which advertises extra features. The Mi Home app evaluates the value. A feature called "turbo mode" is unlocked in the app on value 1.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'
features:
description: Integer, known values are 0 (default) and 1 (turbo mode).
example: 1

xiaomi_miio_set_target_humidity:
description: Set the target humidity.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'
humidity:
description: Target humidity. Allowed values are 30, 40, 50, 60, 70 and 80.
example: 50

xiaomi_miio_set_dry_on:
description: Turn the dry mode on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

xiaomi_miio_set_dry_off:
description: Turn the dry mode off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'fan.xiaomi_miio_device'

wemo_set_humidity:
description: Set the target humidity of WeMo humidifier devices.
fields:
Expand Down
20 changes: 0 additions & 20 deletions homeassistant/components/light/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,3 @@ toggle:
values:
- colorloop
- random

xiaomi_miio_set_scene:
description: Set a fixed scene.
fields:
entity_id:
description: Name of the light entity.
example: "light.xiaomi_miio"
scene:
description: Number of the fixed scene, between 1 and 4.
example: 1

xiaomi_miio_set_delayed_turn_off:
description: Delayed turn off.
fields:
entity_id:
description: Name of the light entity.
example: "light.xiaomi_miio"
time_period:
description: Time period for the delayed turn off.
example: "5, '0:05', {'minutes': 5}"
13 changes: 0 additions & 13 deletions homeassistant/components/remote/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,3 @@ learn_command:
timeout:
description: Timeout, in seconds, for the command to be learned.
example: '30'

xiaomi_miio_learn_command:
description: 'Learn an IR command, press "Call Service", point the remote at the IR device, and the learned command will be shown as a notification in Overview.'
fields:
entity_id:
description: 'Name of the entity to learn command from.'
example: 'remote.xiaomi_miio'
slot:
description: 'Define the slot used to save the IR command (Value from 1 to 1000000)'
example: '1'
timeout:
description: 'Define the timeout in seconds, before which the command must be learned.'
example: '30'
31 changes: 0 additions & 31 deletions homeassistant/components/switch/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,3 @@ toggle:
entity_id:
description: Name(s) of entities to toggle.
example: 'switch.living_room'

xiaomi_miio_set_wifi_led_on:
description: Turn the wifi led on.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'switch.xiaomi_miio_device'
xiaomi_miio_set_wifi_led_off:
description: Turn the wifi led off.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'switch.xiaomi_miio_device'
xiaomi_miio_set_power_price:
description: Set the power price.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'switch.xiaomi_miio_device'
mode:
description: Power price, between 0 and 999.
example: 31
xiaomi_miio_set_power_mode:
description: Set the power mode.
fields:
entity_id:
description: Name of the xiaomi miio entity.
example: 'switch.xiaomi_miio_device'
mode:
description: Power mode, valid values are 'normal' and 'green'.
example: 'green'
59 changes: 0 additions & 59 deletions homeassistant/components/vacuum/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,62 +85,3 @@ set_fan_speed:
fan_speed:
description: Platform dependent vacuum cleaner fan speed, with speed steps, like 'medium' or by percentage, between 0 and 100.
example: 'low'

xiaomi_remote_control_start:
description: Start remote control of the vacuum cleaner. You can then move it with `remote_control_move`, when done call `remote_control_stop`.
fields:
entity_id:
description: Name of the vacuum entity.
example: 'vacuum.xiaomi_vacuum_cleaner'

xiaomi_remote_control_stop:
description: Stop remote control mode of the vacuum cleaner.
fields:
entity_id:
description: Name of the vacuum entity.
example: 'vacuum.xiaomi_vacuum_cleaner'

xiaomi_remote_control_move:
description: Remote control the vacuum cleaner, make sure you first set it in remote control mode with `remote_control_start`.
fields:
entity_id:
description: Name of the vacuum entity.
example: 'vacuum.xiaomi_vacuum_cleaner'
velocity:
description: Speed, between -0.29 and 0.29.
example: '0.2'
rotation:
description: Rotation, between -179 degrees and 179 degrees.
example: '90'
duration:
description: Duration of the movement.
example: '1500'

xiaomi_remote_control_move_step:
description: Remote control the vacuum cleaner, only makes one move and then stops.
fields:
entity_id:
description: Name of the vacuum entity.
example: 'vacuum.xiaomi_vacuum_cleaner'
velocity:
description: Speed, between -0.29 and 0.29.
example: '0.2'
rotation:
description: Rotation, between -179 degrees and 179 degrees.
example: '90'
duration:
description: Duration of the movement.
example: '1500'

xiaomi_clean_zone:
description: Start the cleaning operation in the selected areas for the number of repeats indicated.
fields:
entity_id:
description: Name of the vacuum entity.
example: 'vacuum.xiaomi_vacuum_cleaner'
zone:
description: Array of zones. Each zone is an array of 4 integer values.
example: '[[23510,25311,25110,26362]]'
repeats:
description: Number of cleaning repeats for each zone between 1 and 3.
example: '1'
48 changes: 48 additions & 0 deletions homeassistant/components/xiaomi_miio/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"""Constants for the Xiaomi Miio component."""
DOMAIN = "xiaomi_miio"

# Fan Services
SERVICE_SET_BUZZER_ON = "set_buzzer_on"
SERVICE_SET_BUZZER_OFF = "set_buzzer_off"
SERVICE_SET_LED_ON = "set_led_on"
SERVICE_SET_LED_OFF = "set_led_off"
SERVICE_SET_CHILD_LOCK_ON = "set_child_lock_on"
SERVICE_SET_CHILD_LOCK_OFF = "set_child_lock_off"
SERVICE_SET_LED_BRIGHTNESS = "set_led_brightness"
SERVICE_SET_FAVORITE_LEVEL = "set_favorite_level"
SERVICE_SET_AUTO_DETECT_ON = "set_auto_detect_on"
SERVICE_SET_AUTO_DETECT_OFF = "set_auto_detect_off"
SERVICE_SET_LEARN_MODE_ON = "set_learn_mode_on"
SERVICE_SET_LEARN_MODE_OFF = "set_learn_mode_off"
SERVICE_SET_VOLUME = "set_volume"
SERVICE_RESET_FILTER = "reset_filter"
SERVICE_SET_EXTRA_FEATURES = "set_extra_features"
SERVICE_SET_TARGET_HUMIDITY = "set_target_humidity"
SERVICE_SET_DRY_ON = "set_dry_on"
SERVICE_SET_DRY_OFF = "set_dry_off"

# Light Services
SERVICE_SET_SCENE = "set_scene"
SERVICE_SET_DELAYED_TURN_OFF = "set_delayed_turn_off"
SERVICE_REMINDER_ON = "reminder_on"
Comment thread
raman325 marked this conversation as resolved.
Outdated
SERVICE_REMINDER_OFF = "reminder_off"
SERVICE_NIGHT_LIGHT_MODE_ON = "night_light_mode_on"
SERVICE_NIGHT_LIGHT_MODE_OFF = "night_light_mode_off"
SERVICE_EYECARE_MODE_ON = "eyecare_mode_on"
SERVICE_EYECARE_MODE_OFF = "eyecare_mode_off"

# Remote Services
SERVICE_LEARN = "learn_command"

# Switch Services
SERVICE_SET_WIFI_LED_ON = "set_wifi_led_on"
SERVICE_SET_WIFI_LED_OFF = "set_wifi_led_off"
SERVICE_SET_POWER_MODE = "set_power_mode"
SERVICE_SET_POWER_PRICE = "set_power_price"

# Vacuum Services
SERVICE_MOVE_REMOTE_CONTROL = "remote_control_move"
SERVICE_MOVE_REMOTE_CONTROL_STEP = "remote_control_move_step"
SERVICE_START_REMOTE_CONTROL = "remote_control_start"
SERVICE_STOP_REMOTE_CONTROL = "remote_control_stop"
SERVICE_CLEAN_ZONE = "clean_zone"
Loading