Giter VIP home page Giter VIP logo

minimalist-thermostat's Introduction

Minimalist Thermostat

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.

Version License hacs_badge GitHub Activity

Installation

  1. In Home Assistant, make sure you have HACS installed.
  2. In HACS, go to the "frontend" section
  3. Select "Custom Repositories"
  4. Add the URL of this repository.
  5. Select "Lovelace" under "Category"
  6. Click the "Add" Button.
  7. The plugin should appear as a new repository. Click the "Download" button.
  8. Reload your browser.
  9. Add to resources:
url: /hacsfiles/minimalist-thermostat/minimalist-thermostat.js
type: module

Examples

Default Configuration

Multiple Example

Panel Configuration (Using Card-Mod)

Fullscreen Example

CSS Variables

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.

Full-Screen Panel Configuration (Card-Mod)

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;
  }

To-do

  • 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.

Credit

This custom Lovelace card was inspired by simple-thermostat. Boilerplate code for basic card implementation was provided by @custom-cards/boilerplate-code

minimalist-thermostat's People

Contributors

shepleysound avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.