-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with sending a command #15
Comments
Are you trying to learn a RF remote code? This won’t work currently because this library does not implement sweep frequency for RF, so as Python’s one. Can you try with IR one? It should work |
Hi mob41, I'm trying with IR. So, the code, I posted should work correctly? Any idea what I could do to find the problem? Also, is there a way to check, if a new command was learned? Because, I'd assume Thread.sleep for 10 seconds isn't the best way to learn new commands. Thanks |
I did some other tests. I wanted to try the python version. But I had troubles to let it run. Then, I installed Home Assistant which also has Broadlink support. With this, I can learn and send commands properly. Can you give me the hex code of a proper IR command? I just want to check, if the led turns on when I use a command that works for you. such a command looks like that: Can you approve that this should work? Also, is it usual, that Thanks for your help. |
Hi,
|
Hi, no problem. I don't expect a quick reply for a project, you most likely work in your spare time. I actually was surprised that I got a reply so quickly. Also, I'm now considering using an Harmony Hub instead, because then I also can control my PS3. Unfortunately, then I can't use it for my fan. Cheers, |
This has been resolved with the 1.0.1-SNAPSHOT version that was just merged. |
Have this got resolved? I am gonna to close this and mark it as completed. |
Hi,
first, thanks for your effort. Cool stuff.
Looks like, sending my command isn't working.
I'm doing the following:
RM2Device rm2 = new RM2Device(rmip, new Mac(b));
rm2.auth();
rm2.enterLearning(); // this gives me a success and led is on
Thread.sleep(10000); // during that time, I press the button on my remote and led goes off
byte[] command = rm2.checkData();
rm2.sendCmdPkt(new SendDataCmdPayload(command));
I'd expect that my command is sent again. Or am I doing something wrong? I have a RM pro, I think. It's this one:
https://www.amazon.de/Urant-Universal-Intelligent-Controller-Automation-RF-Fernbedienung-Funktioniert-Smart-Remote-Control/dp/B06XKPFBMP/ref=sr_1_4?ie=UTF8&qid=1513372563&sr=8-4&keywords=rm+pro
The same command works when I use the Broadlink app.
Thanks for your help.
The text was updated successfully, but these errors were encountered: