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 field temperature_unit in climates set_temperature action call #36625

Closed
Changes from all commits
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
17 changes: 17 additions & 0 deletions source/_integrations/climate.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Set target temperature of climate device
| `temperature` | yes | New target temperature for climate device (commonly referred to as a *setpoint*). Do not use if `hvac_mode` is `heat_cool`.
| `target_temp_high` | yes | The highest temperature that the climate device will allow. Required if `hvac_mode` is `heat_cool`. Required together with `target_temp_low`.
| `target_temp_low` | yes | The lowest temperature that the climate device will allow. Required if `hvac_mode` is `heat_cool`. Required together with `target_temp_high`.
| `temperature_unit` | yes | The unit in which the above target temperatures should be set. This defaults based on the selected unit system of your Home Assistant instance.
| `hvac_mode` | yes | HVAC mode to set the climate device to. This defaults to current HVAC mode if not set, or set incorrectly.

#### Automation examples
Expand Down Expand Up @@ -134,6 +135,22 @@ automation:
hvac_mode: heat_cool
```

```yaml
### Set temperature to 77°F in heat mode (results in 25°C)
automation:
triggers:
- trigger: time
at: "07:15:00"
actions:
- action: climate.set_temperature
target:
entity_id: climate.kitchen
data:
temperature: 77
temperature_unit: °F
hvac_mode: heat
```

### Action `climate.set_humidity`

Set target humidity of climate device
Expand Down
Loading