Giter Club home page Giter Club logo

r2d2-blaster's Introduction

R2D2-Blaster

An IR blaster to control my Mitsubishi Airco unit in my Office via MQTT. To have it blend in, I've used a R2D2 USB vacuum cleaner to hide the circuits. The location for the power LED was used to place the IR LED and I've installed a DHT11 temperature sensor at the air vent.

The code is based on the following GitHub repository where I added the MQTT functionality: https://github.com/r45635/HVAC-IR-Control

Bill of Material

  • Wemos D1 Mini
  • IR LED 940 nm 5 mm
  • DHT11 or DHT22
  • 10k Ohm Resistor for DHT11 pull up
  • 330 Ohm Resistor for IR LED
  • 2N2222A NPN
  • R2-D2 Desktop Vacuum
  • Wires

Schematic

Schematic

Home Assistant Configuration

To control the airco unit from Home Assistant, i've added the following YAML into my configuration file.

climate:
 - platform: mqtt
   name: Office
   modes:
     - "off"
     - "cool"
     - "heat"
   mode_command_topic: "climate/R2D2/mode/set"
   mode_state_topic: "climate/R2D2/mode/state"
   temperature_command_topic: "climate/R2D2/temperature/set"
   temperature_state_topic: "climate/R2D2/temperature/state"
   current_temperature_topic: "climate/R2D2/temperature/sensor"
   current_temperature_template: "{{ value_json.Temperature }}"
   initial: 21
   max_temp: 31
   min_temp: 16

r2d2-blaster's People

Contributors

dverschaeve avatar

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.