Code Monkey home page Code Monkey logo

rm3_mini_controller's Introduction

BlackBeanControl - Broadlink RM 3 Mini (aka Black Bean) control script

This repo use most of the code from
https://github.com/davorf/BlackBeanControl and
https://github.com/mjg59/python-broadlink
Just put it together, add some enchance and update to support python3

Setup

git clone https://github.com/TheGU/rm3_mini_controller.git
cd rm3_mini_controller
pip install -r requirements.txt
python test_run.py

After call test run. The script will dicover RM3 in your network and display info about it. Then ask you to test input any remote key to rm3 and it will repeat signal to test read and send ir remote.

Use the information you got from test_run to config BlackBeanControl.ini something like this:

[General]
IPAddress = 192.168.0.1
Port = 80
MACAddress = AA:BB:CC:DD:EE:FF
Timeout = 30

Usage

For more detail command please see README_blackbeancontrol.md

Learn command run

python BlackBeanControl.py -c <COMMAND NAME>

After learned command. will appear in BlackBeanControl.ini file under [Command] section with learned ir code

Send command

python BlackBeanControl.py -c <COMMAND NAME>

If exist in BlackBeanControl.ini, script will forward ir code for RM3 to broadcast.

rm3_mini_controller's People

Contributors

dependabot[bot] avatar thegu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rm3_mini_controller's Issues

Thanks!

Thank you! It's great to have this on a single package and ready for python3.

This should be bundled with the Broadlink binding (unless there is another way of learning that I'm missing).

Sending to particular device not working

Hello,

there seems a bug in the implementation deciding where to send the command to. Even if I specify a device with "-d" option, the command is sent to all devices. I added a print statement in broadlink.py and it shows that each command is issued twice to my both devices.

This line is executed for all devices:
RM3Device = broadlink.rm((RealIPAddress, RealPort), RealMACAddress)

as the print statement shows:

$ ./BlackBeanControl.py -c AC_OFF -d Kind
('Call broadlink for device', u'RMMINI-11-2f-1a.home.net')
('Send to', (u'RMMINI-11-2f-1a.home.net', 80))
('Send to', (u'RMMINI-11-2f-1a.home.net', 80))
('Using device:', 'Kind')
('Call broadlink for device', u'RMMINI-af-8a-1d.home.net')
('Send to', (u'RMMINI-af-8a-1d.home.net', 80))
('Send to', (u'RMMINI-af-8a-1d.home.net', 80))

So it seems it understood it should use device Kind, but before that it sends to the other device (specified in General and as Buero) the same command.

second RM Mini3

Hi,
It work fine with RM Mini 3.
Is there a chance to drive a second RM Mini?
Best Regards

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.