Git Product home page Git Product logo

homebridge-hampton-bay's Introduction

homebridge-hampton-bay Plugin

NPM Downloads

I wrote this plugin as a wrapper around mdhiggins ESP8266-HTTP-IR-Blaster to control my Hampton Bay Ceiling fan. This particular fan uses a 303Mhz RF Remote control. To use this plugin, you need to build this ESP8266 based IR Blaster device https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster, except you need to substitute the LED with a 303Mhz RF Transmitter module.

To source the 303Mhz transmitter module, I sacrificed a Hampton Bay remote, and removed the 303Mhz SAW Resonator from the transmitter module. I then on a 315Mhz Transmitter module, removed the 315Mhz SAW Resonator and replaced it with the 303Mhz SAW Resonator. Creating my own 303Mhz Transmitter module.

Circuit Diagram

RF Transmitter

RF-LED

DHT-YL

Breadboard view

img_1611

Installation

  1. sudo npm install -g homebridge-hampton-bay

configuration

Example config.json:

{
 "platform": "HBay",
 "devices": [{
   "lightName": "Ceiling Two",
   "fanName": "Fan Two",
   "irBlaster": "ESP_8695EC.local",
   "remote_code": "0000",
   "out": 3
   },
   {
   "lightName": "Ceiling One",
   "fanName": "Fan One",
   "irBlaster": "ESP_8695EC.local",
   "remote_code": "1000",
   "out": 3
   }]
 }

Required settings

  • platform - This must be "HBay"
  • name - Name of the device ( or fanname / lightname )
  • irBlaster - Name or ip address of your IRBlaster Device
  • remote_code - This is the 4 Bit unique code for your fan controlled by the dip switches. 0 is switch UP and 1 is switch down.

Optional settings

  • dimmable - Is the light dimmable, defaults to false
  • light - Does the fan support a light, defaults to true
  • out - out setting for IR Blaster, defaults to 1
  • fanName - Name for fan device
  • lightName - Name for light device

Finding remote code for your remote / fan

This is the dip switches on your control module.

Credits

  • https://github.com/mdhiggins - Creating the ESP8266 based IR Blaster, sharing your plans and source.
  • nfarina - For creating the dummy plugin which I used as base for this plugin.

homebridge-hampton-bay's People

Contributors

northernman54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

pfn xcv58

homebridge-hampton-bay's Issues

Device not found after power outage

Sat, 10 Aug 2019 12:30:58 GMT HBay Error toggle http://undefined/json?simple=1 1 400 function() {
callback.apply(null, arguments);
cmdQueue.isRunning = false;
runQueue();
} { Error: getaddrinfo ENOTFOUND undefined undefined:80
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'undefined',
host: 'undefined',
port: 80 }

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.