Coder Social home page Coder Social logo

dual-thermostat's Introduction

Lovelace Dual Thermostat Card

A custom Lovelace card based on the native thermostat card that allows to control dual thermostats that create separate Heat and Cool entities.

Heat and Cool entities are updated depending on the active thermostat mode. The low point on the Auto mode controls the heat entity and the high point controls the cool entity allowing you to use a single card for both entities.

Example thermostat

Installation

  1. Download the repo as a zip or with git clone and copy the /dual-thermostat folder to the /www in your configuration folder.
  2. Configure Lovelace to load the card:
    resources:
      - url: /local/dual-thermostat/dual-thermostat.js?v=1
        type: js
    

Available configuration options:

  • entities array
    • Using entity objects:
      • entity string: The thermostat entity id required
      • type string: cool or heat required
    • Using string notation (Cooling entity first):
      • string cool_entity_id The thermostat cooling entity id required
      • string heat_entity_id The thermostat heating entity id required
  • name string: Override the card name. (Default: Uses the friendly_name attribute of the first climate entity provided)
  • fan_control bool: Show the fan control dropdown (Default: false)
  • min_slider integer: Override the minimum value of the slider (Default: Uses the 'min_temp' attribute provided by the thermostat)
  • max_slider integer: Override the maximum value of the slider (Default: Uses the 'max_temp' attribute provided by the thermostat)

Example usage:

Using entity objects

cards:
  - type: custom:dual-thermostat
    name: Downstairs
    entities:
      - entity: climate.downstairs_cool
        type: cool
      - entity: climate.downstairs_heat
        type: heat
    fan_control: true
    min_slider: 60
    max_slider: 80

Using string (First provided entity will define to the cool entity)

cards:
  - type: custom:dual-thermostat
    name: Downstairs
    entities:
      - climate.downstairs_cool
      - climate.downstairs_heat
    fan_control: true
    min_slider: 60
    max_slider: 80

dual-thermostat's People

Contributors

enriqg9 avatar simpat1zq avatar

Watchers

Travis Kuennen avatar  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.