beckyricha / Broadlink-RM-SmartThings-Alexa

Control RF and Ir devices using SmartThings and Alexa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different codes while learning... normal?

QAnders opened this issue · comments

First of all Thank you!
I really appreciate all you hard work and this is way cool to play around with! :)

So, to my question... I have everything setup and it works for all IR stuff (this far) and some RF stuff.
I do have issues with my sunshades and projector lift though (433 MHz RF). The RM Pro learns the codes and seems to "get" the remotes. The sunshades works sometimes directly from the RM (but not through the Tasker).

I setup a few identical buttons in RM App and learned the same RF code for the Projector lift and then exported the codes from the App to be able to view them.
I can them see that the codes differ a lot, out of the 5 "learnings" I did all codes are different and the shortest is 120 characters (hex) while the longest is 1100 characters and the rest somewhere in between.
Is this normal?
Or would it indicate that the Projector lift is using some "coded" signal that is altered each time?

The same happens for the sunshades but the strange thing is that they sometimes (1 of maybe 100 attempts) works from the RM App (but never through Tasker/Alexa).

Thanks for getting back to me and I realize now that my question is a bit "fuzzy"...

I want to hook up my Alexa with my RM Pro (rev. 3) eventually and have tested a few minor things like TV on/off which have worked fine.

I have tried various solutions to hook up my RM Pro as a http bridge and will most likely stick with the RM Bridge moving forward... I also have setup Home-assistant.io to be able to extract the codes by learning.

I too have a hard time beleiving the sunshades and the projector lift both would be using rolling codes...

So, the problem is really with the RM box and why I get different codes for the same button when I "record" them.
What I've done is to create a new button in the Broadlink RM App and have it scan the code when I press "sunshades down" on my remote.'Next I create another button and press "sunshades down" again on the original remote. (I ended up doing this five times for five buttons)

I would have expected that all buttons in the App then would have the same code recorded but exporting the buttons from the App using getBroadlinkSharedData.py (https://github.com/NightRang3r/Broadlink-e-control-db-dump) I can see that all five buttons from the App which should be the same si not...

So the question I guess is; how can I get the correct code?

I did some testing on the sunshades and these are the codes I get. They are all quite similar but differ each time... None of these works though... :(

Samples from RM Bridge:
b2018403190d1a0d0c1a0d191a0d190d190e190d0c1a1a0d0c1a190d1a0d190d190e190d190d1a0d190d1a0d190d190e190d0c1a190e190d0c0002080c0d0d0d0c0d0d0d0c0d0d0d0c0d0d0d0c0d0d0d0c0e0c7f0c1a190e190d190d1a0d0c1a190e0c1a0c1a0c1a0d191a0d190d190d0d1a190d190d0d1a190d0d1a0c1a0c1a190e0c1a190e190d0c1a1a0d0c1a190e190d190d1a0d0c1a0d1a0c1a0c1a0d191a0d190d1a0d0c1a0c1a1a0d190d1a0d190d0d1a190d0c1b190d190d1a0d190d1a0d190d1a0d190d1a0d190d190e190d0d1a190d190d0d0002080d0d0c0d0d0d0c0e0c0d0d0d0c0d0d0d0c0e0c0d0d0d0c800c1a190d190e190d190e0c1a190d0d1a0c1a0d190d1a190d190d190e0c1a190d1a0d0c1a190d0d1a0c1a0c1a190d0d1a190d1a0c0d1a190d0d191a0d190d1a0d190d0d190d1a0c1a0c1a0c1a190e190d190d0d1a0c1a190d1a0d190d190e0c1a190d0d191a0d190d190e190d190e190d190d1a0d190d1a0d190d190d0d1a190d190e0c0002080c0d0c0d0d0d0c0d0d0d0c0d0d0d0d0c0d0d0d0d0c0d0d7f0c1a190d190e190d190e0c1a190e0c1a0c1a0c1a0d1a190d190d1a0d0c1a1a0d190d0d191a0d0c1a0d1a0c1a190d0d1a190d190e0c1a190d0d1a190d190e190d190d0d1a0c1a0d1a0c1a0c1a1a0d190d190e0c1a0c1a190e190d190d1a0d0c1a190e0c1a1a0d190d1a0c1a0d190e190d190e190d190d1a0d190e190d0d19190e190d0d0002080d0d0c0d0d0d0c0d0d0d0c0e0c0d0d0d0c0d0d0d0c0e0c7f0d19190e190d190d1a0d0c1a190d0d1a0c1a0c1a0d1a190d190d190e0c1a190d190e0c1a190d0d1a0c1a0c1a190d0d1a190d190d0d1a190d0c1a190e190d190e190d0c1a0d1a0c1a0c1a0c1a190e190d190d0d1a0c1a190d1a0d190d190e0c1a190d0d1a190d190d1a0d190d190d1a0d190d1a0d190d190e190d190e0c1a190e180e0c0002080c0d0c0e0c0d0c0e0c0d0d0d0c0d0d0d0c0d0d0d0d0d0c800c1a190d1a0d190d190e0c1a190d0d1a0c1a0c1a0d1a190d190e190d0c1a190e190d0d1a190d0c1a0d1a0c1a190d0d1a190d190e0c1a190d0d1a190d190e190d1a0d0c1a0c1a0d190d1a0c1a1a0d190d190d0d1a0c1a190e190d190d1a0d0d191a0d0c1a190e190d190e190d190d1a0d1a0d190d190e190d190e190d0c1a1a0d190d0d0002080c0d0c0e0c0d0d0d0c0d0d0d0c0d0d0d0c0d0d0d0c0e0c7f0c1a190e190d190d1a0d0c1a190e0c1a0c1a0c1a0d191a0d190d190005dc00000000

b20184030d0002080d0c0d0d0d0c0d0d0d0c0d0d0d0d0c0d0d0d0d0d0c0d0d7f0d190d191a0d0d190d1a0c1a190d0d190d1a0d190d190d1a190d1a0d190d0d1a0c1a0c1a1a0d0c1a190d1a0d0d190d190d190d1a190d1a0d0c1a0d191a0c1a0d190d0d1a0c1a0d190d190d191a0d1a0c1a0d0d190d191a0d190d1a0c1a0d0d191a0c0d1a190d1a0d190d1a0c1a0d190d1a0d1a0c1a0d190d1a0d190d0d191a0d190d0d0002070d0c0d0d0d0c0d0d0d0d0c0d0d0d0c0d0d0c0e0c0d0d0d7e0d1a0d19190d0d1a0c190d1a190d0d1a0c1a0c1a0c1a0d191a0d190d1a0c0d1a0d190d191a0d0c1a1a0c1a0d0d190d1a0c1a0d191a0d190d0d190d1a190d1a0c1a0d0d1a0c1a0c1a0d190d191a0d1a0c1a0d0d190d1a190d1a0d190d1a0d0c1a1a0c0d1a190d1a0c1a0d1a0d190d1a0c1a0d1a0d190d1a0c1a0d1a0c0d1a1a0c1a0d0d0002080d0c0d0d0d0d0c0e0c0d0d0c0d0d0d0c0d0d0d0d0d0c0d7f0d190d1a190d0d190d1a0d191a0c0d1a0d190d190d190d1a190d1a0d190d0d190d1a0c1a190d0d1a190d1a0c0d190d1a0d190d191a0d190d0d190d1a190d1a0c1a0d0c1a0d190d1a0c1a0d191a0c1a0d190d0d190d1a190d1a0c1a0d1a0c0d1a190d0d191a0d190d1a0c1a0d1a0c1a0d190d1a0d190d1a0d190d1a0c0d1a1a0c1a0d0c0002080c0d0d0d0c0d0d0c0d0d0d0d0c0d0d0d0c0d0d0d0d0c0d7f0d190d191a0d0d190d190d191a0d0d190d1a0c1a0d190d191a0d1a0c1a0d0d190d1a0c1a190d0d1a190d190d0d1a0c1a0d190d1a190d1a0d0c1a0d191a0d190d1a0d0d190d190d1a0c1a0d191a0d190d1a0d0c1a0d191a0d190d1a0c1a0d0d1a190d0d191a0d1a0c1a0d190d1a0d1a0c1a0d190d1a0d190d1a0d190d0d1a190d1a0c0d0002090d0c0d0d0c0e0c0d0d0d0c0d0d0d0d0c0d0d0d0d0c0d0d7f0d190d191a0d0c1a0d190d191a0d0c1a0d190d190d190d1a190d1a0d190d0d190d190d1a190d0d191a0d190d0d190d1a0c1a0d191a0d190d0c1a0d191a0d190d1a0d0c1a0d190d190d1a0c1a1a0c1a0d190d0d190d191a0d1a0d190d1a0c0d1a190d0d191a0d190d1a0c1a0d1a0c1a0d190d1a0d190d1a0d190d1a0c0d1a190e190c0d0002080c0d0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0d0c0d0d0d0c800c1a0d191a0c0d1a0d190d1a190d0d190d190d1a0d190d191a0d1a0c1a0d0d190d190d1a190d0d191a0d1a0c0d1a0d190d1a0c1a190d1a0d0c1a0d191a0d190d1a0d0d190d190d190d1a0c1a1a0d0a0005dc00000000

Samples from Home-assistant.io:
b20184031a0d1a0c0d0002080d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0c0d0d0d7f0d190d191a0c1b0c0d191a0d0d190d1a1a0c0d191a0d0d191a0d1a0c1a0d1a0d0c1a0d191a0d0d190d190d1a1a0c0d190e190d191a0d0d191a0c1a0d0d190d1a1a0c0d1a0d190d190d1a0d191a0d190d1a0d0d190d191a0d1a0c1a0d1a0c0d1a1a0c0d1a190d1a0c1a0d1a0d1a0c1a0d1a0c1a0d1a0c1a0d1a0c1a0d0d191a0d1a0c0d0002090d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d7f0d190d191a0d1a0c0d191a0d0d190d1a190d0d191a0d0d191a0c1a0d1a0c1a0d0d190d191a0d0d190d190d1a1a0c0d190d190e191a0c0d1a190d1a0c0d1a0d191a0c0d1a0d190d190d1a0d191a0c1a0d1a0c0d1a0d191a0c1a0d1a0c1a0d0d191a0c0e191a0c1a0d1a0c1a0d1a0c1a0d1a0c1a0c1a0d1a0c1b0c1a0d0c1a1a0c1a0d0d0002070e0c0d0d0d0c0d0d0d0d0c0d0d0c0e0c0d0d0d0d0d0c0d7f0d190d1a1a0c1a0d0d191a0d0d190d191a0d0d191a0d0d191a0c1b0c1a0d190d0d1a0c1a1a0c0d1a0d190d191a0d0d190d190e191a0c0d1a190d1a0d0d190d191a0d0d1a0c1a0d190d190d1a190d1a0d1a0c0d190e191a0c1a0d1a0d190d0d191a0d0d1a190d1a0c1a0d1a0d190d1a0c1a0d1a0d190d1a0d190d1a0d0d191a0d190d0d0002090d0c0d0c0e0c0d0d0d0c0e0c0d0c0d0d0d0d0d0c0d0d0d7f0d190d191a0d190d0d191a0d0d190d191a0d0d191a0d0c1a1a0c1a0c1a0d1a0d0d190d191a0d0d190d1a0c191a0d0d190d190d1a190d0d1a190d1a0c0d1a0d191a0c0d1a0d190d190d1a0c1a1a0c1a0d1a0c0d1a0d191a0d190d1a0c1a0d0d191a0c0d1a190d1a0d190d1a0d1a0c1a0c1a0d1a0c1a0d1a0c1a0d1a0c0d1a1a0c1a0d0c0002090d0d0d0d0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d7f0d1a0c1a1a0c1a0d0d191a0d0d190d191a0d0d191a0d0d191a0c1a0d1a0c1a0d0d190d1a1a0c0d1a0d190d191a0d0d190d190d1a1a0c0d1a1a0c1a0d0d190d191a0d0d190d1a0d190d190d1a1a0c1a0d1a0c0d190e191a0c1a0d1a0c1a0d0d1a190d0d191a0d1a0c1a0d1a0c1a0d1a0d190d1a0c1a0d1a0d1a0c1a0d0d191a0c1a0d0d0002080d0d0c0d0d0c0d0d0d0d0c0d0d0d0d0c0e0c0d0d0d0c0d7f0d190d191a0d190d0d191b0c0d190d1a190d0d191a0d0c1a1a0c1a0d1a0c1a0d0d190d191a0d0d190d190d1a190d0d190e190d191a0c0d1a190d1a0d0d190d191a0d0d190d190d1a0d19060005dc00000000

b20f84030d190d1a0d191a0c1a0d0d190d1a1a0c0d1a0d190d190d1a0d191a0c1a0d190d0d1a0d191a0c1a0d1a0c1a0d0d191a0d0d191a0c1a0d1a0d190d1a0c1b0c1a0c1a0d1a0c1a0d1a0c1a0d0d191a0d1a0c0d0002080d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0c0e0c0d0d0c800c1a190d1a0c0d1a1a0c1a0d0d191a0d0c1a1a0c0d191a0d0d191a0d0d191a0d1a0c0d190d1a0d191a0c0e191a0c1a0d190d0d190d1a0d191a0c1a0d0d1a0c1a1a0c0d1a0d190d190e190d191a0d1a0c1a0d0d190d1a190d1a0c1a0d1a0d0d191a0d0d191a0c1a0d1a0c1a0d1a0d1a0c1a0d1a0c1a0d1a0c1a0d1a0c0d1a1a0c1a0d0d0002090d0d0d0d0c0d0d0d0c0d0d0d0c0d0d0d0d0c0e0c0d0d0d7f0d191a0d190d0d1a190d1a0d0d191a0d0d191a0d0d191a0d0c1a190d0d1a1a0c1a0d0d190d190e191a0d0c1a1a0c1a0d1a0c0d1a0c1a0d191a0d190d0d190d1a190d0d190e190d190d1a0c1a190d1a0d190d0d1a0c1a1a0c1a0d190d1a0d0d191a0d0c1a1a0c1a0d1a0c1a0d1a0c1a0d190d1a0d1a0c1a0d1a0c1a0d0d191a0c1a0d0d0002080d0d0c0d0d0d0c0d0d0d0d0c0d0d0d0d0d0c0d0d0d0c0d7f0d1a190d1a0c0d1a190d1a0d0c1a1a0c0d1a190d0d1a190d0d191a0d0c1a1a0c1a0d0d190d1a0d191a0c0e191a0c1a0d1a0d0c1a0d190d1a190d1a0d0d190d191a0d0d190d1a0d190d190e191a0c1a0d1a0c0d1a0d191a0d190d1a0d190d0d1a190d0d1a190d1a0d190d1a0d190d1a0d1a0c1a0d1a0d190d1a0c1a0d0d1a190d1a0d0c00020a0d0c0d0d0d0d0c0d0d0d0c0d0d0d0d0d0d0c0d0d0d0c0e7f0d191a0c1a0d0d191a0d1a0d0c1a1a0c0d1a1a0c0d1a1a0c0d191a0d0d191a0d190d0d190d1a0d19190e0c1a1a0c1a0d190d0d190d1a0d191a0c1a0d0d190d1a190d0d190d1a0d190d190d1a190d1a0c1b0c0d1a0c1a1a0c1a0d190d1a0d0c1a1a0c0d1a1a0c1a0c1a0d1a0d190d1a0d190d1a0c1a0d1a0d190d1a0d0c1a1a0d190d0d0002080d0c0e0c0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0d0d0c0d7f0d1a190d190d0d1a1a0c1a0c0d1a1a0c0d1a1a0c0d1a1a0c0d1a190d0d1a190d1a0d0c1a0d190d1a1a0c0d1a1a0c1a0d1a0c0d1a0c1a0d191a0d190d0d1a0d191a0d0d190d190d1a0c1a0d191a0d1a0d190d0d190d1a1a0c1a0d1a0c1a0d0d191a0d0d191a0d1a0d190d1a0c1b0c1a0c1a0d1a0d1a0d190d1a0c1a0d0d191a0d1a0d0c00020a0c0d0d0d0c0d0d0d0d0c0e0c0d0d0d0c0d0d0d0c0e0c0d0005dc00000000

Sample from native RM App:
b20a84030d191a0d1a0d190d0d190d1a190d1a0d190d1a0d0c1a1a0c0d1a190d1a0d190d1a0d1a0c1a0d1a0d190d1a0d190d1a0d190d0d1a190d1a0d0c00020a0d0c0d0d0d0d0d0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0c801a0c0d1a190d1a0d0c1a0d1a0c1a0d191a0d190d0d1a0d191a0d0c1a1a0c0d1a190d0d1a190d0d1a190d1a0d190d0d1a0c1a0d1a0c1a0d191a0d0c1a1a0d0c1a1a0d0c1a0d190d1a0c1a0d191a0d1a0d190d0d190d1a190d1a0d190d1a0d0d1a190d0c1a190d1a0d1a0c1a0d190d1a0d1a0c1a0d1a0c1a0d190e190d0c1a1a0d190d0d0002080d0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0d0d0c0d0d0d0c80190d0d191a0d190d0d190d1a0d190d191a0d190d0d1a0c1a1a0d0c1a190d0d1a190d0d191a0d0c1a1a0d190d190e0c1a0c1a0d190d1a0c1a1a0c0d1a190d0d1a190d0d190d190d1a0d190d1a190d1a0c1a0d0d1a0c1a190d1a0d1a0d190d0d1a190d0d1a190d190e190d1a0c1a0d1a0d190d1a0d190d1a0d1a0d190d0d191a0d1a0d0c00020a0d0c0d0d0d0c0d0d0d0d0d0c0d0d0d0d0c0d0d0d0d0d0c80190d0d1a190d1a0c0d1a0d190d1a0d191a0d190d0d1a0c1a1a0c0d1a190d0d1a190d0d191a0d0d191a0d1a0c1a0d0d190d1a0d190d190d1a190e0c1a190d0d191a0d0d190d1a0d190d1a0c1a190d1a0d190d0d1a0c1a190d1a0d190d1a0d0d191a0d0d191a0c1a0d1a0d190d1a0c1a0d1a0d190d1a0c1a0d1a0d190d0d1a190d190d0d0002090c0d0d0c0d0d0d0d0c0d0d0d0d0c0d0d0d0d0c0d0d0d0c80190d0d1a190d190d0d1a0c1a0c1a0d191a0d190d0d1a0d191a0d0c1a190d0d1a190d0d191a0d0d191a0d190d1a0d0c1a0d190d1a0c1a0d191a0d0d191a0d0c1a1a0d0c1a0d190d1a0c1a0d1a190d1a0d190d0d1a0c1a1a0c1a0d1a0c1a0d0d1a190d0d1a190d1a0d190d1a0d190d1a0d190d1a0d1a0c1a0d1a0d190d0d191a0d1a0c0d00020a0d0c0d0d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0d0d0c80190e0c1a190d1a0d0c1a0d1a0c1a0c1a1a0d190d0d1a0c1a190d0d1a190d0d1a190d0d1a190d0d191a0d1a0d190d0d190d1a0c1a0d190d1a190d0d191a0d0c1a1a0d0c1a0d190d1a0c1a0d191a0c1a0d1a0d0c1a0c1a1a0d190d1a0d190d0d191a0d0d191a0d190d1a0d190d1a0d190d1a0d190d1a0d190d1a0d190d0d1a190d1a0d0c0002090c0d0d0d0c0d0d0d0d0d0c0d0d0d0c0d0d0d0c0e0c0d0d7f190d0d1a190d1a0d0c1a0d190d1a0c1a190e190d0d190d0005dc00000000

But on the other hand I now tested another RF plug which have been working all along and the first time I do "learing" I get the code:

b212320010051005060f1005060f1005060f1005060f1005060f060f060f1006060f1005060f1005060f1005060f061006101005069b000000000000

Then I do learning again on the same button and then I get:

b21284030f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f0504100f0504100f05050f0f05050f0f05050f050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f0504100f05050f0f0504100f05050f0f050410050f050f0f05050f0f05050f0f05050f0f05050f050f050f0f05059b0f050f05050f0f05050f0e06050f0f0504100f0504100f0504100f05050f0f05050f0f0504100f050f050f050f050f05059b0f050f05050f0f05050f0f0504100f05050f0f05050f0f0504100f05050f0f05050f0f05050f0f050f050f050f050f05059b0f050f0504100f05050f0f05050f0f05050f0f05050f0f05050f0f05050f0f05050f0f05050f0f050f050f050f050f05050005dc00000000

Both of the codes ARE working!

Clearly the codes does not need to be identical to work... :o