GithubHelp home page GithubHelp logo

furnace-filter-life-sensor-0.96-and-newer's Introduction

Furnace filter runtime sensor (Home Assistant >= 0.96)

This is a re-release of the previous filter runtime sensor in package format instead of in separate pieces. Not sure why I didn't do it this way in the first place.

This package uses the input_text and input_number integrations, template sensors, a script, history stats sensors, and an automation to track and display the total HVAC runtime since the furnace filter was last changed. It also calculates an estimate of the number of days until your filter will need to be changed. History stats are great, but they're limited to what you have purge_keep_days set to in recorder. This package only requires one day of history to record runtime and seven days to calculate remaining runtime based on a rolling seven-day average.

  • The furnace_filter input_text is a time/date string and is used to record when the filter was last changed.
  • The hvac_runtime input_number stores the total runtime since the filter was last changed.
  • The replacement_threshold input_number is used to set the number of hours that you expect the filter to last. I like sliders, but you can of course change the configuration to box if you prefer to type out a number.
  • The script sets furnace_filter to the current date/time and resets hvac_runtime. You can call this script in an entity button in your frontend to conveniently reset everything after you change the filter.
  • The history stats sensors record the amount of time (in hours) that the system has been heating/cooling starting at midnight on the day the filter was changed and ending at the time the filter was changed. This is used to not double-count runtime when the filter is marked as changed and hvac_runtime is updated. Some are also used to calculate a rolling seven-day average to determine approximately how many days are remaining until the next filter change will be required. The value that replacement_threshold is set to is used in this calculation.
  • The hvac_action template sensor is required for HASS versions 0.96 and newer to allow the history stats sensors to track heating/cooling runtime due to changes in the Climate component. NOTE: You'll need to change the entity ID in this sensor to match your thermostat entity ID, otherwise this won't work.
  • A template sensor adds the value in hvac_runtime and the heating/cooling runtime for the current day, and an automation runs each night to update hvac_runtime with this value so that the total runtime is permanently stored.

Prerequisites

  • You must have a thermostat connected to Home Assistant via one of the Climate platforms.
  • You must be running Home Assistant version 0.96 or newer (otherwise you'll need to tweak this a little bit).
  • packages must be defined in your configuration.yaml. Don't be scared, it's not difficult.

FAQ

Q. Why did you use an input_text instead of input_datetime for the furnace filter change date?
A. I have no idea.

Q. What? But that doesn't make any sense.
A. I know, but it works.

Q. But I don't like using packages.
A. That's not a question. And too bad.

Q. Are you really as good looking in person as you are in your avatar?
A. Even more, actually.

furnace-filter-life-sensor-0.96-and-newer's People

Contributors

jrprinty avatar tediore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jrprinty phidauex

furnace-filter-life-sensor-0.96-and-newer's Issues

Feature Request - fan use

This project looks great but I noticed it doesn't take into consideration the use of the fan.

On my nest I have the following attributes:

hvac_modes:

  • 'off'
  • heat_cool
  • heat
  • cool
    min_temp: 10
    max_temp: 32
    fan_modes:
  • 'on'
  • 'off'
    preset_modes:
  • none
  • eco
    current_temperature: 25.2
    temperature: 28
    target_temp_high: null
    target_temp_low: null
    fan_mode: 'off'
    hvac_action: idle
    preset_mode: none
    friendly_name: Dining Room
    supported_features: 27

Seems it does not affect HVAC action, when the fan is on it still states "idle" and you would have to use the fan_mode state of on or off.

Any chance you can add this?
Thanks in advance!

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.