Skip to content

Commit

Permalink
allow field temperature_unit in set_temperature action call
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed Dec 31, 2024
1 parent 7a5c773 commit edc1a9a
Showing 1 changed file with 17 additions and 0 deletions.
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 HA 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

0 comments on commit edc1a9a

Please sign in to comment.