A super-simple thermostat for Home Assistant's Lovelace. The goal is to create a thermostat interface that clearly shows both current and target temperatures. This style of display works particularly well in tablet-mounted applications, when the status of a climate device may want to be viewed from a distance.
- In Home Assistant, make sure you have HACS installed.
- In HACS, go to the "frontend" section
- Select "Custom Repositories"
- Add the URL of this repository.
- Select "Lovelace" under "Category"
- Click the "Add" Button.
- The plugin should appear as a new repository. Click the "Download" button.
- Reload your browser.
- Add to resources:
url: /hacsfiles/minimalist-thermostat/minimalist-thermostat.js
type: module
This card uses the following CSS variables.
You can configure these globally using a Lovelace theme or on each card individually using Card-Mod.
Variable Name | Default Value | Use |
---|---|---|
--mt-header-font-size | 24px | Set the font size of the card's title header. |
--mt-temp-header-font-size | 2em | Set the font size of the "Current" and "Target" temperature headers. |
--mt-temp-header-margin-bottom | 0px | Set the margin between the temperature headers and their numeric values. |
--mt-number-font-size | 4em | Set the font size of the temperature numeric values. |
--mt-unit-font-size | 0.5em | Set the font size of the temperature unit. |
--mt-target-button-spacing | 2px | Set the spacing between the temperature control buttons and the target temperature value. |
type: 'custom:minimalist-thermostat'
panel: true
style: |
ha-card {
--mt-header-font-size: 2em;
--mt-number-font-size: 12vmax;
--mt-temp-header-font-size: 2em;
--mt-header-margin-bottom: 24px;
}
- Add testing.
- Move mode buttons to new custom element.
- Add optional fan mode buttons.
- Add optional vane mode buttons.
- Add optional layout options (Column, row, -/+ buttons, hiding / showing elements)
- Add better support for Celcius / 0.5 degree steps.
- Add localization / language translations.
- Add more CSS variables for better customization.
- Implement "hold" action to quickly change temperature.
- Implement temperature memory to store last set temperature for each mode.
- Implement default temperature to store an optional default temperature for each mode.
This custom Lovelace card was inspired by simple-thermostat. Boilerplate code for basic card implementation was provided by @custom-cards/boilerplate-code