Skip to content

Devqon/lovelace-mini-thermostat

Repository files navigation

ABANDONED

This repository is not in active development. Please consider to use https://github.com/artem-sedykh/mini-climate-card instead

Mini Thermostat Card by @devqon

A small lovelace card for controlling a thermostat

GitHub Release License hacs_badge

Project Maintenance GitHub Activity

Discord Community Forum

Installation

HACS compatible

- url: /community_plugin/lovelace-mini-thermostat/mini-thermostat.js
  type: module

Options

Card options

Name Type Requirement Description Default
type string Required custom:mini-thermostat
entity string Required Home Assistant climate entity ID.
name string Optional A name to display in the header
layout Layout Optional See Layout Object
icons Object Optional Mapping for overriding icons
labels Object Optional Mapping for overriding labels
step_size number Optional Stepsize for the up/down buttons 0.5
tap_action Object Optional The action to perform when tapping the state. See tap_action more-info
hold_action Object Optional The action to perform when holding the state. See hold_action more-info
double_tap_action Object Optional The action to perform when double tapping the state. See double_tap_action more-info

Layout Object

Name Type Required Description Default
grouped boolean Optional Set true for smaller card (used for entities for example) false
tiny boolean Optional Set true for even tinier card (sets padding on the card to zero) false
dropdown string Optional hvac_modes or preset_modes
name string Optional Render a name in the middle of the card
preset_buttons List or string Optional hvac_modes or preset_modes. Can also supply custom buttons; See Preset Button Object
up_down boolean Optional Set to false to hide the up/down buttons

Preset Button Object

Name Type Required Description Default
type string Required temperature, hvac_mode, preset_mode, script or service
data Object Required See Data Object
icon string Optional An optional icon to display in the preset button
label string Optional An optional label to display in the preset button
entity string Required if type = script or service The entity for the script or service call

Data Object

Name Type Required Description Default
temperature number Required if type = temperature The target temperature
hvac_mode string Required if type = hvac_mode The HVAC mode
preset_mode string Required if type = preset_mode The preset mode
any any Optional Extra data for the script or service types

Configuration (Installation throug HACS)

- type: custom:mini-thermostat
  entity: climate.main_thermostat

Examples

- type: custom:mini-thermostat
  entity: climate.main_thermostat
  layout:
    dropdown: 'preset_modes'
  labels:
    'state_attributes.climate.preset_mode.Away and Eco': 'E&A'

- type: custom:mini-thermostat
  entity: climate.main_thermostat
  layout:
    name: 'Main Thermostat'

- type: custom:mini-thermostat
  entity: climate.main_thermostat
  layout:
    preset_buttons:
      - type: temperature
        data:
          temperature: 16
        label: ECO
      - type: temperature
        data:
          temperature: 20
        label: Default
      - type: service
        entity: scene.turn_on
        label: Hot
        data:
          entity_id: scene.make_it_melting

- type: entities
  entities:
    - climate.climate_one
      type: custom:mini-thermostat
      grouped: true
      layout:
        name: One
        dropdown: 'hvac_modes'
        up_down: false
    - climate.two
      type: custom:mini-thermostat
      grouped: true
      layout:
        name: Two