Git Product home page Git Product logo

automatic-fan-control-based-on-temperature's Introduction

Hi, i really liked the work made by Sam04, so heavly inspired by his work i created my verion of this temperature controlled fan blueprint.

Fan turns on if temperature inside is greater than the threshold value considering outside temperature (during winter). I removed the occupancy entity so the fan is dependent only from the temperature.

I use it to automatically turn on and off the cpu fan based on cpu temperature sensor, so it doesn't make useless noise.

Make sure to set the temperature device class for sensor and fan for entity even if you use a switch like me. (you can use platform template for both)

Sensors example:

Fan entity must be included in fan domain, if you have a switch, you shoud use a template.

fan:
  - platform: template
    fans:
      cpu_rack_fan:
        friendly_name: "CPU Rack fan"
        value_template: "{{ 'on' if is_state('switch.fan_rack', 'on') else 'off' }}"
        turn_on:
          service: switch.turn_on
          data:
            entity_id: switch.fan_rack
        turn_off:
          service: switch.turn_off
          data:
            entity_id: switch.fan_rack

Temperature sensor -> template

sensor:
  - platform: command_line
    name: CPU Temperature
    command: "cat /sys/class/hwmon/hwmon0/temp1_input"
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) | round(1) }}'
  - platform: template
    sensors:
      cpu_sensor_temperature:
        friendly_name: "CPU Temperature Sensor"
        unit_of_measurement: "°C"
        value_template: "{{ states('sensor.cpu_temperature') }}"
        device_class: temperature

automatic-fan-control-based-on-temperature's People

Contributors

fabiosoft avatar

Stargazers

 avatar  avatar  avatar

Watchers

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