Code Monkey home page Code Monkey logo

fallback-generic-thermostat's Introduction

Fallback Generic Thermostat for Home Assistant

The generic-thermostat for Home Assistant has a big problem. If for some reason the temperature sensor becomes unavailable, the controller just keeps the state its in. So it can heat forever, or not heat at all. This is problematic when running Home Assistant in remote locations where physical intervention is not an option.

This component extends the generic-thermostat by adding a fallback mode in case the temperature sensor becomes unavailable. In that mode, the climate controller regulates heat by turning on the heater on for some % of time.

Installation

You can install this either manually copying files or using HACS.

Usage

Uses the exact same configuration as the generic-thermostat, but adds 3 new configuration variables:

Configuration Variable Description
fallback_on_ratio A number between 0 and 1 that represents how much of the time the heater switch should be on. This number should be in 0.05 increments e.g. 0.15 or 0.45
fallback_interval The duration that the fallback_on_ratio relates to. This value defaults to 60 minutes.
fallback_force_switch A optional switch entity id that forces fallback mode to be enabled. This is useful when you are tweaking fallback_on_ratio.

Note

If fallback_interval is 60 minutes and fallback_on_ratio is 0.2, the radiator will be on for 12 minutes and off for 48 minutes per hour when the temperature sensor becomes unavailable.

Example

Basic

climate:
  - platform: fallback_generic_thermostat
    name: Study
    heater: switch.study_heater
    target_sensor: sensor.study_temperature
    fallback_on_ratio: 0.2 # Heater will be on 20% of the time (12 minutes per hour)

Full

input_boolean:
  force_fallback_mode:
    name: Force fallback mode

climate:
  - platform: fallback_generic_thermostat
    name: Study
    heater: switch.study_heater
    target_sensor: sensor.study_temperature
    fallback_on_ratio: 0.5 # Heater will be on 50% of the time (15 minutes per half an hour)
    fallback_interval: 00:30:00
    fallback_force_switch: input_boolean.force_fallback_mode

fallback-generic-thermostat's People

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.