Card Climate - dckiller51/astrion-custom-dashboard GitHub Wiki
🌡️ Climate Card (climate)
Control a thermostat, an air conditioner or a heat pump: the target temperature, the mode, the fan speed and the swing. Modelled on Home Assistant's own climate tile.
📸 Preview
✨ Features & Possibilities
- Header: the name and a power button that turns the unit off. To turn it back on, tap a mode.
- Target temperature with − / + buttons, and the current temperature.
- The step follows the device (
target_temp_step), so a unit that only takes whole degrees never looks stuck on 25.5. - Limited to the device's min / max.
- In heat_cool (auto) mode, the low and high setpoints are shown.
- The step follows the device (
- Mode chips: HVAC mode, fan mode, swing mode. They come from what the device reports, in its order. The off mode has no chip: the power button does it.
- Icons or text for each row of chips, like Home Assistant's tile card.
- Captions above each row, which you can hide.
⚙️ Options Reference
| Parameter | Type | Default | Description |
|---|---|---|---|
type |
string | — | climate |
entity_id |
string | — | The climate entity. Required. |
name |
string | friendly name | Name shown on the card. |
step |
number | 1 |
Temperature step, only if the device doesn't report its own. |
hvac_modes |
list | from the device | Show only these modes, in this order, e.g. ["heat", "cool", "auto"]. |
fan_modes |
list | from the device | Same for fan modes. |
swing_modes |
list | from the device | Same for swing modes. |
hvac_mode_style |
string | icons |
label for text chips. |
fan_mode_style |
string | label |
icons for icon chips. |
swing_mode_style |
string | label |
icons for icon chips. |
show_captions |
bool | true |
false hides the captions above the chip rows. |
📄 JSON Configuration Example
{
"type": "climate",
"options": {
"entity_id": "climate.living_room_ac",
"name": "Air conditioning",
"hvac_modes": ["cool", "heat", "dry", "fan_only"],
"fan_mode_style": "icons",
"show_captions": false
}
}
A device that reports no fan modes (a heating-only thermostat) shows no fan row (before 1.2.9 it got a dead low / medium / high / auto row).
See also: Card Fan