Code Monkey home page Code Monkey logo

broadlinkjs's Introduction

Node.JS library for Broadlink RM2 IR controllers

A Node.JS module for controlling IR controllers from Broadlink. At present, only RM Pro (referred to as RM2 in the codebase) devices are supported. There is currently no support for the cloud API. This module was re-implemented using javascript from python-broadlink.

Example use

Please see test.js for temperature checking and ir learning example.

broadlinkjs's People

Contributors

clkao avatar hansmbakker avatar momodalo 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

broadlinkjs's Issues

Help Required - crypto.js Error

Hi,

I'm using your broadlink library under 3 different forks - broadlinkjs-rm, broadlinkjs-sm, broadlinkjs-s1c.

I find this error on all plugins, most frequently on the s1c since it's constantly checking the status of the device (every 2 seconds), using it with homebridge plugins to connect to my smart home.

May 23 21:36:08 raspberrypi homebridge[1671]: crypto.js:158
May 23 21:36:08 raspberrypi homebridge[1671]: var ret = this._handle.final();
May 23 21:36:08 raspberrypi homebridge[1671]: ^
May 23 21:36:08 raspberrypi homebridge[1671]: Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length
May 23 21:36:08 raspberrypi homebridge[1671]: at Decipheriv.final (crypto.js:158:26)
May 23 21:36:08 raspberrypi homebridge[1671]: at Socket.cs.on (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/broadlinkjs-rm/index.js:179:27)
May 23 21:36:08 raspberrypi homebridge[1671]: at emitTwo (events.js:106:13)
May 23 21:36:08 raspberrypi homebridge[1671]: at Socket.emit (events.js:194:7)
May 23 21:36:08 raspberrypi homebridge[1671]: at UDP.onMessage [as onmessage] (dgram.js:545:8)
May 23 21:36:08 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
May 23 21:36:08 raspberrypi systemd[1]: Unit homebridge.service entered failed state.

any idea on how I can prevent it from crushing my system (homnebridge) ? on the S1C it happens every 15 minutes or so but with the other plugins it can happen once in a day or two.

RM PRO RF support problem

Hi, I have Broadlink RM PRO and in console this problem:
[2018-1-19 18:27:28] [Broadlink RM] Scan RF (RF learning not supported for device at 192.x.x.x)

In eControl app is everything OK (yes, I have also RF sockets).

Is some way to add full RF support for RM PRO (without +), about 4-5 years old?

HONYA outlet device code 2780

I have a HONYA outlet OEM by broadlink

it can be use in ha, just set type to spmini2
`switch 2:

platform: broadlink
host: '10.0.1.35'
mac: 'B4:43:0D:BC:xx:xx'
type: 'spmini2'
friendly_name: 'HONYAR'`
when I use hb with homebridge-broadlink-sp there is a log says found a unknown device with code 2780 ( I'm not sure log came out from homebridge-broadlink-sp or homebridge-broadlink-rm)

[Info] We've discovered an unknown Broadlink device. This likely won't cause any issues.

Please raise an issue in the GitHub repository (https://github.com/lprhodes/homebridge-broadlink-rm/issues) with details of the type of device and its device type code: "2780". The device is connected to your network with the IP address "10.0.1.35".

MAC address incorrect

Hey,

Just wondering why you commented out the hex reference on line 173 (which is the correct)

MP1 Support

Any chance that you also support or can add support to Broadlink MP1?

This code on node 4.3.2

Hi i need run this code on node old version 4.3.2.

I convert same things example:

Buffer.alloc i change to new Buffer

let to var

But i need help to this

var rm2 = dev as broadlink.RM2;
^^

SyntaxError: Unexpected identifier
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3

Do you know what this code would look like in an old version of the node

Congratulations on your work!

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.