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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update core services files with new selectors #68810

Merged
merged 2 commits into from Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 28 additions & 14 deletions homeassistant/components/climate/services.yaml
Expand Up @@ -71,13 +71,20 @@ set_temperature:
selector:
select:
options:
- "off"
- "auto"
- "cool"
- "dry"
- "fan_only"
- "heat_cool"
- "heat"
- label: "Off"
value: "off"
- label: "Auto"
value: "auto"
- label: "Cool"
value: "cool"
- label: "Dry"
value: "dry"
- label: "Fan Only"
value: "fan_only"
- label: "Heat/Cool"
value: "heat_cool"
- label: "Heat"
value: "heat"

set_humidity:
name: Set target humidity
Expand Down Expand Up @@ -124,13 +131,20 @@ set_hvac_mode:
selector:
select:
options:
- "off"
- "auto"
- "cool"
- "dry"
- "fan_only"
- "heat_cool"
- "heat"
- label: "Off"
value: "off"
- label: "Auto"
value: "auto"
- label: "Cool"
value: "cool"
- label: "Dry"
value: "dry"
- label: "Fan Only"
value: "fan_only"
- label: "Heat/Cool"
value: "heat_cool"
- label: "Heat"
value: "heat"

set_swing_mode:
name: Set swing mode
Expand Down
6 changes: 4 additions & 2 deletions homeassistant/components/fan/services.yaml
Expand Up @@ -116,8 +116,10 @@ set_direction:
selector:
select:
options:
- "forward"
- "reverse"
- label: "Forward"
value: "forward"
- label: "Reverse"
value: "reverse"

increase_speed:
name: Increase speed
Expand Down
12 changes: 7 additions & 5 deletions homeassistant/components/frontend/services.yaml
Expand Up @@ -5,21 +5,23 @@ set_theme:
description: Set a theme unless the client selected per-device theme.
fields:
name:
name: Name
description: Name of a predefined theme, 'default' or 'none'.
name: Theme
description: Name of a predefined theme
required: true
example: "default"
selector:
text:
theme:
mode:
name: Mode
description: The mode the theme is for.
default: "light"
selector:
select:
options:
- "dark"
- "light"
- label: "Dark"
value: "dark"
- label: "Light"
value: "light"

reload_themes:
name: Reload themes
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/group/services.yaml
Expand Up @@ -25,7 +25,7 @@ set:
description: Name of icon for the group.
example: "mdi:camera"
selector:
text:
icon:
entities:
name: Entities
description: List of all members in the group. Not compatible with 'delta'.
Expand Down
41 changes: 20 additions & 21 deletions homeassistant/components/light/services.yaml
Expand Up @@ -18,12 +18,10 @@ turn_on:
max: 300
unit_of_measurement: seconds
rgb_color:
name: RGB-color
description: A list containing three integers between 0 and 255 representing the RGB (red, green, blue) color for the light.
advanced: true
example: "[255, 100, 100]"
name: Color
description: The color for the light (based on RGB - red, green, blue).
selector:
object:
color_rgb:
rgbw_color:
name: RGBW-color
description: A list containing four integers between 0 and 255 representing the RGBW (red, green, blue, white) color for the light.
Expand Down Expand Up @@ -209,14 +207,12 @@ turn_on:
selector:
object:
color_temp:
name: Color temperature (mireds)
name: Color temperature
description: Color temperature for the light in mireds.
advanced: true
selector:
number:
min: 153
max: 500
unit_of_measurement: mireds
color_temp:
min_mireds: 153
max_mireds: 500
kelvin:
name: Color temperature (Kelvin)
description: Color temperature for the light in Kelvin.
Expand Down Expand Up @@ -290,8 +286,10 @@ turn_on:
selector:
select:
options:
- long
- short
- label: "Long"
value: "long"
- label: "Short"
value: "short"
effect:
name: Effect
description: Light effect.
Expand Down Expand Up @@ -320,8 +318,10 @@ turn_off:
selector:
select:
options:
- long
- short
- label: "Long"
value: "long"
- label: "Short"
value: "short"

toggle:
name: Toggle
Expand Down Expand Up @@ -522,10 +522,7 @@ toggle:
description: Color temperature for the light in mireds.
advanced: true
selector:
number:
min: 153
max: 500
unit_of_measurement: mireds
color_temp:
kelvin:
name: Color temperature (Kelvin)
description: Color temperature for the light in Kelvin.
Expand Down Expand Up @@ -579,8 +576,10 @@ toggle:
selector:
select:
options:
- long
- short
- label: "Long"
value: "long"
- label: "Short"
value: "short"
effect:
name: Effect
description: Light effect.
Expand Down
18 changes: 12 additions & 6 deletions homeassistant/components/logger/services.yaml
Expand Up @@ -8,12 +8,18 @@ set_default_level:
selector:
select:
options:
- debug
- info
- warning
- error
- fatal
- critical
- label: "Debug"
value: "debug"
- label: "Info"
value: "info"
- label: "Warning"
value: "warning"
- label: "Error"
value: "error"
- label: "Fatal"
value: "fatal"
- label: "Critical"
value: "critical"

set_level:
name: Set level
Expand Down
9 changes: 6 additions & 3 deletions homeassistant/components/media_player/services.yaml
Expand Up @@ -215,9 +215,12 @@ repeat_set:
selector:
select:
options:
- "off"
- "all"
- "one"
- label: "Off"
value: "off"
- label: "Repeat all"
value: "all"
- label: "Repeat one"
value: "one"

join:
name: Join
Expand Down
15 changes: 10 additions & 5 deletions homeassistant/components/system_log/services.yaml
Expand Up @@ -20,11 +20,16 @@ write:
selector:
select:
options:
- "debug"
- "info"
- "warning"
- "error"
- "critical"
- label: "Debug"
value: "debug"
- label: "Info"
value: "info"
- label: "Warning"
value: "warning"
- label: "Error"
value: "error"
- label: "Critical"
value: "critical"
logger:
name: Logger
description:
Expand Down