allow field temperature_unit in set_temperature action call

This commit is contained in:
Michael 2024-12-31 13:16:26 +00:00
parent 7a5c773c74
commit edc1a9a6d7

View File

@ -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
@ -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