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

Add filters to climate and light service descriptions #86162

Merged
merged 8 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add filters to climate and light service descriptions
  • Loading branch information
emontnemery committed Mar 1, 2023
commit 44d235f4498c862f674f80bd5fa7a6d4d4a44dcc
2 changes: 1 addition & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rules:
comments:
level: error
require-starting-space: true
min-spaces-from-content: 2
min-spaces-from-content: 1
emontnemery marked this conversation as resolved.
Show resolved Hide resolved
comments-indentation:
level: error
document-end:
Expand Down
22 changes: 22 additions & 0 deletions homeassistant/components/climate/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ set_aux_heat:
target:
entity:
domain: climate
supported_features:
- 64 # ClimateEntityFeature.AUX_HEAT
emontnemery marked this conversation as resolved.
Show resolved Hide resolved
fields:
aux_heat:
name: Auxiliary heating
Expand All @@ -20,6 +22,8 @@ set_preset_mode:
target:
entity:
domain: climate
supported_features:
- 16 # ClimateEntityFeature.PRESET_MODE
fields:
preset_mode:
name: Preset mode
Expand All @@ -35,10 +39,16 @@ set_temperature:
target:
entity:
domain: climate
supported_features:
- 1 # ClimateEntityFeature.TARGET_TEMPERATURE
- 2 # ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
fields:
temperature:
name: Temperature
description: New target temperature for HVAC.
filter:
supported_features:
- 1 # ClimateEntityFeature.TARGET_TEMPERATURE
selector:
number:
min: 0
Expand All @@ -48,6 +58,9 @@ set_temperature:
target_temp_high:
name: Target temperature high
description: New target high temperature for HVAC.
filter:
supported_features:
- 2 # ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
advanced: true
selector:
number:
Expand All @@ -58,6 +71,9 @@ set_temperature:
target_temp_low:
name: Target temperature low
description: New target low temperature for HVAC.
filter:
supported_features:
- 2 # ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
advanced: true
selector:
number:
Expand Down Expand Up @@ -92,6 +108,8 @@ set_humidity:
target:
entity:
domain: climate
supported_features:
- 4 # ClimateEntityFeature.TARGET_HUMIDITY
fields:
humidity:
name: Humidity
Expand All @@ -109,6 +127,8 @@ set_fan_mode:
target:
entity:
domain: climate
supported_features:
- 8 # ClimateEntityFeature.FAN_MODE
fields:
fan_mode:
name: Fan mode
Expand Down Expand Up @@ -152,6 +172,8 @@ set_swing_mode:
target:
entity:
domain: climate
supported_features:
- 32 # ClimateEntityFeature.SWING_MODE
fields:
swing_mode:
name: Swing mode
Expand Down
Loading